Flash Help svp.

Out of context: Reply #3

  • Started
  • Last post
  • 9 Responses
  • cphunk0

    Just an opinion, but rather than making them click for the submenu then click again, why not just make it a rollover or hitTest function. Best to keep a one click navigational system in my opinion.

    Anyways, either way. A hitTest function will work. Make a clip in the background with its alpha set to 0.

    then use this code on the main parent clip.

    onClipEvent (load) {
    function CheckMouseOver () {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    return (true);
    } else {
    return (false);
    }
    }
    }

    onClipEvent (enterFrame) {
    var MouseIsOver = CheckMouseOver();
    if (!MouseIsOver) {
    whatever.gotoAndStop(2);;
    }
    else if(MouseIsOver) {
    whatever.gotoAndStop(1);;
    }
    }

    u can even call a movement function in place of whatever.gotoAndStop(2); etc. I just made it simple for you.

View thread