# Sliding menu in Fluid layout

**URL:** <https://forum.kirupa.com/t/sliding-menu-in-fluid-layout/289040>\
**Category:** flash\
**Created:** [May 25, 2009, 3:19pm UTC](https://forum.kirupa.com/t/sliding-menu-in-fluid-layout/289040 "2009-05-25T15:19:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flash123](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@flash123](https://forum.kirupa.com/u/flash123)\
**Post date:** [May 25, 2009, 3:19pm UTC](https://forum.kirupa.com/t/sliding-menu-in-fluid-layout/289040/1 "2009-05-25T15:19:24Z")

</div>

Hi, Ive made a fluid layout  
using this tutorial [http://www.tutorio.com/tutorial/liquid-flash-layout](http://www.tutorio.com/tutorial/liquid-flash-layout)

I have now recently put a section into it where there are 5 images that slide horizontally when u click on their thumbnails.  
Using this tutorial [http://www.kirupa.com/developer/flash5/slidingmenu.htm](http://www.kirupa.com/forum/../developer/flash5/slidingmenu.htm)

I have managed to get everything fluid except for the amount the sliding images move horizontally. The original actionscript for each individual thumbnail is like this:

//sets the destination  
on (press) {  
\_root.xnew = \_root.mask2.\_x+(4-1)\*100/2;  
}

That will work fine for a normal layout, but because mine is a fluid layout it, it wont work properly on different screen resolutions. I was trying to replace the 100 value into the overall width of all of the sliding images divided by 5 but couldnt get it to work.

Any help would be appreciated,

Thanks
