Transition

Hi, I want to load a new movie using AS, after an transition animation has played once a button has been clicked … >
here is my code: (ps using lacos motion tween btw)

#include “lmc_tween.as”
var t:Number = transition_mc._xscale;
var ys:Number = 400;

function nextpage(){
_root.onEnterFrame = function(){
if (t>ys){
_root.loadMovie(“success.swf”);
}
}
}

button_mc.onPress = function(){

transition_mc.tween(["_xscale","_yscale","_alpha"],[500,500,100],1);
nextpage();

trace(t);

}

However … It doesnt work :frowning: the onEnterFrame isnt fireing, although t IS greater than ys by that point… What has gone wrong? Any Suggestions!?