My basic requirement is to draw a circle inside a BorderContainer
with the layout set to BasicLayout
I run this method in the CREATION_COMPLETE
event of the BorderContainer object.
this.graphics.beginFill(0xff0000);
this.graphics.lineStyle(1, 0x00ff00);
this.graphics.drawCircle(0, 0, 50);
this.graphics.endFill();
Sorry to be blunt, but why don't I see anything? I know I must be missing something VERY basic here. Can I just draw like this OR should I draw in some other event?
P.S: I know that I can create a Ellipse object and easily add it to the border container but I would like to know how I can do this using the graphics object.