How can i move an animation backward and forward with the movement of the mouse on the x axis?
all of the mouse trailers etc move an object which is linked to the mouse. however i don’t want my movie clip to move around the screen.
I have an animation of a wave form which I’ve animated to look as if the wave is increasing and decreasing, ie its amplification. I’d like to move this animation with a mouse movement. ie move your mouse to the left and the wave form increases. move your mouse to the right and the wave form decreases.
I have made an attempt. but it is very clunky and the link with the mouse isn’t exact. the animation of wave form moves only if the mouse moves to one side or the other. it’s not instant, like the infinite menu.
any ideas how to do this?
here is my clunky code:
if (_root._xmouse>=300) {
_level0.animation.nextFrame();
} else {
_level0.animation.prevFrame();
}