Here are some tips on how to write good code Object Oriented (OO) in Adobe Flash, especially for those still using version MX waiting to move to CS3.
Organize classes folders
First of all, the organization of the classes makes the job of code maintenance extremely simple. You can also create a real library you can reuse in other projects. Flash uses a nomenclature related to the filesystem, then organize them into folders will also be reflected on the import of classes. For example, if we create the sequence of folders "mylibrary / graphics / plot" and insert our own ActionScript class "PlotClass.as" when we are going to import the class we should use:
1 | grafica . plot . PlotClass ; import mylibrary. graphics. plot. PlotClass; |
If the library (folder) "mylibrary" is not in your movie folder or project, use the Flash publish settings to select the path:







Latest Comments
Subject : very helpful indeed! I tried it and it is just what I needed. Now I wonder how do I get ...
vik : With strategic help!
Pepper : Hi there, I do not know if you're one of the creators of the WP plugin Bannerize. I have spotted a ...
Rosanna : Can anyone tell me how do I delete the Snap Shots window that opens automatically when I ...
blessed Maresca : I can not download any skypemote me spiegaaa