This Example and tag are pretty self-explanatory and can’t be explained much without looking at the code. All it does is you give it coordinates and it plots them. Example <Path data=”M 55 0 L 67 36 L 109 36 L 73 54 L 83 96 L 55 72 L 27 96 L 37 54 L 1 36 L 43 36 Z”> This draws a Star. M stands for Move To, L stands for Line to and Z stands for stop/Close line you can read more about it here.This is alot easier than having to use the lineTo and moveTo commands. It’s pretty concise. Here is the Code and Sample. As Usual Flash Player 10 to view it. First Data path draws a Star and Second Data path draws an arrow, more examples on the way. Here is Where you can Ask Questions if you have any.

One Response for "Using the Path Command in Flex 4 to Draw Shapes like Stars and Arrows"
[...] Link to the original site [...]
Leave a reply