I'm working on an animation where movieclips are to fade in
and out. This is to happen at the same time on several locations.
I've use a setInterval/clearInterval, but the clearInterval does
not work as i want it to. Here is my code:
stop();
var i:Number = 0;
var j:Number = 0;
var count1:Number;
var count2:Number;
var Array:Array = new Array();
var Array2:Array = new Array();
var Array1:Array = new Array();
When i hit the play-button it works for the first
run-through, but i want to user to be able to hit the play button
while the animation is runing (and then the animation is to start
at the beginning). This does work sometimes, but not all the time.
I've not been able to understand why.
Another problem is the clearInterval. It also works and
stops at the first run through, but not after that. Then it keeps
on going into the else (with clearInterval) in the
fadeInNext-function. It does not stop.
Can anyone out there help me with my problems? Thank you very
much!! (i'm using mx2004)
Not sure what you're doing here...
example:
var Array:Array = new Array();
Hello, you just destroyed the array object, nice, now Arrays
won't work :)
but maybe this will help you on your way: