PDA

View Full Version : Retaining lines drawn between items when they move about



Rigwall
January 24th, 2008, 04:02 AM
Hi All
This is my first post here.:)

1. A line is drawn between 2 existing items on the stage with the lineTo method.
2. Now the 2 items are moved about due to some event with a bouncy effect
3. How to make sure that the line between them stays intact even during the bounce effect?

The item in question are links and more line are drawn as the site proceeds and all the lines between the nodes(links or items) are retained and act according to the movement and the bouncy effect of the nodes.

A site that does this effectively is
http://www.johnsonbanks.co.uk/

I ve tried this in AS 2 with the line being drawn onEnterFrame with an updateAfterEvent. Though the line is retained(its drawn every time:run:) but it is not smooth with the bounce effect (lmc tween).

Many thanks in advance.

Felixz
January 24th, 2008, 08:59 AM
use Event.RENDER