Sliding thumbnails and nested swf in AS2.0

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:


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?