It looks like you're new here. If you want to get involved, click one of these buttons!
pScreen = Core.class(Sprite) |
1) function pScreen:backButtonClicked(data,event) 2) self.backButton:addEventListener(Event.MOUSE_UP, self.backButtonClicked,{self.backButton}) |
1) function backButtonClicked(data,event) 2) self.backButton:addEventListener(Event.MOUSE_UP, backButtonClicked,{self.backButton}) |
Comments
Using your solution and event:getTarget() works. But how do you pass external data in the addEventListener above?
And in this case, what ever you pass to the adEventListener as a third argument will be received in this function as first, for example: