Hello,
i would like to know, how can i make something like this:
when the user, click on the image, this one is amp. and the user can control the moviments, just moving the mouse.
i tried with this code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse,1)) {
setProperty (_root.elevador, _y, _root.elevador._y -5);
} else {
setProperty (_root.elevador, _y, _root.elevador._y +5);
}
if (_root.elevador._y<=100) {
_root.elevador._y = 100;
} else if (_root.elevador._y>=300) {
_root.elevador._y = 300;
}
}
but not work