Okay, so I have this class that basically acts as a manager of an enemy. For some reason, whenever I try to make a bullet instance within the class and use addChild(), I get Error #1009. Here's the code:
var bullet:EnemyBullet = new EnemyBullet();
stage.addChild(bullet); //Error comes up here
bullet.x = enemy.x;
bullet.y = enemy.y;
bManager.bulletVector.push(bullet);
I've been using this method for two other classes without issue, so I'm stuck. All help is appreciated.