hi, Using percentages of the parent container height and width triggered by any box the cursor is over will let you adjust the various scales after it's built.
Say there are elements A,B,C,D,E F. in the first row and G,H,I,J,K,L in the second and M,N,O,P,Q,R, in the third row... When the cursor is over J it triggers a calculation that sets the xscale/width of J to say 50% of the row's width and divides the remaining balance of space amongst the rest of the boxes in each row, setting each in turn for all three rows - this will appear to be instantaneous to the end user. Then do the same with the height/yscale. This will result in resizing box spaces as the cursor moves. Next the secondary sizes can be set differently than boxes farther from the targeted box if desired. Most of this can be brute forced to make it work, then tweeked to be more dynamic once it does work. hth, Dave Matthews -----Original Message----- 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 _________________________________________________________________ Windows Liveā¢: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_022009_______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders