Lets say I have two objects, and I want to use action script to draw a line connecting them, which will update automatically as they are moved/ dragged.
Can anyone show me how to do that, and also how to control line’s parameters like colour, weight etc?
Any answer would be highly appreciated!
Lets say I have two objects, and I want to use action script to
Share
Let’s say your two movieclips
mc1andmc2share the same parent:mcParenton an ENTER_FRAME event you would do:You can change the aspect of the stroke by changing the parameters of lineStyle.
Cheers!