A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Adding "Play Again" Message to the end of the Movie

  1. #1

    Adding "Play Again" Message to the end of the Movie

    I would like to add a message that says "Click Play to replay the movie, or choose another movie to the left" (we have a whole list of other movies as well). How can I make this frame display when the FLV is done playing?

    Thanks for your help!

  2. #2
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    Just a couple ideas, not sure exactly how to implement them though. You could edit your video so that the last frame is that image saying what to do and re-export to flv. But if you needed to do that for allll your videos that might take forever.

    Or maybe you could do something like make the image a graphic and set it's alpha to zero and put it on a layer above the video. Then use the FLV on complete method to tell it to set it's alpha to 100 after the flv finishes. Then tell it to set back to 0 when the user clicks a button.

    Just a couple ideas I had right off the top of my head. Hope it helped.
    This is your brain. This is your brain on script.

  3. #3
    I just need the action script for when an FLV is done playing, show frame number X (that frame will say what I need it to). Any idea how to do that?

  4. #4
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    Give this a try. "my_FLV" should be the instance name of the FLV component, you'll have to change that to whatever it is that you've named it. But you would put this on the same frame as the component.

    Code:
    var listenerObject:Object = new Object();
    listenerObject.complete = function (eventObject:Object): Void{
    _root.gotoAndPlay(frame number here);
    }
    my_FLV.addEventListener("complete",listenerObject);
    This is your brain. This is your brain on script.

  5. #5
    I did this, but it just skips right to the 2nd frame. My actionscript is...

    var listenerObject:Object = new Object();
    listenerObject.complete = function (eventObject:Object): Void{
    _root.gotoAndPlay(2);
    }
    jetdock.addEventListener("complete",listenerObject );



    "jetdock" is the instance name I gave to the player.

  6. #6
    Senior Member layerburn's Avatar
    Join Date
    Jul 2006
    Location
    USA
    Posts
    542
    do u have a stop(); on that frame too?
    This is your brain. This is your brain on script.

  7. #7
    A Clever Cherrry Indeed
    Join Date
    Jul 2001
    Posts
    212
    Works fer me

    toptip !

  8. #8
    infidel! 0vidiu's Avatar
    Join Date
    Mar 2003
    Location
    ROmania
    Posts
    267
    @layerburn: great help for me ! works like a charm

    tnx,
    ovidiu

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