A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: if ("MovieClip is stopped")

  1. #1
    Junior Member
    Join Date
    Jun 2008

    if ("MovieClip is stopped")

    (AS3 and Flash CS3)

    This may be something simple, but i just don't know the properties I need to call on.

    I have 2 buttons and a MovieClip on the main timeline. The buttons control the MC, forward or backward to stops (every 60 frames). I remove the event listeners, so the buttons can't be clicked between stops. I want to add them back only once the MC stops playing.
    Is there a simple command I'm not aware of? Like an if statement.... if the MovieClip is stopped, then add event listeners? The "playing" property seems to relate to FLV playback, not a MovieClip.

  2. #2
    lemon juice hurts your eyes florianvanthuyn's Avatar
    Join Date
    Jul 2005
    Merelbeke, Belgium
    You could go into your MC and put this code on the last frame:
    MovieClip(parent).addEventlistener(stuff, blabla);
    MovieClip(parent).addEventlistener(stuff2, blabla2);
    Florian Vanthuyne

    mark yours as Resolved under Thread Tools!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center