Hey list.
I have four key frames;
in each i have a mask called 'mask' and a masked MC called 'list'.
i attached to each key frame in the first layer (action) the following code:

maskY = mask._y;
maskY2 = maskY+mask._height
maskX = mask._x;
maskX2 = maskX + mask._width;
var ratio = Math.round(list._height / mask._height);

onEnterFrame = function () {
if (_ymouse<maskY2 && _ymouse>maskY) {
 list._y = (mask._ymouse-(mask._ymouse*2))*ratio+maskY;
}
};


--
Omar Fouad - Digital Emotions...
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to