| FLV
• | | | |
 | FLV
by gonats on Oct 9, 2006 at 8:59:13 pm |
I have an FLV streaming in a project and would like it to bounce back to the "menu" once it is completed. Does anyone know how to write a script for that?
thanks
| | | | |
• | | | |  | Re: FLV by RobotHero on Oct 9, 2006 at 10:10:56 pm |
Is the "Menu" another scene or frame within the flash file, or is the "Menu" another html page? Or what?
| | | | |
• | | | |  | Re: FLV by gonats on Oct 9, 2006 at 10:24:46 pm |
it is a frame label with in the time line. I am trying to use the following code
myListener = new Object("mymovie");
myListener.complete = function() {
mymovie.play();
};
mymovie.addEventListener("complete", myListener);
_root.startTime = getTimer();
stop();
| | | | |
• | | | |  | Re: FLV by RobotHero on Oct 9, 2006 at 10:43:01 pm |
If I understand your code, anything you put inside of your "complete" function [Right where you put mymovie.play(); ] will be played when the movie is completed.
So that is where you would put _root.gotoAndPlay() or _root.gotoAndStop() to make the root timeline return to the frame you want.
| | | | |
| |
|