PDA

Click to See Complete Forum and Search --> : dynamic resize menu:http://music.newyork-tokyo.com/



flychee_flash
08-14-2002, 02:37 PM
Dear friends,

can someone please help me decipher the cute little red menu on http://music.newyork-tokyo.com/?

I downloaded "menuliquid" by five100.com, but I can't figure out how to extend the length of the menu without messing up the spacing.
Also the script they have is not annotated and seems kinda crytic...or maybe I'm just slow..=)

The files are here: http://www.geocities.com/flychee/flashhelp/

This is how I think it works: a single rectangle that is duplicated using duplicate movie. On rollover, the script tells the target instance to scale big and scale the others small.

I'm using Flash 5

Thanks everyone!!

ericlin
08-15-2002, 04:22 AM
The math would be simpler if the registration point of the button movie is at the left top rather than at the center.

Basically, you got 3 values for end height; One is normal height;One is expand_height, the last one is shrink_height;

Then use loop to tween each movieClip to proper end height by deceleration :
clip._height=(end_height-clip._height)/4;