When I draw lines with starting and ending points out of the view, the thickness is unstable.
You can see this problem with the following code: when you click many times on the button, the thickness of the line vary whereas graphics.lineStyle call doesn't change. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ private var val:uint = 100 private function draw():void { base.graphics.clear() // Draw background base.graphics.beginFill(0xFFFFFF) base.graphics.drawRect(0,0,base.width, base.height) // Draw a line with different starting and ending point base.graphics.lineStyle(2,0xFF0000) base.graphics.moveTo(base.width / 2 - val, base.height / 2) base.graphics.lineTo(base.width / 2 + val, base.height / 2) val += 10000 } ]]> </mx:Script> <mx:Canvas id="base" width="100%" height="100%" creationComplete="draw()"> <mx:Button click="draw()" label="Click Me"/> </mx:Canvas> </mx:Application> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcomponents/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcomponents/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
