and every element needs to know where the mouse cursor is and to know in wich 
direction to move

No they don't, a parent class should take care of all of that.
The elements themselves should not be aware of any of this and should be told (by the parent class) when and how to resize/animate/etc..

regards,
Muzak

----- Original Message ----- From: "Sander Schuurman" <sander.schuur...@oswaldandruby.com>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Thursday, February 12, 2009 5:24 PM
Subject: RE: [Flashcoders] Advanced Rollover Physics/Math...


Do you know kinda where to start... I'm trying to figure out how I would 
program the awareness of the elements.

There must be some kind of idle position, and every element needs to know where the mouse cursor is and to know in wich direction to move, and know how big it needs to be according to the mouseposition, and how much space there is inside his 'zone', etc. etc.

pfoe


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to