[COLOR=#000000][FONT=Times New Roman][LEFT][COLOR=#333333][FONT=Arial]Hi,
I have a dynamic tween within a function, which basically makes a movie clip visible, after it had been made invisible by another tween call.
Code to make clip invisible:
function imgopen(){
var fholderDark:Tween = new Tween(this.mc_load1360.folioholdermc, “_alpha”, Regular.easeOut, 100, 0, 1, true);
fholderDark.onMotionFinished = function(){ trace(“folioholdermc vanished”);}
var darkenDark:Tween = new Tween(this.mc_load1360.darken, “_alpha”, Regular.easeOut, 0, 100, 1, true);
darkenDark.onMotionFinished = function(){ trace(“dark 100”);}
}
Code to make it visible
function imgOut(){
var fholderBack:Tween = new Tween(this.mc_load1360.folioholdermc,"_alpha", Regular.easeOut, 0, 100, 1, true);
fholderBack.onMotionFinished = function(){ trace("fholder back finished");}
var darkenBack:Tween = new Tween(this.mc_load1360.darken,"_alpha", Regular.easeOut, 100, 0, 1, true);
darkenBack.onMotionFinished = function(){ trace("darken back finished");}
}
imgOut is called when an event is triggered. I can see the trace function messages from within the function, but I don’t see folioholdermc after imgopen has been called once.
I put in a trace for folioholdermc._alpa, and it shows 0, AFTER the fholderBack tween has been executed…
How is that possible?? If the tween is executing then should the movieclip not be visible???
[/FONT][/COLOR][/LEFT][/FONT][/COLOR]