2 Replies Latest reply on Apr 18, 2006 9:46 AM by jkevinm

    Problem with onRollOut

    jkevinm
      I have a number of buttons. By adding trace lines to events, I have found that the onRollOut is being called after the onRelease function even though the mouse did not move off the button. If the mouse is not moved, the next time the mouse is clicked, the button press is not called, instead, RollOver is called, and on the release of the mouse button, RollOut is called. The mouse is still centered over the button and the cursor is a little hand. What could be causing the onRollOut call when the button is just released?
        • 1. Re: Problem with onRollOut
          shyaway Level 1
          paste your scripts
          • 2. Re: Problem with onRollOut
            jkevinm Level 1
            //
            // the audio text button
            //
            audBtn.gotoAndStop(1);
            var ashown:Boolean = false;
            audBtn.onPress = function() {
            trace("onPress");
            this.gotoAndStop(3);
            /*
            ashown = not ashown;
            if(ashown) {
            gshown=false;
            GTxt._visible = gshown;
            }
            ATxt._visible = ashown;
            */
            };
            audBtn.onRollOver = function() {
            trace("onRollOver");
            this.gotoAndStop(2);
            screenInst.htmlText = "Click to view Audio Text.";
            };
            audBtn.onRollOut = function() {
            trace("onPollOut");
            this.gotoAndStop(1);
            screenInst.htmlText = mainm.page[p].prompt;
            };
            audBtn.onRelease = function() {
            trace("onRelease");
            this.gotoAndStop(2);
            };

            audBtn.onReleaseOutside = function() {
            trace("onReleaseOutside");
            this.gotoAndStop(1);
            };