Question
glitch in rollover event
hi i'm new to flash, but not new to coding... i just picked
up flash, and just learned what actionscripting was a couple weeks
ago and i'm hooked! anyways, i am having a problem with an
onRollOver even in my swf file.... where to begin? ok, if you take
a look at my swf file
here
you will notice that if you roll the mouse over the computer monitor, the monitor will grow.... and if you roll out, the monitor will shrink.... here's the problem: sometimes when you roll over the monitor, the monitor will start flashing very fast, as if it can't make up it's mind whether or not it's invoved in a rollOver even or a rollOut event....this is not good for business...
some details:
the monitor is a movie clip called monitor_mc.... within the monitor_mc timeline, i have created a label for the up state, a label for the over state and a label for the out state... the over state is a shape tween and so is the out state. the up state does nothing, well it have a script that says stop();
on my main timeline i have a simple script on he first fram of the actions layer that reads
monitor_mc.onRollOver = function()
{
monitor_mc.gotoAndPlay("monitorBig");
}
monitor_mc.onRollOut = function()
{
monitor_mc.gotoAndPlay("monitorSmall");
}
//mainly i'm wondering if i'm even taking the right approach to creating a roll over event.... and i'm also wondering if it is possible to get the monitor to not flash like that.... i suppose i could've forgot a semicolon?
let me know if there is any more information i can give... thanks!
you will notice that if you roll the mouse over the computer monitor, the monitor will grow.... and if you roll out, the monitor will shrink.... here's the problem: sometimes when you roll over the monitor, the monitor will start flashing very fast, as if it can't make up it's mind whether or not it's invoved in a rollOver even or a rollOut event....this is not good for business...
some details:
the monitor is a movie clip called monitor_mc.... within the monitor_mc timeline, i have created a label for the up state, a label for the over state and a label for the out state... the over state is a shape tween and so is the out state. the up state does nothing, well it have a script that says stop();
on my main timeline i have a simple script on he first fram of the actions layer that reads
monitor_mc.onRollOver = function()
{
monitor_mc.gotoAndPlay("monitorBig");
}
monitor_mc.onRollOut = function()
{
monitor_mc.gotoAndPlay("monitorSmall");
}
//mainly i'm wondering if i'm even taking the right approach to creating a roll over event.... and i'm also wondering if it is possible to get the monitor to not flash like that.... i suppose i could've forgot a semicolon?
let me know if there is any more information i can give... thanks!