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. =)
1299 posts
- Sold between 50 000 and 100 000 dollars
- Has been a member for 4-5 years
- Microlancer Beta Tester
- United Kingdom
- Attended a Community Meetup
- Author was Featured
- Item was Featured
- Referred between 200 and 499 users
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….
