A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FLV Playback

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    9

    FLV Playback

    Hello, I need to load another .swf into an iframe after a .flv fisnishes playing. what is the best way to accomplish this?

  2. #2
    Beyond the Sea
    Join Date
    Mar 2000
    Posts
    997
    The easiest way is to use the FLV Playback component and listen for its "complete" event:
    Code:
    /**
     Requires:
      - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
    */
    import mx.video.*;
    var listenerObject:Object = new Object();
    listenerObject.complete = function(eventObject:Object):Void {
        trace("Elapsed play time at completion is: " + my_FLVPlybk.playheadTime);
    };
    my_FLVPlybk.addEventListener("complete", listenerObject);
    my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
    The Coolest Website EVER!
    Do you live in Kansas City? Come join us at KCWebCore

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center