SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru Dijup's Avatar
    Join Date
    Jun 2006
    Location
    Kathmandu, Nepal
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    listenerObject event problem

    I am using the
    Code:
    var listenerObject:Object = new Object();
    listenerObject.ready = function(eventObject:Object):Void  {
     trace(flvPlayer.totalTime);
    };
    flvPlayer.addEventListener("ready", listenerObject);
    to grab the time of the flv movie but some time this event is not able to get the time i need to refresh the page the time.

    I think there is some problem with the event.

    Need help.

  2. #2
    SitePoint Guru Dijup's Avatar
    Join Date
    Jun 2006
    Location
    Kathmandu, Nepal
    Posts
    790
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Used this

    Code:
    var listenerObject:Object = new Object();
    listenerObject.metadataReceived = function(eventObject:Object):Void  {
        trace("metadataReceived---"+flvPlayer.totalTime);
        _root.timeformate(flvPlayer.totalTime);
    };
    flvPlayer.addEventListener("metadataReceived", listenerObject);
    this is working fine i think this solved my issue but not sure.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •