I have a moive with a sliding arrow that only sides arrow the X axes. I worked on it and Ive go it to work in a movie using this scripted.
//
mouse_x = _xmouse;
setProperty (_root.follow, _x, mouse_x+((getProperty(_root.follow, _x)-mouse_x)/1.15));
//
with the arrow in its own movie, instance named ‘follow’.
Hi n0,
You have to make your code _root independent. Because the _root of the loaded movie is no longer the _root when you load it. I don’t know if this is clear…
Basically, you have to remove all the references to the _root in your code. You can use _parent instead, or nothing, when it is not necessary.
And drop the Flash 4 syntax:
// this sucks
setProperty (_root.follow, _x, mouse_x+((getProperty(_root.follow, _x)-mouse_x)/1.15));
// that's the way I like it
_root.follow._x=mouse_x+(_root.follow._x-mouse_x)/1.15;