Originally Posted by
blanius
Lets talk about classes and how to add them.
When you create a class or get one from the net you will usually have one or more .as files in a folder. The easiest way to keep track and make it simple to include in you Koolmoves project is to place this folder in the classes folder which is found in koolmoves/bin/as3/classes just save/move your folder with as files to this folder.
for example lets say you want to use flash-dev's reflection class. It comes in a zip file that has a root folder of flashdev with a subfolder of bitmap. extract this into the classes folder (personally I put mine in the com folder but that's me)
Now to use this class in your KM project you must know where it is.
so the first line in you project should look like this
import flashdev.bitmap.*;
Since KM already knows where the classes folder is you do not need to include that part of the path, notice though that for each '/' in the path we now use a '.' the '*' tells the compiler to load ALL .as files in that folder.
You can also put your classes elsewhere if you wish but you should use the pulldown menu in KM to set the class path there so that you do not have to type the entire path everytime.
NOTE:If you encounter a class file that does seem to work in KM please let support know about it.