View Full Version : super noob question
frickenhamster
10-10-2007, 03:43 AM
how do u do the code so it happens when the mouse moves in the flash?
grenadier_teg
10-10-2007, 04:41 AM
Do you mean the distance the mouse moves, or if the mouse moves at all?
You should look in the flash help for either '_xmouse' and '_ymouse' OR you should be looking for Listeners, search 'addListener' or 'removeListener'
Tell us more on what you are trying to achieve and we might be able to help you
frickenhamster
10-10-2007, 06:06 AM
sry, what i meant, was when like the mouse goes in hte flash, like u move the mouse into the flash, but i dont need it any more thx
grenadier_teg
10-10-2007, 07:36 AM
Probably what you would want is an IF function that detects if the mouse is between the x and y values of your stage, then says hide mouse and play frame 2, and have a stop(); on frame 1
myDetect = function () {
if (_xmouse>0 && _xmouse<550) {
Mouse.hide();
gotoAndPlay(2);
}
};
myDetect();
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.