Hello List,
I'm having an issue getting my MC_Tween2 scripts to behave
appropriately. AS2.
I am trying to set a function that triggers after the tween is done.
I am sure this is easier than I am figuring, but I'm stuck.
I can get the tweens to work, but they trigger the function while
tweeneing.
[code eg]
var beginAlpha = 0;
var endAlpha = 100;
var quoteShowY:Number = 219.9;
var quoteHideY:Number = -219.9;
this.quoteRequest_mc._y = quoteHideY;
function formVisible() {
if (!this.quoteRequest_mc.isTweening()) {//this way doesn't work at
all ???????
this.quoteRequest_mc.gotoAndPlay(2);
}
}
function formHidden() { //this way plays while hideForm() is Tweening
this.quoteRequest_mc.gotoAndStop(1);
}
function showForm() {
this.quoteRequest_mc.alphaTo(endAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteShowY,4,"easeoutbounce",.
5,formVisible(),20,4.5);
}
function hideForm() {
this.quoteRequest_mc.alphaTo(beginAlpha,3.5,"easeoutquint",.5);
this.quoteRequest_mc.ySlideTo(quoteHideY,4,"easeoutbounce",.
5,formHidden(),20,4.5);
}
showForm();
What on earth am I doing wrong??
It all looks like it should work!
Also, on the tweens themselves, they dont play very smooth.
Am I doing somthing wrong with the timing or the ease period or
amount of ease? What?
I want them to play somewhat quickly, but smooth.
Thank you for any help.
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders