Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxButton cant be pause,and click any where on the stage will callback #56

Open
moly opened this issue Aug 30, 2012 · 0 comments
Open
Labels

Comments

@moly
Copy link
Owner

moly commented Aug 30, 2012

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???")
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant