I’ve searched the forums and have found some stuff that is really close but just misses what I need.
I got the following code from an example movie that I downloaded a few weeks back but cannot find again now. This movie is drop dead simple but I can’t seem to replicate it!
It’s simple got a movie on the stage that when you mouse over it, it pops up and then when you move out, it drops back down.
This is the only ActionScript in the movie:
onClipEvent (load) {
_root.newx = 145;
vel = 2;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.newx = 0;
} else {
_root.newx = 145;
}
fukx += (_root.newx-_y)/vel;
_y = Math.round(fukx);
}
The example movie works just fine but when I bring that code in to my movie, past it in and edit the coordinates, nothing …
What the heck am I doing wrong?
I know for a fact that it is the _y coordinates that are not changing properly as I’ve put a trace on if and **else **so it feeds back, “IN” and “OUT” but still … no movement on the menu. I thought maybe I was leaving some ActionScript out but there is no more within that movie.
Any help will be greatly appreciated!