all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

mouse present = instance


mouse present = instance visualstylee
1/28/2005 11:31:09 PM
flash actionscript:
ok i have a navigation type box.
it has 9 buttons/links
under it there's an MC that has a fade in fade out effect stoped on 1 and
stoped before the fade out.
i'm wandering if ther's anyway to control an MC with the mouse being present
on the movie, ok so...


if (mouse is on the movie){
play 1;
}
if mouse isn't on the movie) {
play2;
}
:::::::::::::::::::
and to do this without messing with the button/link instances, because they
already control MC's?
very important cause i have to have this done by sunday haha and i can't find
any help
Re: mouse present = instance Kosso
1/28/2005 11:35:08 PM
how about comparing the current mouse position with the origin and the stage width and height?

Re: mouse present = instance visualstylee
1/29/2005 2:17:43 AM
right exactly!
except..
i dont know how to do that.. haha i'm kinda new to scripting
Re: mouse present = instance NSurveyor
1/29/2005 2:57:40 AM
getProperty only gets a property, so it makes no sense. Can't you just use an
on roll over and on roll out event? Something like this:

on(rollOver){
someMC.gotoAndPlay(10);
}
on(rollOut){
someMC.gotoAndPlay(20);
}
Re: mouse present = instance visualstylee
1/29/2005 7:11:33 PM
no because there are buttons on a layer on top of the mc.. and i don't want to interfere with them, and to make it the way i want it would look wrong with multiple buttons
Re: mouse present = instance visualstylee
1/29/2005 7:14:24 PM
ok i'll layout the idea:

1 mouse over anywhere in the movie = backg lightup effect
2 mouse over button = target mcs for roll over effects/ text effect
3 mouse off the the movie = backg lightup fade away

AddThis Social Bookmark Button