Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash

draw dimension lines at runtime?

 
Jump to:  
 
sweetman
PostPosted: 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 Wink.

tony
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

koszulki ciągniki siodłowe O Łazickim a Barzym - Kochanowski Jan bransoletki dmoz world