header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
amutha
Points:400
Posts:0

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..



1
Justin
Points: 600
Posts:0
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.

2
Jaguar
Points: 0
Posts:0
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.

3
shrikumar
Points: 220
Posts:0
12/20/2010 9:52:37 PM



Try this
http://polygeek.com/2508_flex_drawing-curves-with-path-data-in-fxg


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions