# Fluid Layout - stop changing resize position when movieclip is at certain position

**URL:** <https://forum.kirupa.com/t/fluid-layout-stop-changing-resize-position-when-movieclip-is-at-certain-position/300344>\
**Category:** flash\
**Created:** [November 19, 2009, 2:47pm UTC](https://forum.kirupa.com/t/fluid-layout-stop-changing-resize-position-when-movieclip-is-at-certain-position/300344 "2009-11-19T14:47:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jebadiah](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jebadiah](https://forum.kirupa.com/u/jebadiah)\
**Post date:** [November 19, 2009, 2:47pm UTC](https://forum.kirupa.com/t/fluid-layout-stop-changing-resize-position-when-movieclip-is-at-certain-position/300344/1 "2009-11-19T14:47:40Z")

</div>

Hello. I have been trying things out for hours, and I still can’t get it. So please help. 🙂

I am following this Fluid Layout tutorial: [http://active.tutsplus.com/tutorials/web-design/build-a-fluid-website-layout/](http://active.tutsplus.com/tutorials/web-design/build-a-fluid-website-layout/)

I added a Menu\_mc on my stage. Initially, this should be at the center of the stage and when I click on it, it will tween on the upper left corner of the browser. However, when I resize the browser, the Menu\_mc goes back to the center of the screen.

I have tried separating a different actionscript file where it is specifically for initialization of the object and another one for resizing. And then when I call it on my main AS file it goes like this:

```auto
// Add the symbols to stage 
            var Menu_mc = new Menu_MC();
            addChild(Menu_mc);
                    
            // Apply the alignment to the middle
            var Menu_InitParam = {
                x:0.53,
                y:0.35,
                offsetX: -Menu_mc.width/2,
                offsetY: -Menu_mc.height/2
            }
            new InitFluidObject(Menu_mc,Menu_InitParam);
            
            var Menu_ResizeParam = {
                x:Menu_mc.x,
                y:Menu_mc.y,
                offsetX: -Menu_mc.width/2,
                offsetY: -Menu_mc.height/2
            }
            new FluidObject(Menu_mc,Menu_ResizeParam);

```

But it seems futile. Could anyone please help? Thanks a lot! 🙂
