download / 3.3 mb zip
version : 1.1.9
updated : February 18, 2011
open all | close all
upcoming HYPE events
No events.
let's keep in touch.
Keep us informed what you're working on using HYPE by connecting with us, either via e-mail or through twitter.

hype@hypeframework.org
twitter.com/hypeframework
Branden Hall

automatastudios.com
twitter.com/waxpraxis
Joshua Davis

joshuadavis.com
twitter.com/joshuadavis
flickr.com/photos/joshuadavis

Alternative content

Get Adobe Flash player

01_background / mouseFollow / AS2

back in AS2, it took 5 lines of code to initiate an object, using ease, to follow your mouse on screen.

var myEase = .1;

myCircle.onEnterFrame = function () {
	this._x += (_xmouse – this._x) * myEase;
	this._y += (_ymouse – this._y) * myEase;
}
Leave a Comment
alex said, on November 6th, 2009 at 4:48 pm

ahh..these were the days!

Eric said, on February 20th, 2010 at 10:58 pm

YES!!!! Thanks for bringing me back.