How to use evt.currentTarget properly
Hi there,
I want to use evt.currentTarget but I can't quite get my head around it.
I have 5 movie clips. Each with a 'clicked' label inside of them which show the users once the user have clicked.
I could easily create 5 movie clips with 5 different instance names - but I want to do it a little better using evt.currentTarget.
Currently all 5 movie clips are called 'noBtn'.
Here's my code - Currently this code only works for the last 'noBtn' (it only works for one of them) - but it should work for all 5 (or so I thought).
this.noBtn.addEventListener('click', fl_MouseClickHandlerNo.bind(this));
function fl_mouseClickHandlerNo(evt){
var item = evt.currentTarget;
item.gotoAndStop('clicked');
}
If anyone could give me a little explanation as to why it doesn't work that would be great.
