houxq / flash-console

Automatically exported from code.google.com/p/flash-console
0 stars 0 forks source link

getChildAt may cause SecurityError #106

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. add StageText (in air mobile project)
var stio: StageTextInitOptions = new StageTextInitOptions(false);
st_ = new StageText(stio);
st_.text = "Hello";
st_.stage = stage;
st_.viewPort = new Rectangle(...)
or another component, protected by flash player 'security'.

2. try to open console
Cc.visible = true;

3. SecurityError in line
================
if(config.alwaysOnTop && parent.getChildAt(parent.numChildren-1) != this && 
_topTries>0){
================

Please provide any additional information below.

1. getChildAt should be used only in try/catch block.
2. StageText is always on top by design and console can not be over it.

Original issue reported on code.google.com by Oleg.Bulychov@gmail.com on 6 Apr 2012 at 10:08

GoogleCodeExporter commented 8 years ago

Original comment by luay...@gmail.com on 24 Apr 2012 at 1:29