Question
newb setinterval() help
Hi,
My flash is simple, I just have to alpha in and out pictures having setinterval() as their delays.
my problem is, the movieclip exported into .swf should be loaded wihtin a .swf files with is mainly the control for the clips using buttons on releases then loadMovieNum x.swf level 10.
now, everything works fine except the setinetrval() how do I make it right?
mycode:
stop();
var interval:Number = setInterval(function () {
play();
clearInterval(interval);
}, 7000);
to delay it 7 seconds. the .swf itself works and delays for 7 seconds but after it has been loaded inside a .swf, the intervals are gone.
please help me. Thanks!
My flash is simple, I just have to alpha in and out pictures having setinterval() as their delays.
my problem is, the movieclip exported into .swf should be loaded wihtin a .swf files with is mainly the control for the clips using buttons on releases then loadMovieNum x.swf level 10.
now, everything works fine except the setinetrval() how do I make it right?
mycode:
stop();
var interval:Number = setInterval(function () {
play();
clearInterval(interval);
}, 7000);
to delay it 7 seconds. the .swf itself works and delays for 7 seconds but after it has been loaded inside a .swf, the intervals are gone.
please help me. Thanks!
