GotoAndPlay next frame after external flv finishes

The subject title pretty much tells it all.  I've got a flash project where a video component plays an external flv file.  I've got a different flv file loaded at each keyframe.  Right now the flv plays and then it stops and waits for you to click on the next video you want to watch.  I want it to automatically go to the next keyframe and start the next video.  Any suggestions?

Ok, I just found something that may help you help me..I'm not the one who originally created this component so I wasn't quiet sure how it was done but your question got me to investigating.  It looks like I'm using exactly what is described here, http://www.meshybeats.com/components/userguide.htm.
Here's their example of what I could do to trigger something at the end of the video playing:
var myListener = new Object();
myListener.end = function(eventObject):Void
trace(eventObject.target);
trace(eventObject.type);
trace("video ended");
myDisplay.addEventListener("end", myListener);
I'm not sure how I would manipulate that to have it go to the next frame though.  Any thoughts?

Similar Messages

  • How do I open a new url after a flv finishes playing?

    Sorry for asking this question again, but I'm under the gun.
    I have a get
    url action script command in my movie in the frame after an
    FLV. It doesn't
    work. What's the trick to triggering a getURL command when an
    FLV finishes?
    Thanks.

    Fudo wrote:
    > Sorry for asking this question again, but I'm under the
    gun. I have a get
    > url action script command in my movie in the frame after
    an FLV. It doesn't
    > work. What's the trick to triggering a getURL command
    when an FLV finishes?
    >
    help - search - cue points
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • GotoAndPlay specific frame in external swf from main swf

    I have a main swf that loads 2 external swfs.
    I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
    In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
    NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
    However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
    Here is code in frame #1 of main swf to load external swfs:
    //load academic movie
    var swfLoader1:Loader = new Loader();
    container1.addChild(swfLoader1);
    var url1:URLRequest = new URLRequest("academic.swf");
    swfLoader1.load(url1);
    //load wisdom movie
    var swfLoader3:Loader = new Loader();
    container3.addChild(swfLoader3);
    var url3:URLRequest = new URLRequest("wisdom.swf");
    swfLoader3.load(url3);
    Here is code in frame 2 of main swf that checks button to see where to go in external swf:
    //academic button clicked
    function academicClick(event:MouseEvent){
       container3.alpha = 0;
       container3.visible = false;
       container1.visible = true;
       container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
       container1.alpha = 1;
    I don't want to reload the external movie to force it to start over.
    Any help would be much appreciated.

    You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
    //Loading clips content
    var ldr:Loader;
    var mcExt:MovieClip;
    //Loading
    loadswf("external.swf");
    function loadswf(tmp:String):void{
        unloadSwf();
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    //UnLoading
    function unloadSwf():void{
        if (ldr!=null){
            ldr.unloadAndStop();
            removeChild(mcExt);
            mcExt=null;
    //Intervals (The part you work on the specific frame within the external swf
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        if (num==1) mcExt.play();
        if (num==9) {
                mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                function skipfn(e:MouseEvent):void{
                    mcExt.stop();
                    mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
        if (num==mcExt.totalFrames){
            mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
            gotoAndStop("help");
    hope it solve

  • Newbie: How to go to the next frame after movie clip is complete

    I know this should be the simplest thing to do, but I can't
    figure it out. I have a movie clip on my timeline. I want it to
    play completely before the timeline moves to the next frame. Can
    someone point me in the right direction?

    On the last frame in the movieclip, place this code (it's
    Actionscript 2).
    _parent.nextFrame();

  • Swf doesn't go to next frame after publishing??

    Hopefully a very simple fix here. I test my movie in Flash, even open it directly with the browser, and all is well. The gotoAndPlay works, and my animations look fine.
    However, when I publish the movie, and then test in the website, it stops after the first frame! What gives?
    Any help is greatly appreciated. Thanks

    Are you using some sort of actionscript comments like stop(); in the frame which might stop it playing once been loaded? If you want the gotoAndPlay to go to any specific frame you normally have to give them the frame number so something like gotoAndPlay (5); This tells it to go to frame 5 on the timeline.

  • Automatically skip to next page after video is finished?

    Hi all,
    I'm making a pdf presentation including embedded video's with Indesign.
    When I'm presenting, the pdf is on full screen, and I use my wireless mouse  (I'm not standing near my laptop) to go to the next page.
    However, this method stops working after an embedded video has finished.
    Is there a way to automatically make the page - with embedded video - skip to the next after the video has finished?
    I hope someone can help me on this.
    Best, Erik

    With the standard tools it's impossible, as there is no event triggered to indicate that a video has finished playing. You will need to use a different videoplayer widget when creating your PDFs in InDesign, then add some JavaScript to the PDF in Acrobat. See UVSAR : VideoPlayerX for Adobe Acrobat Pro and the examples for the vpx_listener() function.

  • Captivate button going to next frame in Flash MX

    I have a button in Captivate 1.0. I am calling the move with
    a loadMovie function. I want the next button in Captivate to go to
    the next frame in my Flash MX file. Is this possible? and if so,
    how and if not, how do I get back to my Flash movie next frame
    after running an external captivate .swf file?
    sorry, I tried to delete this and put it in the Captivate
    forum, but could not figure out how. Sorry for the double post

    thanks for the correction kglad,
    flominton,
    Looks like you're new to Flash like me. Let me walk you through what I've done for my project.
    I opened up a AS2 project in Flash, created three layers (video, postcard, actions)- bottom to top.
    In video layer click on the first frame, and import your flv video. Once the importing is done click on the FLVPlayback on the stage and give it an instance name "player". Right click on the first frame on video layer and open up actions panel, enter this code:
    stop();
    player.addEventListener("complete",function (event:Object) {
    gotoAndStop("LabelNameHere");});
    Now, click on the second frame on postcard layer. Create a keyframe, and in the properties panel give your frame a label. I gave it the name "postcard"  for example. So whatever name you put in the label name area, write it in the code where it says "LabelNameHere". Assuming you have the image you want to put after the video plays in your library panel, drag the image on the stage while you're still in the second frame on postcard layer.
    You dont have to do this part, but after I draged the image on the stage I converted it to a movie clip and created an alpha transition. Let me know if you dont know how to do this.
    If you'd like to link your image to a URL follow these steps. After I converted the image into movie clip, I right clicked on the image on the stage and opened up the actions panel and entered this code:
    on (release) {
        //Goto Webpage Behavior
        getURL("https://www.yourwebsite.com","_self");
        //End Behavior
    Finally, go to your actions layer. make sure this layer has equal number of frames as the the postcard layer does. Insert this code in the last frame of actions layer:
    stop();
    I hope this helps.
    Veli

  • If Multiple Hittests equal true, go to and play next frame

    Hi All,
    I am trying to finish up a project and run into this problem, right now I am trying to create a drag and drop game and on the last game you can drop
    parts into the others, what I want to happen is that when all are in the correct spot gotoandplay next frame. This is my current code,
    Thanks
    if(one_mc._droptarget=="/onedef_mc" && two_mc._droptarget=="/twodef_mc" && three_mc._droptarget=="/threedef_mc" &&
    four_mc._droptarget=="/fourdef_mc" && five_mc._droptarget=="/fivedef_mc" && six_mc._droptarget=="/sixdef_mc" &&
    cave_mc._droptarget=="/cavedef_mc" && eight_mc._droptarget=="/eightdef_mc" && nine_mc._droptarget=="/ninedef_mc" &&
    ten_mc._droptarget=="/tendef_mc" && eleven_mc._droptarget=="/elevendef_mc" && twelve_mc._droptarget=="/twelvedef_mc");
    this is the if statement, im just not sure how to implement the gotoandplay...
    Does this make sense?
    Thanks

    if you don't have code to check if all the movieclips have been dropped on their targets, there's no way that code can work.
    use something like:
    one_mc.onPress = function()
    one_mc.startDrag();
    one_mc.onRelease = function()
    checkF();
    if(one_mc._droptarget=="/onedef_mc")
      // align Sprite3
      one_mc._x = onedef_mc._x + (onedef_mc._width-one_mc._width)/2;
      one_mc._y = onedef_mc._y + (onedef_mc._height-one_mc._height)/2;
      one_mc.gotoAndPlay("success");
      // the code in italics doesn't look right
    } else {
      (one_mc._droptarget=="/onedef_mc")
      // align Sprite3
      one_mc._x = onewrong_mc._x + (onewrong_mc._width-one_mc._width)/2;
      one_mc._y = onewrong_mc._y + (onewrong_mc._height-one_mc._height)/2;
      onedef_mc.gotoAndStop("fail");
    one_mc.stopDrag();
    function checkF(){
    if(one_mc._droptarget=="/onedef_mc" && two_mc._droptarget=="/twodef_mc" && three_mc._droptarget=="/threedef_mc" &&
    four_mc._droptarget=="/fourdef_mc" && five_mc._droptarget=="/fivedef_mc" && six_mc._droptarget=="/sixdef_mc" &&
    cave_mc._droptarget=="/cavedef_mc" && eight_mc._droptarget=="/eightdef_mc" && nine_mc._droptarget=="/ninedef_mc" &&
    ten_mc._droptarget=="/tendef_mc" && eleven_mc._droptarget=="/elevendef_mc" && twelve_mc._droptarget=="/twelvedef_mc"){
    gotoAndPlay(_currentframe+1);

  • Advancing a wmv to the next frame

    Is there an easy script to use to advance an .wmv to the next frame after playing?
    I do not know lingo but have used easy scripts (below) controlling mpgs with xtras.
    any help would be greatly appreciated.  thanks, Don.
    on 
    exitFramego 
    to the frame
    end
    on  
    OnStagePlaybackFinished
    go  to the frame + 1end
     

    Hi,
    Look at the Post Action of a Step, you can set this to do a number of tasks, one of which is to invoke a SequenceCall. You have the option to do a post action on a PASS, FAIL or you can perform a Custom Post Action.
    Hope this is what you are looking for
    Regards
    Ray Farmer

  • External Flv video finish goto first frame

    Hi,
    I insert 1 external flv video in maintimeline 2 frame.
    when video finished goes to 1st frame.
    Plz Help Me............
    Thanks & Regards,
    Mandar

    fullscreenbtn.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    stage.displayStage="fullScreen";
    // make sure to use the allow fullscreen html template (file>publish settings>html).

  • End of Flv to go to next frame

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3261382853_1599170
    Content-type: text/plain;
    charset="ISO-8859-1"
    Content-transfer-encoding: 8bit
    I have a flash movie with an external .flv file playing in
    it. I would like
    that once the video ends, it should play the next frame in
    the flash file, I
    have searched a lot on the net I can¹t seem to find
    anything easy to
    implment. Can someone help me pleaseeeeeeee?!??!
    --B_3261382853_1599170
    Content-type: text/html;
    charset="ISO-8859-1"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>End of Flv to go to next frame</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Helvetica, Verdana, Arial"><SPAN
    STYLE=3D'font-size:12.0px'>I hav=
    e a flash movie with an external .flv file playing in it. I
    would like that =
    once the video ends, it should play the next frame in the
    flash file, I have=
    searched a lot on the net I can&#8217;t seem to find
    anything easy to implm=
    ent. Can someone help me
    pleaseeeeeeee?!??!</SPAN></FONT>
    </BODY>
    </HTML>
    --B_3261382853_1599170--

    var vidList : Object = new Object();
    vidList.complete = function() {
    _level0.play(); //this is the action that occurs when the
    movie is finished
    vid.addEventListener ("complete",vidList);
    stop();
    The FLVPlayback component needs an instance name of vid for
    this to work

  • How do I set up iTunes to automatically move on to play the next album after the last one has finished? (in Album view)

    How do I set up iTunes to automatically move on to / play the next album after the last one has finished? (in Album view).
    This used to happen automatically in Genre view.

    Hi Henryhippo,
    If you have questions about play order in iTunes, you may find the following article helpful; I believe you can use the Play Next or Add to Up Next to add albums as well as songs.
    iTunes 11 for Windows: Ways to play songs
    Regards,
    - Brenden

  • How can I make the frame advance after an flv is done playing?

    I've got an flv that we're streaming from a website and I
    want the swf to advance to the next frame once the video is done
    playing. I've looked all over for a way to do this, but I can't
    find anything. Does anyone know of some actionscript code that will
    work?
    Thanks.

    Nevermind. I figured it out for myself. I used this code
    right on top of the player itself.

  • How to go to next frame at end of FLV ?

    I have 10 frames. Each one has a movie clip (.FLV) within an
    FLVplayback componet. Works great, but I can't figure out how to go
    to the next frame when the clips end? Do I have to use a timer or
    something like that? Your assistance is appreciated. Thank you.
    (using Flash8 on pc)

    the FLVPlayback component does not play movie clips, it plays
    FLV video files. You need to set up a listener for the, "complete",
    event that is triggered by the player when the video has ended.
    Once the listener fires, send the playhead to where you want. Look
    up the FLVPlayback class in the help docs (F1), you will find all
    you need there.

  • How do i automatically start the next slide after the video on the prevues slide is finished

    I have slide 1 with a video loop witch tranistion to the next on a click. the next slide (slide2) automaticlly starts plays. I want to know how to start Slide 3 automaticlly after the video on slide 2 is done playing. Slide 3 is also on a loop. and start slide 4 on a click. then repeats......  

    I once had the same problem, but it was worse because the length of the video was more than the maximum delay that could be set (Keynote'08, I do not know if this changed in '09). I was helped by someone of this community. She suggested adding invisible text fields, each having a delay, sequenced one after the other. Together they added up to a sufficient delay to play my video and go to the next slide after that. I hope this information will be of use, if need arises.

Maybe you are looking for

  • Is it possible to apply a best fit line to charts?

    The topic pretty much says it all, I have a scatter chart that I need to apply a best fit line to in order to make a general slope assumption. Is it possible to do this, and if so how? Also, I can't seem to put a label on my X and Y axis'. I have the

  • When placing a png in indesign the png changes/loses its orginal color.

    When placing a png in indesign the png changes/loses its original color. Ex. the very clear blue that I am using turns dark and "dirty". ( my RGB is : 5,125, 255  -  when I type this I get a " out of gamut warning" a little yellow icon. When I click

  • Remote WSUS integration with SCCM 2012

    Hi, We are currently having WSUS already in place for Patching , but not used at all its just installed. can remote WSUS be integrated with SCCM 2012 server which is on different server ? what is the best practice ? is it to have WSUS on same server

  • Macbook Pro 2008 15 2.5 8600 vs Macbook Pro 2.4 320m

    I am wondering what the performance differences will be between a 2008 MBP 15 and 2010 MBP 13. The older one has a dedicated 8600 video card and the MBP has a video chip that shares memory. Any and all information appreciated. I use the machine for n

  • Ringback Tones Times Limitation Problem (poor web design)

    When managing ringback tones times, I found the Start time cannot be later than the End time. This limitation (to continue from PM into AM) should be removed. I would like to set a ringback tone for Non-Business Hours and weekends: 6PM-7AM MTWTF and