[Flashcoders] AS3 Shoutcast Stream Player...

2009-01-14 Thread Sander Schuurman
Hi cool list, I made a shoutcast streaming mp3-player and I'm having some little problems with it. When the stream is playing, the memory slowly builds up (really slowly), and sometimes jumps up with 6 MB or something. I've read that you can't overcome this, unless you close the stream and

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-14 Thread Cor
If you declare target_mc in your Parent class and addChild(target_mc)it does exist everywhere. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] [AS3] Cleaning Up (timelines, movieclips and events)

2009-01-14 Thread Joel Stransky
Are you saying display lists are persistent through an entire movieclips timeline? On Wed, Jan 14, 2009 at 7:32 AM, Cor c...@chello.nl wrote: If you declare target_mc in your Parent class and addChild(target_mc)it does exist everywhere. ___

[Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Hi list... I have two functions, where either an X is rendered, a Y is rendered, or both an X and a Y. removePrevious() is called before anything gets rendered, so as to clear the stage. The problem is when both are rendered, removePrevious() is called twice. It first clears the stage, renders

RE: [Flashcoders] recursive question?

2009-01-14 Thread Merrill, Jason
Real quick idea,not tested (the code below could probably be made better with a rest statement - see link below), how about not doing it recursively (because that's why it's calling remove more than once), but doing something like this: import flash.display.Sprite; private function

Re: [Flashcoders] recursive question?

2009-01-14 Thread Taka Kojima
I would probably just do something like... private function renderAxis(which:String, doRemove:Boolean = true):void if(doRemove){removePrevious();} switch (which) { case (X) : xAxis = new Sprite(); addChild(xAxis);

RE: [Flashcoders] recursive question?

2009-01-14 Thread Merrill, Jason
Right Taka, thinking the same thing, and I was just assuming he was doing something more (not shown) in the draw function other than just adding the child - otherwise, you're just adding blank things to the screen. Jason Merrill Bank of America Instructional Technology Media ยท GCIB

RE: [Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Interesting answers, Jason and Taka. Thanks very much! In migrating to AS3, I guess I have to be reminded about simply removing the child. - MM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

RE: [Flashcoders] recursive question?

2009-01-14 Thread Mendelsohn, Michael
Oh trust me Jason, there's *plenty* more going on besides blank things. :-D - MM Right Taka, thinking the same thing, and I was just assuming he was doing something more (not shown) in the draw function other than just adding the child - otherwise, you're just adding blank things to the screen.

Re: [Flashcoders] recursive question?

2009-01-14 Thread Taka Kojima
Well, I generally ask myself two questions when I find myself writing a recursive functioin: does using a recursive function actually simplify things here? Do I actually need to use it? I.e. don't use recursive functions for the sake of having a recursive function -- you will find that you