Prototypes and movies

:jail: Hello, i am not a flash expert so i hope i make myself understood:

I have two SWF movies that load into another one.
They are two sliding kind of menus with the following code in the main timelime:

MovieClip.prototype.move2 = function () {
dest = _root.xnew ;
pos = this._x ;
vel = vel*0.7 + (dest-pos)/10 ;
this._x += vel ;
}
MovieClip.prototype.move = function () {
dest = _root.xnew ;
pos = this._x ;
vel = (dest-pos)/10 ;
this._x += vel ;
}

there are also two buttons in each one that make the menu slide. this is the code of one of them

on (press) {
if(_root.xnew>-0)
_root.xnew -= 100
else
_root.xnew = 0
}

When they are both loaded (two independent SWF movies with the menus) into the main movie, the buttons of one of them stop functioning and they both respond at the same time to the buttons of the other one.
I found out that if i publish in flash5 the become dettached and work properly but i need to publish them in a higher version because of other features i am using.

Is there anybody that can explain what is going on, and maybe give me an idea of how to fix it?

thanks!

:whistle: kirupa is amazing!