263 posts
  • Has been part of the Envato Community for over 6 years
  • Located in Antarctica
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
x360c says

How can I call ‘this.video01_playButton.video01_playButton_onClick’ from that listener?

this.video01_playButton.addEventListener(MouseEvent.MOUSE_DOWN, <Call 'this.video01_playButton.video01_playButton_onClick' here.>);
this.video01_playButton.video01_playButton_onClick = function (e:MouseEvent):void {
}

Thanks in advance. =)

1312 posts
  • Has referred 200+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+8 more
LGLab says

Hi 360,

Here is the basic structure for a mouse event in AS3 :

function onClick(evt:MouseEvent):void{ your function here } yourBtn.addEventListener(MouseEvent.CLICK, onClick);

Hope this helps….

by
by
by
by
by
by