Tweenlite/Max is easily my favorite AS3/AS2 Tween Engine. Here’s a quick code snippet that most people do not know about!! If you enjoy using timers in AS3 check out the “delayedCall()” function in TweenMax/Lite. The key argument here is scalability, after a while using 1 line of codeĀ (delayedCall) becomes a lot more convenient then the more involved timer class.
Std. Timer listener dispatch + function
package {
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.display.Sprite;
public class TimerExample extends Sprite {
public function TimerExample() {
var myTimer:Timer = new Timer(1000, 2);
myTimer.addEventListener("timer", timerHandler);
myTimer.start();
}
public function timerHandler(event:TimerEvent):void {
trace("timerHandler: " + event);
}
}
}
VS.
Std. Tweenlite/Max delayedCall (v.11)
package {
import com.greensock.*;
import flash.display.Sprite;
public class DelayedCallExample extends Sprite {
public function DelayedCallExample() {
TweenLite.delayedCall(0.5, myDelayedCall, [1,true]);
}
public function myDelayedCall(argument1:Number,Boolean):void {
trace("that was easy!");
}
}
}
myD
Tags: as3, call, delayed, delayedcall, flash, green, how, lite, max, params, sock, timer, to, tween, tweenlite, tweenmax, vs

PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Pillspot.org. Vitamins@buy.online” rel=”nofollow”>.…
Categories: Womens Health.Anti-allergic/Asthma.Antibiotics.Blood Pressure/Heart.Antidepressants.Stop SmokingSkin Care.Antidiabetic.Stomach.Eye Care.Mens Health.Antiviral.Mental HealthPain Relief.Weight Loss.Vitamins/Herbal Supplements.Anxiety/Slee…
Buy:Lipothin.Nymphomax.Female Pink Viagra.Amoxicillin.Advair.Seroquel.Lipitor.Benicar.Buspar.Zocor.Aricept.Female Cialis.SleepWell.Ventolin.Lasix.Acomplia.Zetia.Cozaar.Wellbutrin SR.Prozac….