Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

MovieClip - Adobe ActionScript® 3 (AS3 ) API Reference

Explorer ,
Feb 28, 2013 Feb 28, 2013

This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/MovieClip.html

TOPICS
ActionScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 28, 2013 Feb 28, 2013

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.

Translate
New Here ,
Feb 28, 2013 Feb 28, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2013 Feb 28, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2013 Mar 01, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 01, 2013 Mar 01, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2013 Mar 01, 2013
LATEST

shrugs Believe what you want to believe.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 28, 2013 Feb 28, 2013

I'm no expert, but doesn't MovieClip.isPlaying() tell you this?

Randy Nielsen

Senior Content and Community Manager

Adobe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2013 Feb 28, 2013

that is logical but, no.

isPlaying is a property of the Tween class and AnimatorBase, not MovieClip.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 28, 2013 Feb 28, 2013

Thanks, @kglad. I stand corrected.

-R

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines