Jump to content

Addeventlistener(mouseevent.click, Not Working


mcse
 Share

Recommended Posts

hi all I m working on custum video player, here is the link I did exactly same steps except I added my videos http://www.photoshopcafe.com/tutorials/fla...videoPlayer.htmbtn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);function vid1(e:Event):void{vidPlayer.source = "video1.flv"};function vid2(e:Event):void{vidPlayer.source = "video2.flv"};function vid3(e:Event):void{vidPlayer.source = "video3.flv"};when I click on buttons no action :) whats wrong ???

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...