Help..
I have all my code in timeline, and I would like to put it in external classes, It would be easy if I had it all just in main timeline, but when I have code in children of main mc, and deeper, all communicating between themselves on child to parent basis, how to export those codes to separated classes, and keep their comunication? Any examples please?
This is a mock up of my file, since its a mess, lets not waste Your time navigating through all code..Never done anything through Document or external classes, so Im totaly lost how to move out timeline codes to external ones..Im running CS 5.5, so the lowest ver of fla is in cs4 i guess..
The general principles of using external .as files are simple. To associate a .as file with your main timeline, set the Document Class property of your fla. Your document class .as must extend Sprite or MovieClip. Usually MovieClip, if you have any frames or timeline coding at all (even comments).
To associate a symbol in your library with a class, set it to Export for Actionscript, and set the class name to match the desired .as class.
You'll want to learn how packaging and imports work, too.
Ok, got that. Now I have problem of retaining the actual layer order from IDE..
Main Mc has seven layers of which some are graphics(no instance names), and in IDE layer order they were above of animated stuff, covering it when they should. How I do that thru external class? Graphic (png) layer to stay over mc?