Ultrashock Forums > Flash > ActionScript
AS2 - draw line 90 degree bounded

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS2 - draw line 90 degree bounded
Old 2009-05-07

Hi Guyes,

I want to draw straight line in 90 degree boundation through actionscript, but its making me stuck to create just a single straight line.


Hope any body can help me.


Regards,
saurabh
postbit arrow 2 comments | 131 views postbit arrow Reply: with Quote   
Registered User
susaura is offline
seperator
Posts: 7
2004-07-20
Age: 33
susaura lives in India
seperator

Ultrashock Member Comments:
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator Nutrox lives in United Kingdom 17 Creative Assets 2009-05-08 #2 Old  
In AS2 you can draw a single line like this:

Code:
mc.lineStyle( 0 );
mc.moveTo( 100, 100 );
mc.lineTo( 300, 100 );
That will draw a thin line from x100 y100 to x300 y100. mc is the MovieClip you want to draw the line in. If you want to clear your lines then use can use the clear function.

Code:
mc.clear()
Hope that helps.
Reply With Quote  
susaura susaura is offline susaura lives in India 2009-05-12 #3 Old  
Thanks for the reply I knw this code But, it should be on the mousemovement like drawing tool.
Hope it will clear the issue.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: