robbientropic
07-05-2007, 04:59 PM
Hi there,
I'm trying to change the source file of my FLVPlayback component (using buttons to select various videos), I've tried quite a few different angles but can't seem to get it going. The FLV files are on the same directory as the swf.
I'm sure there's a more efficient way of scripting this, please excuse my feeble attempt hehe.
...here's my script, any help greatly appreciated. (:
function videoOne(event:MouseEvent):void
{
var flvPlay:FLVPlayback = videoDiary_mc;
var flvSource:String = "vid01.flv";
flvPlay.load(flvSource);
}
function videoTwo(event:MouseEvent):void
{
var flvPlay:FLVPlayback = videoDiary_mc;
var flvSource2:String = "vid02.flv";
flvPlay.load(flvSource2);
}
archiveVideo.videoBtn1.addEventListener(MouseEvent .CLICK, videoOne);
archiveVideo.videoBtn2.addEventListener(MouseEvent .CLICK, videoTwo);
I'm trying to change the source file of my FLVPlayback component (using buttons to select various videos), I've tried quite a few different angles but can't seem to get it going. The FLV files are on the same directory as the swf.
I'm sure there's a more efficient way of scripting this, please excuse my feeble attempt hehe.
...here's my script, any help greatly appreciated. (:
function videoOne(event:MouseEvent):void
{
var flvPlay:FLVPlayback = videoDiary_mc;
var flvSource:String = "vid01.flv";
flvPlay.load(flvSource);
}
function videoTwo(event:MouseEvent):void
{
var flvPlay:FLVPlayback = videoDiary_mc;
var flvSource2:String = "vid02.flv";
flvPlay.load(flvSource2);
}
archiveVideo.videoBtn1.addEventListener(MouseEvent .CLICK, videoOne);
archiveVideo.videoBtn2.addEventListener(MouseEvent .CLICK, videoTwo);