# Thumbnail slider, center selected thumbnail

**URL:** <https://forum.kirupa.com/t/thumbnail-slider-center-selected-thumbnail/295728>\
**Category:** flash\
**Created:** [September 3, 2009, 3:41pm UTC](https://forum.kirupa.com/t/thumbnail-slider-center-selected-thumbnail/295728 "2009-09-03T15:41:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![layerburn](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@layerburn](https://forum.kirupa.com/u/layerburn)\
**Post date:** [September 3, 2009, 3:41pm UTC](https://forum.kirupa.com/t/thumbnail-slider-center-selected-thumbnail/295728/1 "2009-09-03T15:41:42Z")

</div>

I’m currently trying to create a thumbnail slider that gives text detail about each image that slides out when the current image is selected. I’m trying to replicate the one located on the [www.foodnetwork.com](http://www.foodnetwork.com) main page. I’ve roughly got everything in except I’m having one issue. I want the selected thumbnail to center itself to the stage. Right now if the user selects an image that is slightly off stage, then they have to use the slider to scrub over to view it. I would love for it to automatically adjust to center itself to the stage, and the slider bar to update as well. There are 8 images all located in a main movieclip. So the main movieclip would need to adjust its position, but how to get the position of the selected clip? Could anyone help me out?

I’ve include my rough working file. Any help at all would be much appreciated. I’ve been spinning my wheels on this for days now with no headway.
