Play again button after video is done playing

Hi,
I need help with some flash video stuff please... I am importing video into flash via FLVPlayback Component..
What I would like to do is have a button after the video is done playing that offers to re-play the video and may be another button with some other action.. I"m sure it's some kind of "if" statement... (to see when the video is done playing) but I'm very new to AS - I would really appreciate any help. Thanks ahead of time!!

What I"m trying to do is have a movie play (with auto hide controls), and once it's done playing, I wanted to have an option to
either play it again or do something else, like to to all movies etc. Now my code doesn't give me any errors but it still doesn't doesn't do what I want it to do. Now it plays the movie and afterward the button appears.. but it doesn't restart the movie..
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import flash.events.MouseEvent;
bttn.visible = false;
player.addEventListener(VideoEvent.COMPLETE, addPlayAgain, false, 0, true);
function addPlayAgain(e:VideoEvent) {
    bttn.visible = true;
    bttn.addEventListener(MouseEvent.CLICK, restart);
    function restart(e:MouseEvent):void {
    gotoAndStop(1);

Similar Messages

  • How to remove play button after videos starts

    In the style of the youTube video playback design, I have a
    large play button over my 320x240 flv video. The button is
    programmed to play the flv when clicked on. How do I get rid of the
    button once the video starts to play? can I bring it back when the
    video is over to replay? Is there simple action script to tell the
    button to do this?

    How to do it step-by-step? Because i'm beginner in FLash and that things of animation, codes, functions...
    And I create that simple animation in other program, not using the Adobe Flash, but I think can be edited that file animation in Flash because I have the files ".swf" and ".flv"...
    I don't know how to do it in Adobe Flash CS3, but I have that program installed in my pc, then can you talk me what to do it?
    Sorry my bad english, i'm from Brazil.
    That is the folder contains the files:
    https://dl.dropboxusercontent.com/u/11826717/off/laranja/files_animation.jpg
    That is the Download the files of that folder if you want see better:
    https://dl.dropboxusercontent.com/u/11826717/off/laranja/laranja.rar

  • Adding buttons after flv is done

    I want to have a button appear after the FLV is finished
    playing. How do I do this? For anexample of what I want check the
    link below.
    http://klipmart.com/dukesofhazzard.html

    I'm not using a flv component, but rather a actionscript
    controlled video that I created myself. How do I incorporate it in
    my own created video?

  • Jump to frame after video plays?

    This should be easy to do but for the life of me I can't
    figure it out.
    I have a video play. Video is at frame 1.
    At the end of the video I want it to jump to frame 2.
    How do I do this?
    HELP!

    ludicrousman wrote:
    > This should be easy to do but for the life of me I can't
    figure it out.
    > I have a video play. Video is at frame 1.
    > At the end of the video I want it to jump to frame 2.
    > How do I do this?
    Give the FLVPlayback component instance name "player" and
    place the following action on the timeline frame:
    player.addEventListener("complete",function (event:Object) {
    trace("done Video");
    //some action here....
    //an example of url call after video is done playing
    gotoAndStop(2);});
    Best Regards
    Urami
    "Eat one live toad in the morning and nothing worse will
    happen to you for the rest of the day."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Play Again button w/ AS3

    how would I code a play again button using AS3 since you
    cannot place the code on the button itself anymore. Would the code
    still be gotoAndPlay(1);?
    would I need to give the button an instance name and what
    would I need to change the code to?
    thanks in advance!

    DPSwebmaster,
    > I have given my button an instance name of 'PlayAgain'
    and
    > placed the AS code on frame 1 of my timeline.
    As long as that button (with the instance name PlayAgain)
    appears in
    frame 1 as well, you should be good.
    > PlayAgain.addEventListener(
    > MouseEvent.MOUSE_UP,
    > function(evt:MouseEvent):void {
    > gotoAndPlay(1);
    > }
    >
    There should be a closing parenthesis on that [... this one:
    which is basically the other half of the "sandwich" that
    begins with
    addEventListener( ...]. But other than that, your code looks
    fine. Be
    advised that you can also use a named function, if you like:
    PlayAgain.addEventListener(MouseEvent.MOUSE_UP,
    mouseHandler);
    function mouseHandler(evt:MouseEvent):void {
    gotoAndPlay(1);
    Do you see how those are effectively the same thing? The
    addEventListener() method accepts two parameters: a) an event
    to listen for
    and b) a function to perform. In the examples I've shown, one
    of them
    illustrates an anonymous function; the other illustrates a
    named function.
    In any event, to make sure your code is responding at all,
    it may help
    to use a trace() function. This is nothing more than a
    mechanism to print
    text to the Output panel, but it's great for debugging:
    PlayAgain.addEventListener(
    MouseEvent.MOUSE_UP,
    function(evt:MouseEvent):void {
    gotoAndPlay(1);
    trace("I've been clicked!");
    Try that revision (only one line has changed), and when you
    click on the
    button, you should see the message "I've been clicked!" in
    your Output
    panel. If you don't, we'll know that this event listener
    isn't getting
    assigned properly.
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/2s28a5
    "Luck is the residue of good design."

  • I bought a song on iTunes...but it must not have downloaded all the way an now I can't get it to play and it won't let me delete it...I also can't purchase it again cause it says I done bought it...any suggestions?

    I bought a song on iTunes...but it must not have downloaded all the way an now I can't get it to play and it won't let me delete it...I also can't purchase it again cause it says I done bought it...any suggestions?

    Try this:
    http://support.apple.com/kb/HT2519

  • I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    I inserted a HTML5 video in page, when I test it in a Browser, I see the poster image and controls, But when I click play button the video goes white, slider moves like its playing, but just white picture. There was no audio included in video. Please help

    Without a link, it's anybody's guess.
    It could be a problem the video rendering itself.  Which software did you use?
    Did you export to the 3 file types -- MP4, OGG and WEBM to support all browsers?
    Does your web server support those 3 MIME file types?
    Nancy O.

  • IPhone music will not respond to Play button after being paused. The same music is on my iPad and MacBook Pro without problems. Any suggestions about cause and solution.

    iPhone music will not respond to Play button after being paused.
    The same music is on my iPad and MacBook Pro without problems. Any suggestions about cause and solution.

    Do a
    Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data

  • I have installed flash player on my macbook air but some videos still don't play, what can i do?

    i have installed flash player on my macbook air but some videos still don't play, what can i do?

    MatchingNode
    YOUR SYSTEM INFORMATION
    Your Flash Version
    17.0.0.134
    Your browser name
    Internet Explorer
    Your Operating System (OS)
    Windows (Windows 7)
    I cant take a screen shot of the flash player update tab as it wont let me and wont let me copy and paste sorry
    i am using internet explore browser and trying to play facebook games thats where i am facing the issues.

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

  • I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone. How do i sync new music? Please help; I'm exhausted trying to read up online

    I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone.
    I would like to view my old playlists & add new music on them. I keep my phone pretty organised & now to not see the music & playlists I already have on there on itunes is irritating me.
    My first time here on the Support Communities.. I hope I am able to find my way around.
    Please help; I'm exhausted trying to read up online.

    I had my vaio serviced and now I have had to download itunes again. After having done so, I no longer am able to see my old playlists on itunes though they are there on my phone.
    I would like to view my old playlists & add new music on them. I keep my phone pretty organised & now to not see the music & playlists I already have on there on itunes is irritating me.
    My first time here on the Support Communities.. I hope I am able to find my way around.
    Please help; I'm exhausted trying to read up online.

  • Trying to access https site with a cert, got "The connection was interrupted" error after 30 seconds of waiting time before clicking on OK. But I can get in by clicking on Try Again button.

    I have a web site running on https. Every users need certificates to get in.
    I found out that if I didn't submit my cert within 30 seconds, Firefox displayed "The connection was interrupted". This problem is repeatable. But if I click on "Try Again" button on the error page, I can get in all the time.
    This problem doesn't happen on IE.
    Can you provide any tips to avoid seeing the error page?

    It is a miracle - After about 9 months without itunes, the new release installed on my machine today and appears to be working.
    7.0.0.70 is the verion I just installed.
    Another note to add to this now resolved issue. I bought an AirPort Express and I was not able to install the Admin software on the CD. I received the same error as I received with iTunes and Quicktime. This leads me to believe that this problem is in the registry or some other installer issue that is specific to Apple installations. I will have to go home and try to re-install that software. Maybe the new iTunes version cleared up the problem.

  • Hello I formatted my iMac today and wanted to download iphoto again but after i press the button to install it in the app store nothing happens! same with the yosemite upgrade..

    Hello I formatted my iMac today and wanted to download iphoto again but after i press the button to install it in the app store nothing happens! same with the yosemite upgrade.. In the iPhoto ratings there are alot of other people facing this problem I hope somebody can help me. thank you in advance

    If you have OS X 10.6.8 as you state you can not get iphoto form the App store - you must have Yosemite OS X 10.10. installed to download iphoto 9.6 from the App store
    If Nothing happens then you need to contact App store support - link is on the right of the App store window
    LN

  • Well I have a new macbook pro and there is a software update available and after i update it, it keeps asking for the same thing to update over and over again! What can be done?

    Well I have a new macbook pro and there is a software update available and after i update it, it keeps asking for the same thing to update over and over again! What can be done?

    The App Store version sometimes gives problems. As you can't install 10.8.4 from the App Store, download and install the Combo edition > http://support.apple.com/kb/DL1659?viewlocale=en_US&locale=en_US This edition will work and will update OS X to the most recent version, in that case, 10.8.4

  • HT202380 Do I have to check "Ignore ownership on this volume" again, after copying is done?

    Do I have to check "Ignore ownership on this volume" again, after copying is done? Thanks. Alex

    Sorry I thought the context was clear. I followed the instructions on how to transfer a timemachine backup from one disk to another (linked above). One step in the howto is to uncheck "Ignore ownership on this volume". I was wondering if it is important to check it afterwards.

Maybe you are looking for

  • Stock Transfer Order: Delivery date issue BAPI_PO_CREATE1

    Hi, I am creating STO using Inbound Delivery data from BAPI_PO_CREATE1 inbound shipping date is 30 may 2014. Passing below data HeaderData: doc_type = 'UB'.     "STO suppl_plnt     =     '101' doc_date     =     inbound shipping date. comp_code     =

  • When will there be a 64-bit Linux version?

    After fillinging out a long fill-in procedure to apply for a US passport, I found that the Linux program Okular could not finish. I had to use a 32-bit Linux program that had Adobe Reader available, since there is no 64-bit generic version of Reader,

  • SQL Server 2000 on Windows 7

     I need to install SQL Server 2000 on a Windows 7 machine.  When I start the install I get a message "SQL Server 2000 is incompatible with this versions.  For more information contact Microsoft."  I searched the forums but did not find anything about

  • Can't download itunes 11.1 error 2324

    I can't install itunes 11.1 on my computer, keep getting error 2324. First I tried upgrading the old one, didn,t removed it and tried to install all over again, keep getting error 2324, can somebody help me? I have got a windows computer and iPhone 4

  • Updating to XI R2 Service Pack 5

    Hello. I'm current on Release 2, SP4 and I want to upgrade to SP5.  Upon running the installation, the process errors out as following: "Crystal Reports Service Pack 5 is for Crystal Reports XI R2 only, and cannot be insatlled on top of other Busines