Jump to content
Sign in to follow this  

Addeventlistener(mouseevent.click, Not Working

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 ???

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...