View Full Version : the circle will stick to the line
karena
July 17th, 2004, 09:30 PM
i hav a line and a circle.
i want wherever i drag the line,the circle which is on the line will follow it.
How can i do that?
please drop me an example or actionscript...
thankx
Krayzie
July 18th, 2004, 09:24 PM
would something like:
_root.circle._x = _root.line._x+10;
_root.circle._y = _root.line._y+10;
work for you?
karena
July 18th, 2004, 11:58 PM
i not able 2 achieve that...
here is my attachment..please help me
Krayzie
July 19th, 2004, 01:39 AM
Something like this?
karena
July 19th, 2004, 01:56 AM
yes!!!!thanku...
but if i want move my line upwards...the circle will slowly and slighty move to the right?
Krayzie
July 19th, 2004, 06:17 PM
you just need to change the x and y coordinates
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.