开发者

AS3 change lineStyle of existing line

开发者 https://www.devze.com 2022-12-25 08:36 出处:网络
im drawing a line from 0,0 to 100,100 im using this to modify the linestyle: draw_line.graphics.line开发者_开发知识库Style(1, 0xFF0000);

im drawing a line from 0,0 to 100,100

im using this to modify the linestyle:

draw_line.graphics.line开发者_开发知识库Style(1, 0xFF0000);

That line is now of 1 thickness.

Is there anyway i can change the thickness of the line to say 10, but without redrawing the line?


No, it is not possible with the way the flash player works, you must redraw the line. Or use some kind of library that automatically redraws it for you (for example a Line object in the Flex 4 Framework)


try this:

draw_line.scaleX = 10;

Not exactly the same, but could possibly work under certain circumstances.

0

精彩评论

暂无评论...
验证码 换一张
取 消