FORUMS: list search recent posts

Automatic Video Advance

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dave Macomber
Automatic Video Advance
on Sep 27, 2011 at 9:53:32 pm

Kind of a newb, here -- sorry if this is a dumb question.

I'm looking for a method of automatically advancing to a point in the timeline at the conclusion of a video. In other words, the video (FLV) is on frame 1 of the timeline, with a stop at this frame in the actions. Upon completion of the video, I'd like the timeline to automatically advance to frame 2.

Hopefully I've articulated that well enough. Thanks in advance!

Return to posts index

demetri tashie
Re: Automatic Video Advance
on Sep 29, 2011 at 12:08:49 am

hi dave,

if you want to do this in the manner you describe, you can use the VideoEvent of the video class to do this. It can listen for when a FLVPlayback instance has finished playing ( COMPLETE ), and in its function you can then direct your timeline to play to frame 2.

the code would look like this:


var flvPlayer:FLVPlayback = new FLVPlayback();

flvPlayer.addEventListener(VideoEvent.COMPLETE, remove);
function remove(e:VideoEvent):void{

this code above uses a FLVPlayback Component that was added from the Library rather than placed directly on the stage.

hope that helps.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved