ok, well im partially there, now i get a reaction to mousemove, but it still looks horribly wrong. first off here's the new source ...
for (i = nFirstPage; i <= nLastPage; i++)
{
szName = "mcIcon" + i;
this.attachMovie("img1", szName, i);
mc = eval(szName);
mc._x = i * 30;
mc.nCurrPage.text = i;
mc.onMouseMove = function ()
{
//trace("["+mc+"] x:"+_xmouse+", y:"+_ymouse);
this._xscale =
Math.max(50, 100 - Math.sqrt(_xmouse * _xmouse));
this._yscale =
Math.max(50, 100 - Math.sqrt(_xmouse * _xmouse));
updateAfterEvent();
}
}
- for (i = nFirstPage; i <= nLastPage; i++)
- {
- szName = "mcIcon" + i;
- this.attachMovie("img1", szName, i);
- mc = eval(szName);
- mc._x = i * 30;
- mc.nCurrPage.text = i;
-
- mc.onMouseMove = function ()
- {
- //trace("["+mc+"] x:"+_xmouse+", y:"+_ymouse);
- this._xscale =
- Math.max(50, 100 - Math.sqrt(_xmouse * _xmouse));
- this._yscale =
- Math.max(50, 100 - Math.sqrt(_xmouse * _xmouse));
-
- updateAfterEvent();
- }
- }
not much to that. what is supposed to happen, is a reaction like a linux menu, where the closer a mouse get to a button the larger it gets. currently, all the buttons are enlarging at the same time, based on the x value of 1 button.
any help appreciated,
thx,
AlphaOne