PDA

View Full Version : create instance


Sykner
08-21-2010, 11:06 PM
All i want to do is create an object and make it appear at a given position.
I had tried a code called attachobject() and after many trial and error I got it to work. A while later i came back to my project and tried creating an object but failed. I cannot get it to work again. please tell me the code im looking for and how to use it.

skiper
08-23-2010, 04:51 AM
At first, you have to create Package (*.as file), in package you put code of your class, and then going to flash file (*.fla) and creating instance (object) of the class, since you'll do it, you'll be able to call methods put in the class.