Gives feel of perspective and depth by reacting to mouse movements. The effect is parallax, read more…
The city images are very choppy and ugly, I know, it’s just a test.
Sample Actionscript. This in on one of the buildings which are separate movie clips. Adjust the equation for different effect.
The basic formula is as follows: this._x = _root._xmouse / (speed) + transform
1 2 3 | onClipEvent (enterFrame) { this._x = _root._xmouse/7 - 50; } |
Update: Here’s a similar effect achieved by just negating the relation between the mouse and the building movie clips.
1 2 3 | onClipEvent (enterFrame) { this._x = -_root._xmouse/7 - 50; } |
Download Source Fla File












Jenny