| |||||||||||||||||||||||||||||||
|
halp me!!! i got a movie clip with inside four Key Frames... in each Key Frame i got a mask called 'mask' (a rectangle) and a masked MC called 'list'. than in the first layer of each keyframe (which i reserved it for actionScript only) i put 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; } }; it works. But it seems that the 'list' MC overscrolls as it slides up more than it should do. can someone help me please in resolving this ??? Regards... -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. _______________________________________________ Flashcoders 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
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com