I’ve just started working with storyboard and never before used director class.
I read all the documentation and blog posts about it and started developing with it.
But i have a huge question and i can’t find the answer.
For what i understood, event listeners must go in the enterScene function of my Scene.
I believe there are some rules i’m missing about it.
I declared a local function inside createScene.
If i want to call it inside enterScene (as i believe it must be) using Runtime:addEventListener(“enterFrame”, myFunction), it doesn’t work.
So i tried turning the function into a global one.
From there on, it works fine.
Problem is, i’m having a bad feeling about this, don’t feel like having to declare global functions.
What’s more, checking the storyboard sample code my idea was confirmed, as functions are declared locally.
So as you can see, i’m missing something BIG about this.
Please, can anybody help me?
Thanks! [import]uid: 105206 topic_id: 20509 reply_id: 320509[/import]