This content has been marked as final. Show 3 replies
you can put each of your functions (they are functions, not event handlers) inside an initialize function. and call an initialize function when the appropriate objects exist.
Thank you for the correction. I also found a small mention in Colin Moock's AS Flash MX book about the scope and the existance of the object.
So might I use a function call to the Main Timeline, from the frame where the nested mc exists.
The code can be centralized and use this, event handler method. It works, but is there a better way?
The corrected code:
well, there is a better way. and that's to use object oriented programming.
you would create a class the defines all the methods and properties of your object and then when an member of your class is instantiated (created), your class definitions would be retrieved.