| | | sweetman |  |
| Posted: Tue Jul 22, 2008 8:17 pm Post subject: draw dimension lines at runtime? |  |
Hi all, I crated a little application where the user can drag some object around the movie.
Is there a way to allow the user to draw straight lines along with a sort of number stating the lenght of the line while dragging and that remain there once you draw your line?
I'm searching a way to allow the user to add dimension lines to the objects. So, the user draw a straight line and the lenght of the line (scale 1:20) is displayed along the line.
Example: I drag a square on the stage. Lets assume that its side is 5cm long. I take the LINE tool and draw a line near the top side of the square the same lenght of the top side of the square (by eyes, of course). I should see a number near the line saying 100cm (+/-) (remember the scale 1:20).
But I'n new to actionscript and I don't know where to start. Is there a tutorial that teach ho to draw lines at runtime?
Any suggestion will be very appreciated.
Ciao .
tony |
|