Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

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,146 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

609 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