Is there a way to activate this using a button or a mousedown which works when clicking within the instance the actionscript is attached to?
The instance the actionscript is attached to is called no1. It is a movie. Instance no2 is also a movie.
onClipEvent (load) {
_x = 0;
speed = 2;
}
onClipEvent (enterFrame) {
endx = 20;
if (_root.no2._x<400) {
_root.no2._x += (endx-_x)/speed;
}
}
At the moment if you change enterFrame to mousedown it allows you to click anywhere within the _root movie and it activates the actionscript. I cannot have this as I plan to use this actionscript to move the items left and reight depending on the item selected.
Thanks