Search code examples
actionscript-3flashdynamicflv

Changing path of flvplayer from timeline in as3?


I can get the videos to play using the flvplauer component, but I'm having a little trouble figuring out if and how to dynamically change the path of the flvplayer while running through a timeline.

If I can do something like mc.changeFLVPath that would be awesome.


Solution

  • Depending on where you call the function from, you should be able to do the following

    function playFLV(url:String):void
    { 
        playerInstanceName.source = url;
        //or mc.playerInstanceName.source = url;
    }