as2 help
as2 help
- Started
- Last post
- 5 Responses
- tymeframe0
I'm hoping this can be done within the 'btnOne.onEnterFrame = function()' statement
- Pixter0
Does this work?
if (track == 1 && btnOne.hitTest(_xmouse, _ymouse))
- Pixter0
or
if (track == 1 && _root.btnOne.hitTest(_root._xmou... _root._ymouse))
- tymeframe0
I'd think so...
but it needs to be more of
if (track == 1) {go to frame 2}
else if mouse is over {go to frame 2}
else {go to frame 1}man, I hope this makes sense
- tymeframe0
oh shoot, never mind. that worked. Big thanks Pixter... I can now go eat!
ended up with this...
btnOne.onEnterFrame = function()
{
if (track == 1)
{
_root.btnOne.gotoAndStop (2);
}
else if (btnOne.hitTest(_xmouse, _ymouse))
{
_root.btnOne.gotoAndStop (2);
}
else
{
_root.btnOne.gotoAndStop (1);
}
}