Hello. I’ve got a horizontal bar on the screen following the mouse vertical motion. I would like for it to be transparent until the mouse moves, and then fade in to be 100% on mouse movement. When the mouse stops moving, I would like it to fade back to be 0% transparent after a couple of seconds.
Does anyone here know where there might be an example of such a thing? Or can you perhaps help with some code here?
This what I have for the mouse follow on the bar MC…
onClipEvent (load) {
_y = 0;
speed = 10;
}
onClipEvent (enterFrame) {
endY = _root._ymouse;
_y += (endY-_y)/speed;
}