Without digging to deep on it.  I notice you are going outside the pixel address space of Flash which is about 8192 pixels.  If you use 4000 does it work?

 

-Alex

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dmandrio
Sent: Wednesday, October 25, 2006 1:40 AM
To: [email protected]
Subject: [flexcomponents] Is it a "graphics" bug ?

 

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>

__._,_.___


SPONSORED LINKS
Software development tool Application development software Development software
Development outsourcing software Embedded software development

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to