Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(stage.focus != stage) {
- var obj:DisplayObject = stage.focus;
- while(obj != stage) {
- if(obj == null || !obj.visible) {
- stage.focus = stage;
- break;
- } else {
- obj = obj.parent;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement