Controlling multiple video clips?
Hi, I am new with actionscript 3 and am having troubles getting my 3 videos to play when buttons are clicked.
I imported my videos to flash to convert them to .flv files.
Then I dragged the "FLVPlayback" to the stage on the first frame and included the following code in the actions window on frame 1:
dvd_btn1.addEventListener(MouseEvent.CLICK, vid1);
dvd_btn2.addEventListener(MouseEvent.CLICK, vid2);
dvd_btn3.addEventListener(MouseEvent.CLICK, vid3);
function vid1(e:Event):void{
vidPlayer.source = "WeddingSD1.flv"
};
function vid2(e:Event):void{
vidPlayer.source = "WeddingSD2.flv"
};
function vid3(e:Event):void{
vidPlayer.source = "WeddingSD3.flv"
};
I would really appreciate any insight!! Thank you!
|