Ok here’s what I got going on. I have an object that inherits from Sprite, and it’s just a simple png. In the main class I go ahead and add it, and then I call these 2 methods:
addEventListener(Event.ADDED,addedListener);
addEventListener(FocusEvent.FOCUS_IN,focusInListener);
/**
*
*/
private function focusInListener(e:FocusEvent):void {
if (e.target == player) {
player.focusRect = 0; //I don't want to see that lame *** focus rectangle
}
}
/**
*
*/
private function addedListener(e:Event):void {
if (e.target == player) {
stage.focus = player;
}
}
now when i load up my swf , the player object is still inside a focusRect, I also tried setting it to false. However as soon as use the keyboard to move the player object it moves out of the focusRect (which just stays in it’s orginal location) So what’s the deal with that thing, and how can I rid myself of it?