Hi, I'm trying to 'addchild' (a circle shape) to the stage from a class that's not the main project class. Maybe this is a bad idea... I'm not sure. Anyway, my code isn't working, yet there are no errors. Here's it is below. Any suggestions would be appreciated.
Code:
package {
import flash.display.MovieClip;
import flash.display.Shape;
public class main extends MovieClip {
var circle3:Shape = new Shape();
public function main() {
// constructor code
circle3.graphics.beginFill(0xefefef, 1);
circle3.graphics.drawCircle(100,100,50);
circle3.graphics.endFill();
addChild(circle3);
}
}
}