View Full Version : My stop actions won't work?
keano
02-05-2008, 03:57 AM
I have a movie and on 3 frames I have 3 stops actions where I want it to stay. When I click on a button I want it to jump to 2nd frame and stay upon closing go to frame 1 and stay. but they play at there own will. Very disheartning
atomic
02-05-2008, 04:19 AM
Attach your .fla.
keano
02-05-2008, 05:22 AM
It is too big 700kb. Been trying tog et it work for awhile and just can't get it. As usual it is me ha!
keano
02-05-2008, 05:38 AM
Hi Atomic I just emailed it to you since it is too large to upload here.
atomic
02-05-2008, 06:39 AM
Need it in a Flash 8 format, my friend!
keano
02-05-2008, 06:49 AM
Oops coming now
thanks
atomic
02-05-2008, 07:15 AM
Guess you have to better clear those setInterval's...
keano
02-05-2008, 07:18 AM
What are set Intervals?
keano
02-05-2008, 07:25 AM
Hi I just sent a super simplified version and still same problem . It broke it way down.
keano
02-05-2008, 07:38 AM
Do I put this on the first frame? got it from Adobe. Doesn't stop mean stop?
var intervalId:Number;
var count:Number = 0;
var maxCount:Number = 10;
var duration:Number = 20;
function executeCallback():Void {
trace("executeCallback intervalId: " + intervalId + " count: " + count);
if(count >= maxCount) {
clearInterval(intervalId);
}
count++;
}
function beginInterval():Void {
if(intervalId != null) {
trace("clearInterval");
clearInterval(intervalId);
}
intervalId = setInterval(this, "executeCallback", duration);
}
beginInterval();
beginInterval();
beginInterval();
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.