I’m having trouble with fading an object. I have the following code
which takes a county and shrinks it back and I’d like it’s alpha to
be at 100% until the last minute, then go to 0 when it lands. Right
now it does a slow fade.
Any ideas?
function makeCountySmall():void
{
this.alpha = 1;
var countyTweenZoomX:Tween = new Tween(this, "scaleX", Regular.easeInOut, this.scaleX , 3.0177, speed, false);
countyTweenZoomX = new Tween(this, "scaleY", Regular.easeInOut, this.scaleY , 3.0177, speed, false);
countyTweenZoomX = new Tween(this, "x", Regular.easeInOut, finalXPosition , startingXPosition, speed, false);
countyTweenZoomX = new Tween(this, "y", Regular.easeInOut, finalYPosition , startingYPosition, speed, false);
var couuntyTweenAlpha = new Tween(this, "alpha", Strong.easeOut, 1, 0, 10, false);
countyBig = false;
aCountyIsBig = false;
}