Creating a Replay Button for a Flash Video

I want to replay a flash video by clicking on a "replay" button. I know how to creat the buttons. I can't figure out how to create the action script. Thanks in advance for any help.
I know how to create the Action Script to replay flash, but when I have a flash video that I want to replay that's when I run into trouble.

Hi,
This snippet should hint a solution to you (NetStream class):
netStream.seek = 0;
netStream.resume();
Anyway, you would need to know when the movie has finished playing.
On a Flash Media server, there should be an event just for that.
If you are not running on such a kind of server, make yourself a cuepoint to listen to, at the very last frame of the movie, so your app knows when its time to offer the replay functionality. You can insert cuepoints in a movie when you are in the Flash Video Encoder options.
Design Cyboïde
Création de sites web Montréal

Similar Messages

  • Problem with tutorial:Creating a dynamic playlist for streaming flash video

    hi, anyone tried the tutorial: creating a dynamic playlist
    for streaming flash video?
    i follow the instruction exactly as stated in the tutorial
    and test the fla file, it worked perfectly well when i open the swf
    using the macromedia flash 8. Everything look fine. Nothing is
    changed except the url is changed to "rtmp://localhost/videosource"
    in the xml file.
    after i publish the file using the setting: access network
    only, i try to open the swf and html file from the folder, the
    thumbnail did not appear and there is no way i can click on any
    videos. What i see is only the list, and there is no response from
    the flash media server 2. All the files is in the same folder.
    Anyone please help with this problem???? thanks

    ....i debug the movie step by step
    and realised that the xml file is being read by the code...
    Your original problem stated it worked but not when playing
    outside the
    Flash authoring environment by simply loading the swf from
    the hard drive.
    The Flash authoring environment is a trusted environment and
    so you really
    need to test in the actual deployment mode which loading an
    swf from the
    hard drive is not a valid deployment unless an installed
    Flash player is
    available outside the web browser which you would have as you
    have the
    authoring tool and your users will not.
    Use a browser with
    http://yourdomain.com/yourmovie.html
    to do final
    debugging.
    In this regard you may need to debug the movie while running
    in real time
    mode in a web browser with
    http:// A technique to trace I suggested is to
    create a temporary TextField perhaps named out_txt and send
    trace message to
    it such as out_txt.text += "My Trace Expression".
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "free23" <[email protected]> wrote in
    message
    news:[email protected]...
    sorry but i don't understand what you mean....i debug the
    movie step by step
    and realised that the xml file is being read by the code...
    this is a sample of my log files:
    #Fields: date time x-pid x-status x-ctx x-comment
    2006-05-15 20:08:58 3072 (i)2651170 Unloaded application
    instance
    videosource/_definst_ -
    2006-05-15 20:48:19 3848 (s)2641173 FCApplication loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Communication Framework
    loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 SimpleConnect loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 VideoConference loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Video Playback loaded
    successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Communication Components
    loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:19 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent
    before client
    connection has been accepted. -
    2006-05-15 20:49:42 3848 (s)2641173 Sending this message:
    Hello! You are
    connected as: false -
    hope this help...

  • Creating a Dynamic Playlist for Streaming Flash Video

    Hello,
    I have been trying the tutorial given by Lisa Larson in order
    to create a dynamic playlist for streaming Flash video files. I
    have realized some of the FLV files that I have downloaded from
    internet don’t show in the thumbPlayList and cannot be
    played. But once I convert them back to WMV and the use the Flash 8
    Video Decoder to convert them to FLV file everything works fine.
    Any idea or suggestion why there is such a problem?
    Thank you for your advice.
    Babak
    ps.
    This
    is the link to the tutorial I mentioned ...

    Hello,
    I have been trying the tutorial given by Lisa Larson in order
    to create a dynamic playlist for streaming Flash video files. I
    have realized some of the FLV files that I have downloaded from
    internet don’t show in the thumbPlayList and cannot be
    played. But once I convert them back to WMV and the use the Flash 8
    Video Decoder to convert them to FLV file everything works fine.
    Any idea or suggestion why there is such a problem?
    Thank you for your advice.
    Babak
    ps.
    This
    is the link to the tutorial I mentioned ...

  • Creating a Dynamic Playlist for Progressive Flash Video

    Hi
    I just finished reading the Creating a Dynamic Playlist for
    Progressive Flash Video (
    http://www.adobe.com/devnet/flash/articles/prog_download.html)
    tutorial, and it gives a pretty good overview, however I would like
    to be able to add the ability to stop and start the video as well,
    and the tutorial doesn't really explain how the embedded video
    works. Does anyone know how this can be accomplished, or at least
    know where I can find information on how to do this.
    Thanks

    I worked on the same project and it is working alright and
    still interested in adding more features like play pause etc ....
    but for now I'm more interested in adding the buffering bar and
    progress bar.
    Any help is welcome.

  • Trouble with Creating a Dynamic Playlist for Progressive Flash Video

    Hey There,
    I have been working on building a flash video player and are
    trying to incorporate the Dynamic Playlist for Progressive Flash
    Video. Everyting is working expect the thumbs are not appearing.
    Instead, on each row of the list it says " type function". The list
    is populated with data b/c i can navigate it and select a video to
    watch, just the thumbs are missin.
    Any ideas how I can get my jpg thumbs to appear?
    thanks

    I worked on the same project and it is working alright and
    still interested in adding more features like play pause etc ....
    but for now I'm more interested in adding the buffering bar and
    progress bar.
    Any help is welcome.

  • How to add a toggle play/pause button for a flash video

    Hi,
    Can someone help me with this flash video. I am creating a
    custom video controllers and I need to have a toggle play and pause
    button. How would do I go about that. I tried to use it on a play
    button and the video pauses and play, but I need to get the pause
    image and play image in there. So, can anyone give me the code for
    that . I really appreciate it.
    Thanks

    this is not truly an event driven state machine....
    too many loops
    data flow dependencies
    wrong use of boolean controls
    not a true state machine
    here is a template...
    Spoiler (Highlight to read)
    Attachments:
    event driven state machine.llb ‏27 KB

  • No full screen button for many flash videos (with the exception of youtube).

    I am using windows 8.1. I have updated flash and firefox. I can watch full screen videos on youtube but on sites like thedailyshow.com or southparkstudios.com there is no full screen button (only a cc button). I can find the button in chrome but not in ie or ff.

    If I understand correctly, your instructions enable a web page to be viewed in full screen. I'm having trouble viewing videos in full screen. No button exists to expand a video. I can expand any video on any browser on YouTube but the button isn't there when watching videos on sites like dailyshow.com or southparkstudios.com (it's there in Chrome but not in ff or ie, which leads me to believe it's not an Adblock plus, et al issue.
    Thanks in advance for your help.

  • Back button & Replay button for Flash movie on website

    Three questions all related:
    1. I need to add a "Back"  and a "Replay" button to a Flash movie that plays full screen when the link is clicked on a website. I have created the two buttons and placed them on the stage. I've given them the names back_btn and play_btn. I've tried several scripts from postings on the Forum for the replay button but all of them come up with errors such as, "1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton" when I use this script:
    stop();
    play_btn.onRelease = function()
    play();
    I also tried this script:
    stop();
    play_btn.addEventListener(MouseEvent.CLICK, playMovie);
    function playMovie(event)
    play();
    It didn't report any errors, but it didn't work.
    2. I saw a posting that said one needs to name the movie clip and reference it in the script. Would this be the file name of the movie after it is exported? I am unclear on this.
    3. For the "Back" button, would I include the whole url to get the viewers back to the previous page or is there a shortcut way to get them back there?
    If you can help, please provide detailed script as I do not know Action script.
    Thank you,
    Marilyn

    Hi, Ned:
    I have a presentation completed that is already up  on a website and now I need the "Back" button and "Replay" button, so whether I'm ready or not, I have to find a solution. I know I'm missing some important step. I have Lynda.com and I can usually figure out what's wrong with the lessons on there, but this one has me stumped.
    I did try the code change you sent and I was unable to get the movie to replay. I'm attaching two screen shots so you'll see that I did have the button instance named properly and the Action Script correctly written. You can "Ctrl" "Scroll" to enlarge the images on your screen.
    Marilyn

  • How To Create On Submit Button For Master_detail Page ?

    I have adf page that is master And detail view.
    i want to have one submit button for master and detail block

    Duplicate of  How To Create On Submit Button For Master_detail Page ?
    Please don'r post your question multiple times.
    Timo

  • How to create a help button for downloading a help file in OA Framework

    Hi all
    I want to create a help button for downloading a help document.Plz suggest me how to do it.
    Thanks
    Bhupendra

    Create a button of type "button",set the destination url property to the place u have kept the file.But ur file should be anywhere in Common_top.If this file is stored as blob u can use messagedownload bean.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can we create a OCA button for Overview page?

    Hi Experts,
       Please help me with all the steps for creating an OCA button for Overview page. I have already tried it for table view in Viewset and it is working fine but how to do that in Overview page.
    Thanks and Regard,
    Pranoy Kumar

    Hi Pranoy,
    You need to redefine two methods of OVP view's _IMPL class and paste this code:
    METHOD if_bsp_wd_toolbar_callback~get_buttons.
      DATA:  ls_button    TYPE  crmt_thtmlb_button_ext.
    Ls_button-on_click = 'EDIT'.
         ls_button-type = cl_thtmlb_util=>gc_icon_edit.
         ls_button-page_id = me->component_id.
         ls_button-enabled = abap_true.
        APPEND ls_button TO rt_buttons.
      ENDMETHOD.                    "if_bsp_wd_toolbar_callbacku2014get_buttons
    method IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS.
    *CALL METHOD SUPER->IF_BSP_WD_TOOLBAR_CALLBACK~GET_NUMBER_OF_VISIBLE_BUTTONS
    *  RECEIVING
        RV_RESULT = 6.
    endmethod.
    And write the event handler method for here in my case EDIT, or you can write depending on your requirement.
    Regards,
    Vishal.

  • Creating a cusotm button for Portlet Titlebar

    I am trying to create a custom button for our help system. The Help System is being
    hosted external to the portal. Ideally when a user clicks on the help icon a new
    window will appear with help relevant to that portlet.
    I can update a skeleton's titlebar.jsp to add this button and pull details from
    the portlet preferences to makes sure the relevant url is generated. The issues
    i see with my code are that they may not leverage the skin api very well to retreive
    the correct help images or apply the correct style to the border of the image.
    I see there are objects out there like ButtonPresentationContext and ToggleButtonPresentationContext
    that appear to retrieve look-and-feel information. Is there a way for me to populate
    my own ButtonPresentationContext to represent this custom button?

    I am currently trying to implement the help button on the title bar (I have suppressed the portlet title bar). I am able to add the portlet button, but am not able to get the help URL specified in the webservices advanced url settings page.
    Sample code
    <TABLE cellSpacing="0" cellPadding="0" width="100%">
         <TR>
              <TD class="platportletHeaderBg platportletWideHeader portletTitle" vAlign="middle" align="left">Test Page</TD>
              <TD align="right" valign="middle" nowrap class="platportletHeaderBg customappText portletButtons">
                   <span class="portletHelpButton"><img src="images/action_portlet_help.gif" alt="Test Help." border="0" align="absMiddle"
                             height="13" width="13"></A></span>
              </TD>
         </TR>
    </TABLE>

  • How do I find a "download button" for the Flash Player 11.x?

    How do I find a "download button" for the Flash Player 1.x updateon my Mac? All I find is a download tag for other products on the Adobe Flash Player 11.6.602.180" page.

    You don't even need a button.
    Either:
    <a href="docs/mytext.pdf">My text</a>
    Or:
    <a href="docs/my text.pdf"><img src="images/pdf.gif"
    width="34" height="20" border="0"></a>
    where the image is the pdf symbol
    GP01

  • Creating a mute button for video in as3

    I would like to create my own mute button in as3. I have created a video object which plays my video fine. I'm having trouble finding information on how to create a mute button that mutes the audio but the video continues to play. All documentation that I've read relates to controlling sound from an loaded .mp3 file. Does anyone know how I can do this? The gotoandlearn.com site explains it using as2 only.
    Thanks

    I figured it out:
    sound_mc.addEventListener(MouseEvent.CLICK, soundOFF);
    function soundOFF(e:MouseEvent) {
         var transform:SoundTransform = new SoundTransform();
         transform.volume = 0;
         stream.soundTransform = transform;
    Thanks for all your help on this. You'll probably see more of my post as I struggle with AS3 and my flash project.

  • Replay Button for SWF animation

    Situation: Imported animated SWF file into slide. Using
    Captivate Back and Next buttons to control navigation. I want to
    add a "Replay Demo" button for the animation SWF file.
    Is this possible through Captivate (or Flash)? I don't want
    the continuous loop animation but do I want the option for a user
    to review animation again if desired.

    I hate it when I post something on a forum and then I
    discover the answer 10 minutes later. Ny your answer I'm guessing
    the Captivate add button fweature with a Jump to slide 1 setting"
    is the answer, right?
    That DID fix the replay issue. Now on to second issue. The
    animation blanks out once it finishes playing. While looking for
    the replay answer yesterday, I noticed a post that said something
    about creating a screen capture of the last slide and insert it on
    the timeline or something... back to searching. Thanks for the
    quick reply.

Maybe you are looking for

  • Pages export to ePub and retaining italics

    Is there a method to retain italics when exporting to ePub? Thanks

  • Why am I having so much trouble downloading ios 5?

    I can not download the ios 5 update to my Mom's iphone 3gs. I have tried from itunes. I have tried direct download. I have downloaded and used the internet download manager. I am still having difficulty in getting the update to download. It seems to

  • How does one get a full AppleCare refund due to lousy Apple Support?

    Listed support phone number doesn't work, and apparently there's no email address you can write to.

  • Why Netweaver vs. custom SAP and Web development

    I have been reviewing Netweaver as well as SAP's Manufacturing Execution (ME) to determine whether we want to implement this functionality.  I understand that Netweaver provides a standard platform for a company's custom development but my question i

  • Master data problem

    Hi BW Experts,        We have a Sales Organization Infoobject. It contains 16 records in Source system(R/3). And when i extracted the data from Source System to BW, in PSA iam getting the same records as well as in data target (Infoobject) it shows 1