movieclip scale based on mouse position
Hi guys, I'm working an OSX dock style menu. One where the item your touching grows to a certain size and the adjoining items blend their sizes. It's a verticle version btw. I'd like only the 2 nearest buttons above and below to blend
It's looking good but I'm having trouble figuring out the math that will force the buttons scale to be inbetween %100 and %200.
I want it so that when there is zero distance between the mouse and the button (rolled over the button), the button grows to %200 and as the mouse moves away it shrinks back to %100.
I'll post the code I'm using atm if you want but I don't think it's the best way.