Button Movie Clips Loops Ad Nauseum


greetings

 

i have button movie clip set animations triggered mouse_over , mouse_out event listeners.  glitch once mouse on button ... each ensuing pixel mouse moved, loops animation again.  didn't make whole lot of sense, posted file on test site (http://www.savagepixels.com/test/test.html).  have drag mouse across button see this. bottom part of button works i'd expect.  when roll on text @ bottom of button, functions should.  looping problem starts when roll on image portion of button.  reason considers each consecutive pixel rolled on new event , consequently triggers "over" animation again.

 

the code have below.  i've commented out mouse_out function now.  there screenshot @ above link of layers palette button clip in question.  put "stop" label @ each frame has action see actions used.

 

thanks helping!

 

______________________________

onebedbutton_mc.buttonmode = true;
onebedbutton_mc.addeventlistener(mouseevent.mouse_over, overeffect);
//onebedbutton_mc.addeventlistener(mouseevent.mouse_out, outeffect);

 

function overeffect (e:mouseevent)
{
    onebedbutton_mc.gotoandplay("over");
}

 

function outeffect (e:mouseevent)
{
    onebedbutton_mc.gotoandplay("out");
}

actually, whatever you're doing in rollover triggering rollout.  , when move mouse rollover triggers rollout.

 

so, doing in rollover?



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts