Skip to main content
Inspiring
June 14, 2011
Question

How to draw diamond shape?

  • June 14, 2011
  • 2 replies
  • 2628 views

I look up AS3 api,I know AS3 can draw circle,Ellipse,Rect. Is there an api to draw diamond shape? How to draw it. I want to make two diamond shapes cross,and make one diamond shapes from long to short. Like star effect.How to realize it?

Thanks

This topic has been closed for replies.

2 replies

June 14, 2011

There's not built in method - use the moveTo and lineTo methods of the graphics class.

relaxatraja
Inspiring
June 14, 2011

http://www.flashfridge.com/tutorial.asp?ID=156

http://www.actionscript.org/resources/articles/792/1/Drawing-Shapes-with-AS3/Page1.html