all groups > flash (macromedia) > june 2007 >
You're in the

flash (macromedia)

group:

FLV video



FLV video mikewooten05
6/28/2007 10:02:44 PM
flash (macromedia): hello,
i am using FLV videos in my flash document. I have imported it as video and
not onto the stage. how can i get the video to keep playing when it gets done
playing and also go to the next frame after the video gets done playing. i have
my autoPlay and autoRewind set to True, if that has anything to do with it.
thanks
Re: FLV video C-Rock
6/28/2007 10:17:20 PM
Re: FLV video mikewooten05
6/28/2007 10:27:02 PM
what's a listener and how to i add it to the end of the video or .flv and how can i get it to trigger other funtions?
Re: FLV video Nickels55
6/28/2007 10:37:20 PM
Click on the FLVPlayback component and open the properties window. Give it an
instance name like vid. Then click on the FRAME (do not attach to component)
containing the playback component and paste in this code:

var vidList : Object = new Object();
vidList.complete = function() {
vid.play();
}
vid.addEventListener ("complete",vidList);
stop();
Re: FLV video mikewooten05
6/28/2007 10:53:30 PM
cool, thanks, that worked. now if i wanted to use that same code throughout the
timeline on other videos, i would only change the vidList and the vid to the
instance name of each of the FLVPlayback components? thanks
Re: FLV video chicksel
6/29/2007 12:00:00 AM
Re: FLV video Nickels55
6/29/2007 12:52:24 PM
#1 - to reuse this code for other videos change the instance name of the video
and and the variable name.

#2 - to make the video loop:

var vidList : Object = new Object();
vidList.complete = function() {
vid.play(); //change this to your desired action
}
vid.addEventListener ("complete",vidList);
stop();
AddThis Social Bookmark Button