Solved

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

Posted on 2008-10-04
2
1,133 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now