You may refactor your code in the drawStar() function into a Sprite
subclass, like this:
public class Star extends Sprite {
public function Star() {
graphics.beginFill(0xFFFFFF, 1.0);
graphics.drawCircle(0,0,0.5);
graphics.endFill();
}
}
And you can pass a reference of this Star class to the
DisplayObjectClass constructor, like this:
emitter.addInitializer(new DisplayObjectClass(Star));
Don't instantiate the display object class yourself. The
DisplayObjectClass initializer instantiates your class for you.