FLV Component Ends then gotoAndPlay labeled frame - using actionscript3

Posted on 2008-11-13
Last Modified: 2013-11-19
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 :(
Question by:ao_m
    LVL 34

    Accepted Solution

    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>";

    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


    Author Comment


    it works perfect.
    LVL 34

    Expert Comment

    by:Aneesh Chopra
    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

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now