I gave you the wrong code
Quote:
Originally Posted by
fruitbeard
Hi,
It does work, you probably can't see the circle, changes colours to test
Hi Fruitbeard, I accidentally posted the wrong code. Here's the actual code in error. It's a class outside of the main project class attempting to draw a circle on the stage. No circle is drawn and no error messages are generated.
Code:
package {
import flash.display.Shape;
public class makeCirc extends Shape {
var circle3:Shape = new Shape();
public function makeCirc() {
// constructor code
circle3.graphics.beginFill(0xff0000, 1);
circle3.graphics.drawCircle(200,200,50);
circle3.graphics.endFill();
stage.addChild(circle3);
}
}
}