all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

Detect stop action


Detect stop action dondalinger
5/18/2005 11:09:07 PM
flash actionscript: Thanks for reading...

I have an interface that imports different swf's into a movieclip called
"content"

Now typically you would get the total frames and when the current frame ==
total frames then you know the clip has played to the end... well some of these
flash movies have stop actions before the last frame.. there fore I cannot
detect if the movie is done or not... obviously I have no control over the
imported swf.

so I am trying to see if
A) the playback head is moving - whether on the main timeline or movieclip
B) detect a stop action?

Not sure how to get those properties... any ideas?

Thanks again
Re: Detect stop action .:}x-=V!P=-x{:.
5/18/2005 11:56:43 PM
Re: Detect stop action dondalinger
5/19/2005 12:07:31 AM
Re: Detect stop action kglad
5/19/2005 1:44:35 AM
well, you can get a pretty good idea whether a movieclip is changing frames or
not by using a loop to check. of course, if you have no idea about these
loaded movies and they may be playing at 1 frame per hour or 1 frame per day,
you're out of luck. however, if they're playing at say, at least, 1 frame per
every few seconds you can determine whether they are playing or not. is that
good enough?

and, by the way, it is pretty common to have a one frame swf with lots of
animation (all done via actionscript). this could be checked too, but would
require somewhat more effort.

but ultimately, jeckyl is correct. there's no way to see if a some loop is
executing when you know nothing about the swf that contains that loop.
Re: Detect stop action kglad
5/19/2005 4:37:25 AM
Re: Detect stop action Jeckyl
5/19/2005 9:36:42 AM
There is really no way to determine if a given movie is finished or not ...
it could easily be that the main movie timeline stops and all the animation
happens in movieclips. And the animation could also be being done via
setInterval, so NONE of the timelines in the movie need to be changing
frames in order for animation to be happening. So, if you're expecting to
be able to load and play arbitrary SWF movies until they are finished ..
forget it .. there is no way to tell.

If it is just your own SWF movies, just author them in a way that is
compatible with your interface movie .. maybe even have your loaded movie
set a variable or call a function in the interface movie when the loaded
movie is finished etc.

Otherwise you're asking more than is possible to determine.
--
Jeckyl

Re: Detect stop action Jeckyl
5/19/2005 10:22:55 AM
[quoted text, click to view]

That's just pure rubbish .. there is not such thing as "current frame.name"

Please don't give advice if you have no idea what you are even talking
about.
--
Jeckyl

Re: Detect stop action Jeckyl
5/19/2005 10:23:52 AM
[quoted text, click to view]
Then you cannot do what you are wanting to do.

There is no concept of 'finished' for a flash movie, as it is not
necessarily linear like an avi etc.
--
Jeckyl

Re: Detect stop action Jeckyl
5/19/2005 12:21:03 PM
[quoted text, click to view]

Note that a loadED movie always plays at the frame rate of the loadING movie
(gets a little trickier if the loaded movie has a soundtrack though)

Jeckyl

Re: Detect stop action .:}x-=V!P=-x{:.
5/19/2005 3:20:13 PM
That's just pure rubbish .. there is not such thing as "current frame.name"

Please don't give advice if you have no idea what you are even talking
about.
--
Jeckyl

You may be right but I am wrong
Re: Detect stop action Jeckyl
5/20/2005 12:00:00 AM
[quoted text, click to view]

:)

Can't argue with that one

:)

Jeckyl

AddThis Social Bookmark Button