Topic: minor bug: onReleaseOutside causes button to move.

Open the autoviewer demo. Mouse down on the "next" button and release the mouse outside of the "next" hit area. Do this about ten times and it becomes apparent that the button has changed positions!

The bug appears to be in RolloverButton.onReleaseOutside(). The button position is adjusted by -4 in both _x and _y but should only be adjusted by -2.

Corrected code:

    public function onReleaseOutside(){
        if (!mEnabled) return;
        mBtn_mc._x -= 2; /* was -4, -4 */
        mBtn_mc._y -= 2;
        mMouseOver = false;       
    }   

-Dave

Re: minor bug: onReleaseOutside causes button to move.

good catch. I'll fix this in the next version.

Felix Turner
SimpleViewer Support Team.