1 Reply Latest reply: Jan 7, 2014 2:33 PM by kglad RSS

    video end action

    rickg1949 Community Member

      I have the functionality working to have the multi-button menu with roll-overs up when app opens, and click on button and play an mp4 movie.

       

      Now I'm just stuck on how to incorporate eventlisteners to get the app back to the menu once a video finishes.

       

      Set it up with menu graphics on frame 1, then instances of FLVPlayback on fames 30 and 60 to start with.  Click on button for video 1 and we go to frame 30 and play mp4 and same for video 2 to frame 60.  I just can't get back to menu.

       

      Is it that I need to use the NetConnection actions?

       

      What I'm looking for is code that when "video1" (test1.mp4) ends we return to frame 1 labeled "menu" and when "video2" (test2.mp4) ends we do the same.

       

      Tried this code without success (must be my stupid):

       

       

      video1.addEventListener(Event.COMPLETE, doNav);

       

       

      function doNav(e:Event):void {

          trace("video done");

      }

       

       

      Thank you, thank you, thank YOU!!  in advance,

       

      Rick