How would you randomly move the mouse 1px while my FLVPlayback is running and stop moving the mouse when the movie ends?
I was thinking of using an eventListener that while playing the flv runs a function that updates the mouse x and y randomly. But when the move Completes it removes the moveNouse listener.
my_flv.addEventListener(Event.COMPLETE, removeMouseMove);
my_flv.addEventListener(Event.PLAYHEADUPDATE, moveMouse);
function moveMouse(){
mouseX = mouseX +1;
}
function removeMouseMove(){
removeEventListener moveMouse
}
Is this even possible?
You can’t control the cursor from Flash.
With that said, you can hide the cursor and then use your own graphic to represent it. This can then obviously be moved to wherever you like.
This should get you started:
Mouse.hide();