Link to home
Start Free TrialLog in
Avatar of shareea
shareea

asked on

Resize/Scale Transition with Actionscript

Would like to know easiest way to get this type page loading transition: http://www.kurtnoble.com/

Was following previous EE thread: https://www.experts-exchange.com/questions/21420139/Need-help-with-transitions-with-AS.html?anchorAnswerId=13976643#a13976643

 Curious what negatyve's solution was but it's no longer posted.
ASKER CERTIFIED SOLUTION
Avatar of seanhess
seanhess

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shareea
shareea

ASKER

Would like sample code/fla demonstrating.
Avatar of shareea

ASKER

seanhess

okay - dug around  - thanks for pointing me in the right direction
Avatar of shareea

ASKER

In case anyone is following this thread - here's what I came up with for button named home_mc - on first frame of main timeline. If there's an easier way, all comments are welcomed:

//Button Tweens
import mx.transitions.*;
import mx.transitions.easing.*;

function Over(){
      var tw1:Tween = new Tween(this, "_xscale", Bounce.easeOut,       this._xscale, 125, 0.7, true);
      var tw2:Tween = new Tween(this, "_yscale", Bounce.easeOut,       this._yscale, 125, 0.7, true);
}

function Out(){
      var tw1:Tween = new Tween(this, "_xscale", Bounce.easeOut,       this._xscale, 100, 0.7, true);
      var tw2:Tween = new Tween(this, "_yscale", Bounce.easeOut,       this._yscale, 100, 0.7, true);
}

home_mc.onRollOver = Over;
home_mc.onRollOut = Out;