Solved

gotoandstop frame when flv video ends AS2(Flash 8) using The Flash Video Skin component

Posted on 2008-10-04
2
1,138 Views
Last Modified: 2013-11-11
I need to do a gotoandplay action when my flash video ends. I use a standard Flash video component skin(steeloverall) within flash 8 as2. Please Help. It would be much appreciated.

Here is the link to my fla source for reference

http://btcmovie.com/btcultimate/trailer.fla
0
Comment
Question by:jmanstorm
2 Comments
 
LVL 13

Accepted Solution

by:
crooksy88 earned 500 total points
ID: 22643808
Assuming you have an instance of the FLV component in your library named FLVPlayback, the following code will dynamically add an instance to the stage, play the flv, and when complete, remove the flv component and goto frame 10.

If you search for flv in the Flash help you will find reference to other parameters for the flv component such as auto hiding skin, autoplay etc.

And obviously you will have to change the sizing, positioning and naming parameters to suit your needs.
import mx.video.*;
_root.attachMovie("FLVPlayback", "my_FLVPlybk", 1, {width:400, height:300, x:10, y:10});
 
_root.my_FLVPlybk.width = 400;
_root.my_FLVPlybk.height = 300;
_root.my_FLVPlybk.contentPath = "movie.flv";
_root.my_FLVPlybk.skin = "steeloverall.flv";
 
var listener = new Object();
listener.complete = function(evt)
{
  removeMovieClip(_root.my_FLVPlybk);
gotoAndPlay(10);
}
_root.my_FLVPlybk.addEventListener( "complete", listener );

Open in new window

0
 

Author Comment

by:jmanstorm
ID: 22694490
O.k. What would be the reference if I am loadiing the swf to a container swf.. I want the gotoandplay to be in the loaded movie.swf timeline and not the container swf. see the following site and video load as an example...It has to be something other than root. to you know?

here is an example link: http://btcmovie.com/btcultimate/phase1/.

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question