Groups | Blog | Home
all groups > flash (macromedia) > july 2005 >

flash (macromedia) : Stop action problems


David Stiller
7/11/2005 8:01:25 PM
finnegankat,

[quoted text, click to view]

We'll have to see some of your code in order to answer that. Would you
paste one or a few examples of what you're doing on a pause frame?


David
stiller (at) quip (dot) net
"Luck is the residue of good design."

finnegankat
7/11/2005 11:54:23 PM
Hi,

I just want to know what could cause a stop action not to work on a frame...
My movie is 247 frames long and i have a lot of pause function and stop
action... but some don't work propeply when i export my movie...

Anyone had a similar problem before?
Help!!! it's driving me nuts...

Thanks:confused;
Jeckyl
7/12/2005 12:00:00 AM
a stop() will always stop .. but there must be something else telling it to
play.
--
Jeckyl

Jeckyl
7/12/2005 12:00:00 AM
[quoted text, click to view]

Actually .. that's ALMOST right .. there are two things that can cause a
stop() not to stop

1) setting loop to false in your html .. the loop parameter is buggy and can
cause actions in the last frame of the movie to not work correctly
2) setting play to true in your html .. this forces a 'play' to happen at
the end of the first frame, even if there is a stop action there

Other than the above, my previous post applies
--
Jeckyl

Jeckyl
7/12/2005 12:00:00 AM
it sounds like one of your intervals is firing after that stand-alone stop.
What you shouold do is change as follows ..

for your pausing:

stop();
myInterval = setInterval(pausePlay, 3000);
function pausePlay() {
play();
clearInterval(myInterval);
delete myInterval;
}

and when you want to stop (and NOT pause):

if (myInterval != undefined) {
clearInterval(myInterval);
}
stop();
--
Jeckyl

Jeckyl
7/12/2005 12:00:00 AM
I also suggest you put in a trace at every stop and every play eg.

trace(_target+".stop()");
stop();

and

trace(_target+".play()");
play();

similar for and gotoAndStop or gotoAndPlay

and then you may well see why your movie isn't stopping (either its not
getting to the stop action, or there is a play after it)
--
Jeckyl

finnegankat
7/12/2005 12:00:00 AM
finnegankat
7/12/2005 12:00:00 AM
finnegankat
7/12/2005 12:30:57 AM
for the pause action :

stop();
myInterval = setInterval(pausePlay, 3000);
function pausePlay() {
play();
clearInterval(myInterval);
}

the pause action works fine
at the end of every little animation i put a stop action, usually that's the
one that is not working propely...when i export the movie sometimes it works,
sometimes it's not... pretty weird
finnegankat
7/12/2005 12:42:00 AM
AddThis Social Bookmark Button