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 actuall
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.
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
http://chattyfig.figleaf.com/mailman/listin
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 &
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);
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 removePrevio
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
Are you saying display lists are persistent through an entire movieclips
timeline?
On Wed, Jan 14, 2009 at 7:32 AM, Cor wrote:
> If you declare target_mc in your Parent class and addChild(target_mc)it
> does exist everywhere.
>
> ___
> Flashcoders mail
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
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-
10 matches
Mail list logo