City Skyline Test | Depth Study

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.
(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

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. onClipEvent (enterFrame) {
  2. this._x = _root._xmouse/7 - 50;
  3. }

Update: Here’s a similr effect achieved by just negating the relation between the mouse and the building movie clips.

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

  1. onClipEvent (enterFrame) {
  2. this._x = -_root._xmouse/7 - 50;
  3. }

Download Source Fla File

  • del.icio.us
  • Digg
  • Facebook
  • Furl
  • Google
  • LinkedIn
  • Ma.gnolia
  • Mixx
  • MySpace
  • Propeller
  • Reddit
  • StumbleUpon
  • Sphinn
  • Spurl
  • Technorati
  • TwitThis
  • Live
  • YahooMyWeb

Related posts

flashden banner

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>