weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

SimpleButton is not out from state OVER to state UP #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Roll mouse over simple button
2. Roll mouse out simple button
What is the expected output? What do you see instead?
Expected: recover "upState";
Getted: nothing happens

What version of the product are you using? On what operating system?
nme 3.2.0, target: windows, OS: Windows XP

Please provide any additional information below.
Code to reproduce:

var button = new SimpleButton();
addChild(button);

var shape = new Shape();
var g = shape.graphics;
g.beginFill(0x000000);
g.drawRect(0, 0, 100, 100);
g.endFill();
button.upState = shape;

var shape = new Shape();
var g = shape.graphics;
g.beginFill(0xff0000);
g.drawRect(0, 0, 100, 100);
g.endFill();
button.overState = shape;
button.hitTestState = shape;

Original issue reported on code.google.com by cse...@gmail.com on 12 Mar 2012 at 5:55