Hello people!
The question says it, how can I self refer to an instance of a class within the class definition file?
Here is an example
public function fireBullet(target:MovieClip) {
Bullet_mc = target.attachMovie("Bullet", "Bullet1", 1);
}
}
Now everytime I want to call the function I have to put this as my target, (fireBullet(this))I cannot just put it in the code as it gives me an error. Could someone please help.