# Sliding thumbnails and nested swf in AS2.0

**URL:** <https://forum.kirupa.com/t/sliding-thumbnails-and-nested-swf-in-as2-0/237176>\
**Category:** Uncategorized\
**Created:** [August 27, 2007, 9:23pm UTC](https://forum.kirupa.com/t/sliding-thumbnails-and-nested-swf-in-as2-0/237176 "2007-08-27T21:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rumoroso](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@rumoroso](https://forum.kirupa.com/u/rumoroso)\
**Post date:** [August 27, 2007, 9:23pm UTC](https://forum.kirupa.com/t/sliding-thumbnails-and-nested-swf-in-as2-0/237176/1 "2007-08-27T21:23:39Z")

</div>

Ok this is something I have done many times before, but now its giving me a bit of a problem. I’m putting a nested swf in a gallery, which slides left and right. When I play the swf with the thumbnails, the functionality runs fine, however when loaded in, it doesn’t work at all.  
code here:

```auto

if(this._xmouse>=0 && this._xmouse<=600 && this._ymouse>=0 && this._ymouse<=400){
onEnterFrame = function(){
    slider._x -= (this._xmouse-300)/10;
}
}

```

do I need to relate the mouse tags to the root of the gallery? This makes it a bit more complicated because then i need to find the coords of the mouse relative to where the swf gets loaded in. Is it possible to just translate the coords of the swf?
