crazymitch
02-05-2006, 10:58 PM
I am trying to get an several objects to function differently when several different movie clips are pressed. I put this code on the object:
onClipEvent (load) {
_x = -120;
div = 8;
endx = -120;
}
onClipEvent (enterFrame) {
_x += (endx-_x)/div;
_root.news.onRelease = function() {
endx = -120;
};
_root.aboutesef.onRelease = function() {
endx = 210;
};
}
If I put the same code on another object, it doesn't work. Any ideas?
This is the tutorial I am referencing. http://www.actionscript.org/tutorials/intermediate/Easing_Menu_System/index.shtml
I am wondering how to put that on multiple clips and have it work.
onClipEvent (load) {
_x = -120;
div = 8;
endx = -120;
}
onClipEvent (enterFrame) {
_x += (endx-_x)/div;
_root.news.onRelease = function() {
endx = -120;
};
_root.aboutesef.onRelease = function() {
endx = 210;
};
}
If I put the same code on another object, it doesn't work. Any ideas?
This is the tutorial I am referencing. http://www.actionscript.org/tutorials/intermediate/Easing_Menu_System/index.shtml
I am wondering how to put that on multiple clips and have it work.