Greetings kirupians:
I´ve got this file:
http://www.disenopop.f2o.org/test2.html
I’m trying to make something like this:
http://www.croma.biz/main.htm
Where content sticks to the center of the window with ease.
The code I use for timeline:
//
loaderMC.loadMovie("[http://www.disenopop.f2o.org/test3.swf](http://www.disenopop.f2o.org/test3.swf)");
//
function positionClips() {
// trace("resize");
loaderMC._x = Stage.width*.5;
loaderMC._y = Stage.height*.5;
}
Stage.align = "TL";
Stage.scaleMode = "noScale";
stageListener = {};
stageListener.onResize = positionClips;
Stage.addListener(stageListener);
positionClips();
The code used in the loaderMC:
onClipEvent(load){
nx = _x;
ny = _y;
ease = 5;
}
onClipEvent(enterFrame){
_x += (nx - _x)/ease;
_y += (ny - _y)/ease;
}
As u see, my file isnt working… :q: Need to know if there’s somthing wrong with it. I’ll apreciate your help a lot!!
Heres the fla:
http://www.disenopop.f2o.org/test2.fla
Thnks in advance!!!