[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
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,148 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 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

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…
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…
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): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

872 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