View Full Version : How to force stop on last frame inside .FLV?
jbruso
07-03-2007, 10:24 PM
They way I'm using this movie on my site requires me to force stop the video on the last frame. But, FLVs end and then go back to the beginning by default. How can I cahnge that?
In this video, I want it to end on the last frame with the flowers, instead of stopping at the beginning in black: http://dev.sheridan.edu/Home_page_int/IntroMovie/intro_movie.html
Thanks,
John
panel
07-03-2007, 10:42 PM
this should do the trick
FLVPlayback.autoRewind = false
jbruso
07-03-2007, 11:05 PM
thanks Panel,
Do I need an onClipEvent handler or do I just drop that in my action scripts?
Sorry, still new to as.
:) J
panel
07-03-2007, 11:09 PM
it is object property so just put in as where FLVPlayback componet is present
Remeber that 'FLVPlayback' showed in example is FLVPlayback instance name (set by you)
jbruso
07-03-2007, 11:21 PM
Ahhh, thanks for clarifying panel...
I put homepage_mc.autoRewind = false on my object. homepage_mc is the instance name of my flv. However, when I test the movie, nothing loads... ??
This is where my .FLA is:
http://dev.sheridan.edu/Home_page_int/IntroMovie/intro_movie.fla
panel
07-03-2007, 11:34 PM
becouse you have compiling error.
Add FLV.autoRewind = false to frame (not to object instance)
jbruso
07-03-2007, 11:38 PM
ah, thanks for giving me a good head start Panel.. I figured out what i was doing wrong by looking at the Flash help:
Example
The following example sets the autoRewind property to false to prevent the FLV file from automatically rewinding when it finishes playing.
Drag an FLVPlayback component to the Stage, and give it an instance name of my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the Timeline:
/**
Requires:
- FLVPlayback component in the Library
*/
my_FLVPlybk.autoRewind = false;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.