player_03 icon

Stage focus fix

player_03 | PRO | 11/21/13 11:24:14 PM UTC | 0 ⭐ | 10696 👁️ | Never ⏰ | []
ActionScript 3 |

0 B

|

None

|

0 👍

/

0 👎

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;
        }
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎