quick $5, perspective scrolling?
quick $5, perspective scrolling?
Out of context: Reply #8
- Started
- Last post
- 16 Responses
- joyride0
they've got the scrolling effect tweened in the the timeline over 400 frames.
They've got a function to detect where the mouse is and send it to that keyframe:
var _l1 = this;
_l1.onMouseMove = function ()
{
var _l1 = this;
var _l2 = _l1._xmouse;
if (_l1.Hit.hitTest(_l2 + _l1._x, _ymouse + _l1._y, true))
{
_l1.f = Math.round(400 * (_l2 / 700));
} // end if
};
_l1.onEnterFrame = function ()
{
var _l2 = this;
var _l1 = _l2._currentframe;
_l1 = _l1 + (_l2.f - _l1) / 10;
_l1 = Math.max(1, Math.round(_l1));
_l2.gotoAndStop(_l1);
_l2._parent.Frame.ContentLevel.S...
};gL ;)