PDA

View Full Version : Going to Next Frame after FLVPlayback is done playing


relationsmith
6-9-09, 02:34 PM
I am new to Flash CS3, and I have an FLV video(40 seconds) and a postcard which I want to show in the video farme after the video is complete. The postcard at the end will a link to a URL. I've tried all the codes I could find on the internet, but I couldnt accomplish anything. I must be doing something wrong. Here is what I am doing:

* I put a FLVPlayback component in the first frame on the stage.
* Give the FLVPlayback component an instance name.
* Link the FLVPlayback component to a flv file on my server.
* Put the postcard in the second frame on the stage.

Like I said I've tried lots of codes and none of them worked. If anyone could help me with this I would really appreciate it.

Veli

YvetteKuhns
6-9-09, 03:07 PM
I have an earlier version of Flash, but I remember placing the get URL link script at the end of the timeline where the "postcard" appears (the second frame). The link to the URL must be correct.

Guy
6-10-09, 12:34 PM
The best way I know of to get this to work is to use cue points in the movie or in actionscript. check this thread http://forums.powweb.com/showthread.php?t=81207 If you have any questions Ill be checking the forum later. Enjoy

If you are using AS3 coding you could use this in the first frame--
and of course rename vid to what ever you named your FLA component
stop();

import fl.video.*;
vid.addEventListener (VideoEvent.COMPLETE, finishedVid);

function finishedVid(event:Event):void{
gotoAndStop(2);

}