click the button to pause the game , but when the game paused , you click any where in on the stage, the trace() always fire
package test
{
import org.flixel.*;
public class Bug extends FlxState
{
override public function create():void
{
super.create()
this.add( new FlxButton(100,100,"TESTTESTTEST",onClick))
}
override public function update():void
{
if(FlxG.paused)return
super.update()
}
private function onClick():void
{
FlxG.paused = true
trace("what's wrong Huh?Huh???")
}
}
}