Help With Listener and FLV

Posted on 2006-04-11
Last Modified: 2012-06-27
I'm trying to tell when my FLV is completed playing. I have a one frame flash doc with the FLVPlayback instance in the root and named correctly.

I have this in the timeline:

var MyListener = new Object();
myListener.end = function(eventObject):Void
      trace("video ended");


It doesn't work. Any ideas on what I'm doing wrong?

Question by:clickclickbang
    LVL 39

    Accepted Solution

    myDisplay.addEventListener("end", completeListener);
    function completeListener(evt_obj:Object):Void {
         trace("video ended");

    LVL 39

    Expert Comment

    wait wait,
    change that "end" to complete

    myDisplay.addEventListener("complete", completeListener);
    function completeListener(evt_obj:Object):Void {
    trace("video ended");
    LVL 1

    Author Comment

    Those viewing PAQ please make note of code change in the second post....

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    779 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

    11 Experts available now in Live!

    Get 1:1 Help Now