-
-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test verifies the behavior of focus and focus highlight for the stage object.
- Loading branch information
1 parent
42c26f6
commit 8a9d4f5
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package { | ||
|
||
import flash.display.Sprite; | ||
import flash.text.TextField; | ||
import flash.display.Sprite; | ||
import flash.display.Shape; | ||
import flash.display.MovieClip; | ||
import flash.events.FocusEvent; | ||
|
||
[SWF(width="50", height="50", backgroundColor="#000000")] | ||
public class Test extends MovieClip { | ||
public function Test() { | ||
super(); | ||
|
||
var shape = new Shape(); | ||
shape.graphics.beginFill(0xFFFF0000); | ||
shape.graphics.drawRect(10, 10, 30, 30); | ||
shape.graphics.endFill(); | ||
this.stage.addChild(shape); | ||
this.stage.addEventListener("focusIn", function (evt:FocusEvent):void { | ||
trace("Focus changed to stage"); | ||
}); | ||
this.stage.focus = this.stage; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Focus changed to stage |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
num_ticks = 1 | ||
|
||
image_comparisons."output".trigger = 1 | ||
|
||
[player_options] | ||
with_renderer = { optional = false, sample_count = 1 } |