Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

FLV Component Ends then gotoAndPlay labeled frame - using actionscript3

I am trying to add action script that will do the following.

after intro video finishes playing
gotoAndPlay a labeled frame in my timeline.

I have tried everything I can think of, but have had no luck.
Please help... I'm in a crunch to get this done :(
  • 2
1 Solution
Aneesh ChopraCommented:
here is the sample AS3 code,

change followings in the code below:
1) all occurance of "my_FLVPlybk" with your actual FLVPlayback instance name
2) udpate FLV Path at:"<FLV VIDEO PATH HERE>";
3) update frame label at: "<FRAME LABLE HERE>";

import fl.video.FLVPlayback;
import fl.video.VideoEvent;
my_FLVPlybk.source = "<FLV VIDEO PATH HERE>";
my_FLVPlybk.addEventListener(VideoEvent.COMPLETE, cp_listener);
function cp_listener(ev:VideoEvent):void {
	trace("FLV ENDS");
	gotoAndPlay("<FRAME LABLE HERE>");

Open in new window

ao_mAuthor Commented:

it works perfect.
Aneesh ChopraCommented:
To close a question, you should also accept a comment as solution if you are satisfy with it.
otherwise it will remain as an opened question.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now