A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: play movie clip ONCE then stop (on click)

  1. #1
    Senior Member
    Join Date
    Oct 2009
    Posts
    112

    play movie clip ONCE then stop (on click)

    i have a movie clip symbol on the stage

    i have set up a "CLICK" event listener. in the function it says
    Code:
    MC.play();
    how can i make it stop after playing once? WHY IS THIS SO HARD!

    i tried putting a stop(); inside the movie clips last frame but that did nothing

    i wish flash had a MC.playThenStop(); function!

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    a stop() on the last frame should work fine. There must be something else triggering a play() or preventing the stop(). You'd have to elaborate on the surrounding code.

    .playThenStop() is actually a great idea, perhaps you could file a feature request.
    http://bugs.adobe.com/flashplayer/

  3. #3
    Senior Member
    Join Date
    Oct 2009
    Posts
    112
    i dont think the stop(); works becase its not on the main timeline, i put it on the timeline of the movie clip (u know u double click on a movie clip and it opens up its timeline? i put the stop(); on the lsat frame in there)

    i double checked hte code there is no other "MC.play();" anywhere else. so idk what the problem is

  4. #4
    Senior Member
    Join Date
    Jul 2006
    Location
    San Jose, CA
    Posts
    334
    If a stop() in the timeline doesn't work, there's def something else at work, it doesnt get easier than that. Any chance you can post the fla?
    I (Love | Hate) Flash.
    ----
    Save a version back so others may help you!

Tags for this Thread

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