Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

media playback, cue points, gotoandplay

Status
Not open for further replies.

sammymaudlin

Technical User
Jun 20, 2006
4
US
Fairly new to Flash. Not an actionscripter but can certainly cut & paste. I have a media playback component that loads an flv. All fine and good. When that playback ends I want to move on down my timeline. I'm looking for something like: at flv end gotandplay "frame label" Can anyone help me? Do I need to embed a cue point? I'd rather not but... Also I'd prefer to do it with Flash 7 but if it has to be 8, it has to be 8. Thanks in advance.
 
Took me forever and then some. Hopefully I can save someone else from the hassel. I didn't use cue points at all. Here's what I found:

Do not attach the script to the FLVPlayback component, just put it on the frame where you use the component. Remove the onClipEvent handler and use this script exaclty as written:
=====================
vid.contentPath = "flash.flv";
var vidList : Object = new Object();

vidList.complete = function() {
gotoAndPlay("Scene 4",1);
}
vid.addEventListener ("complete",vidList);
=====================

Make sure the FLVPlayback or Media Playback component has an Instance name of vid.
"flash.flv" should be the name of your flv. Include quotes. assign "Scene ", frame) appropriately.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top