12/13/2010 3:11:08 AM
Title:
shapes in flex
hi need to draw various shape in single sprite with conditions..how can i draw X,*,- this shapes...please help me..
12/15/2010 10:38:48 AM
writing a algorithm for drawing these shapes would be difficult. You should create these shapes in flash and load the swf in your application. when you want to draw the "x" then load the swf containing "x" in the flex application and place it where mouse is clicked so it looks like you have drawn it . Also you can set the width height accourding to requirement.
12/15/2010 10:53:44 AM
if shapes are text objects the you can simply use text , else you can embed the swf graphics in your application and use them where ever required. on click get the start position of mouse and on mouse release get the end position of the mouse . Now calculate the size of object and place the swf graphic from the start position to the end position by setting the dimensions.
12/20/2010 9:52:37 PM
Try this
http://polygeek.com/2508_flex_drawing-curves-with-path-data-in-fxg