?¨ Flash ?©

Out of context: Reply #6

  • Started
  • Last post
  • 9 Responses
  • cphunk0

    try something like this:. only use the onClipEvent(enterFrame) if your variable is tested as true.

    onClipEvent (load) {

    function CheckMouseOver () {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    return (true);
    } else {
    return (false);
    }
    }
    function moveNavDown() {
    example of some called function
    } function moveNavUp() {
    another called function
    }

    }

    onClipEvent (enterFrame) {
    var MouseIsOver = CheckMouseOver();
    if (!MouseIsOver) {
    moveNavUp();
    }
    else if(MouseIsOver) {
    moveNavDown();
    }
    }

    the window's too small. hehe. sorry.

View thread