Connector class

update: Connector is finished and here to download:
To see a working example:
http://www.sammyjoeosborne.com/FlashTests/connectorExample.swf

Hey everyone,
I’m wanting to write a Connector class for my first jump into AS3. A Connector object would take two display objects as parameters, and it would draw a connecting line between them.
Whenever either object moved, the Connector would keep track of that and update the connecting line appropriatly.

var connector:Connector = new Connector(sprite1, sprite2);

Is this a possible implemenation? Will Connector be able to register itself as a listener for when sprite1 and sprite2 move or does that have to be done outside of the Connector class?

If I sound idiotic I apologize…I’m trying to get my mind wrapped around events so I wasn’t sure if this was a possible implementation or not.