# Full window flash with easing movement

**URL:** https://forum.kirupa.com/t/full-window-flash-with-easing-movement/150854
**Category:** flash
**Created:** [June 10, 2005, 11:51pm UTC](https://forum.kirupa.com/t/full-window-flash-with-easing-movement/150854 "2005-06-10T23:51:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![disenopop](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@disenopop](https://forum.kirupa.com/u/disenopop)
#### Post date: [June 10, 2005, 11:51pm UTC](https://forum.kirupa.com/t/full-window-flash-with-easing-movement/150854/1 "2005-06-10T23:51:12Z")

</div>

Greetings kirupians:

I´ve got this file:  
[http://www.disenopop.f2o.org/test2.html](http://www.disenopop.f2o.org/test2.html)

I’m trying to make something like this:  
[http://www.croma.biz/main.htm](http://www.croma.biz/main.htm)

Where content sticks to the center of the window with ease.

The code I use for timeline:

```auto

//
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:

```auto

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](http://www.disenopop.f2o.org/test2.fla)

Thnks in advance!!!
