Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/MovieClip.html
there's no easy way to do that and no way to do determine that in less than one enterframe loop. the technique you sketched in your message won't work.
Copy link to clipboard
Copied
A very simple question I'd like to ask a MovieClip: "hey, are you playing right now?"
Wrapping a MovieClip in a class meant to intercept every goto*() and stop() function is a bit too much work to get this one simple thing.
Copy link to clipboard
Copied
there's no easy way to do that and no way to do determine that in less than one enterframe loop. the technique you sketched in your message won't work.
Copy link to clipboard
Copied
It does work. It's one of the classes I use the most, as a matter of fact. But still, too much work for something so simple.
Copy link to clipboard
Copied
if you think your technique works, it's only because of your special circumstances.
an example where your technique would fail would be a movieclip that had a stop() on each of its frames. if you executed a play() method for that movieclip, your technique would report the movieclip is playing when most people would judge that movieclip is not playing because it's not changing frames with time.
Copy link to clipboard
Copied
shrugs Believe what you want to believe.
Copy link to clipboard
Copied
I'm no expert, but doesn't MovieClip.isPlaying() tell you this?
Randy Nielsen
Senior Content and Community Manager
Adobe
Copy link to clipboard
Copied
that is logical but, no.
isPlaying is a property of the Tween class and AnimatorBase, not MovieClip.
Copy link to clipboard
Copied
Thanks, @kglad. I stand corrected.
-R
Find more inspiration, events, and resources on the new Adobe Community
Explore Now