A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] How to tell if a movie has stopped playing

  1. #1
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588

    resolved [RESOLVED] How to tell if a movie has stopped playing

    Hi again! Spend most of my life on here at the moment!

    I have a movie in my library which I've assigned a class so I can attach it to the stage in my code. This movie has stop() markers along it.

    all fine so far!

    I have it fade in and play when the user clicks a button.....and it stops when it hits a marker (stop()) Now I want it to fade back out once it stops.

    Is there an eventlistener that I can put in to say the movie has stopped?

    I tried putting a call to the fade out function (on main timeline) in the video with the stop()'s but knew it wouldn't work.

    Any help please people?!

    Cheers

  2. #2
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    Sorted it myself!

    Used a custom listener to dispatch a stopped event.

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