Hi; Ive been using the drawing api to create circles, but sometimes they come out flattened, as if the bottom or right edges were sliced off. Has anyone seen that? By the way, oddly, if I animate the scale up and down, it draws correctly. Below is the code I used:
// this extends UIComponent public function CircleThing () { super(); mouseChildren = false; buttonMode = true; base = new Sprite(); // added djg 12/14 baseOver = new Sprite(); label = new TextField(); label.autoSize = TextFieldAutoSize.LEFT; label.multiline = true; label.wordWrap = true; label.width = 108; label.x = -52; addChild(base); addChild(baseOver); addChild(label); addEventListeners(); } // This function creates the blue circle public function drawCircle(_name:String=null):void { var myFilters:Array = [new DropShadowFilter (5,135,0x000000,0.15,5,5)]; base.graphics.clear(); base.graphics.beginFill(_color, .9); base.graphics.drawCircle(0, 0, defaultDiameter/2); base.graphics.endFill(); base.filters = myFilters; // added djg draw overCircle baseOver.graphics.clear(); baseOver.graphics.beginFill(_overColor, 1); baseOver.graphics.drawCircle(0, 0, defaultDiameter/2); baseOver.graphics.endFill(); baseOver.visible = false; }