This is just a small note for all of those who is still developing using AS2.
The complete DON’T for AS2 classes is:
Never ever do create objects of your members arrays in declaration. Create them in the constructor instead.
This is just a small note for all of those who is still developing using AS2.
The complete DON’T for AS2 classes is:
Never ever do create objects of your members arrays in declaration. Create them in the constructor instead.
Are you leaning to ActionScript programming?
Do you need to write a bit more than just gotoAndPlay() and gotoAndStop()?
Or finally would like to try to make some animations via ActionScript and not in timeline?
Then please consider the following advices!
There are tips for ActionScript, though they should be interesting to AS2 and AS3 guys too.
1. Separate your code.
2. Order your objects in the library.
3. Have a naming standard.
4. Do reference the objects appropriately.
5. Always have the only one mainframe.