?
Solved

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

Posted on 2008-10-04
2
Medium Priority
?
1,144 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
crooksy88 earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

743 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