Same Alley with TweenLite

This Math is still not right – there is more of the clip to be panned… still working it out.

Vodpod videos no longer available.

import com.greensock.TweenLite;
import com.greensock.easing.*;

addEventListener(Event.ENTER_FRAME, onLoop);

function onLoop(evt:Event):void {
TweenLite.to(alley, 2, { x:(alley.width – stage.stageWidth)/2 – mouseX, y:(alley.height – stage.stageHeight)/2 – mouseY, ease: Strong.easeOut });
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s