should an eventListener clash across different display objects in different scenes when names are the same????

I’ve just spent time finding an issue I had. It was due to use of the same (a) display object name and (b) eventListenerMethod name [not which of these was most significant] in two (2) separate scenes (I’m using Storyboard).

Is this correct? (i.e. not a bug)

I would have thought two separate objects in two separate scenes should be able to use the same displayObject and eventListener function names?

[import]uid: 140210 topic_id: 26171 reply_id: 326171[/import]

Assuming you’re using local variables to restrict the scope of these objects to their respective scenes, there should be no problem, we do it all the time. Sounds like you might be using global variables for your objects, functions, or both.

Also make sure you’re adding your event listeners in enterScene and removing them in exitScene. [import]uid: 44647 topic_id: 26171 reply_id: 106029[/import]

oh…I’ve made sure my display objects are local, however I’m noting now my listener functions don’t have “local” in front of them…this must be the probably I assume then? [import]uid: 140210 topic_id: 26171 reply_id: 106032[/import]

One way to find out. [import]uid: 44647 topic_id: 26171 reply_id: 106036[/import]