Skip to main content

as2 help 55 Responses

Last post: 2 years, 2 months ago | Thread started: Mar 18, 10, 7:17 p.m.

RespondNew TopicDisable Images

  • Pixter

    Does this work?

    if (track == 1 && btnOne.hitTest(_xmouse, _ymouse))

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 18, 10, 7:27 p.m. – Permalink
  • Pixter

    or

    if (track == 1 && _root.btnOne.hitTest(_root._xmou... _root._ymouse))

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 18, 10, 7:34 p.m. – Permalink
  • tymeframe

    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

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 18, 10, 7:36 p.m. – Permalink
  • tymeframe

    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);
    }
    }

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 18, 10, 7:45 p.m. – Permalink

Login or Register to respond to this

Skip to main content