263 posts
  • Antarctica
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 100 and 1 000 dollars
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
  • Elite Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 5-6 years
  • Microlancer Beta Tester
  • United Kingdom
  • Attended a Community Meetup
  • Referred between 200 and 499 users
+3 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