Strange.... take a look

So I’m trying my hands on some full browser flash and after reading a couple of tuts I wrote this


#include "mc_tween2.as"


Stage.scaleMode = "noScale";
stageListener = new Object();
stageListener.onResize = function(){
    var stageXcenter = Stage.width * .5;
    var stageYcenter = Stage.height * .5;
    middle.slideTo(stageXcenter,stageYcenter,1,"easeOutCubic");
    trace(middle._x);
    trace(stageXcenter)
    }

Stage.addListener(stageListener);



The trace’s are because it didn’t work like I thought it would. Etc the middle movieclip didn’t center itself but rather positioned itself seemingly how it pleased so I traced its x position and the var stageXcenter position and like suspected it shows different values. I find it very strange but maybe someone has an explanation and maybe if I’m lucky a solution as well!

note: you need mc_tween2.as