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
kOoLiNuS : @ Giovambattista Fazioli: thank you! more than willing!
Giovambattista Fazioli : @ kOoLiNuS: Quiet, you can probably anticipate that WPX Cleanfix will be free, and ...
kOoLiNuS : @ kOoLiNuS: a missing
and a 
kOoLiNuS : @ Giovambattista Fazioli: I subscribed to, but when I was my amateur use of the platform ...
Giovambattista Fazioli : @ kOoLiNuS: Yes, this is a known issue. Occurs when the tables in question are ...