Note that there are some explanatory texts on larger screens.

plurals
  1. PONull Reference on Group in Adjacent NavigatorContent
    primarykey
    data
    text
    <p>I have a TabNavigator with NavigatorContent's in MXML. Inside the first NavigatorContent I have a Group with an <code>id="canvas"</code>; I load a SWFLoader here. Inside the next NavigatorContent I have another Group with the <code>id="sheetcanvas"</code>; I want to load a SWFLoader here. The problem is that when I do that I get error #1009 null reference on the <code>sheetcanvas</code> id.</p> <p>If I take that same group and put it anywhere else it works with no null reference!</p> <p>The same error occurs when loading dynamically to a second group that exists in a second NavigatorContent of an Accordion, also. Am I doing something wrong or is there a bug?</p> <pre><code>&lt;mx:TabNavigator id="tabs" width="650" height="100%"&gt; &lt;s:NavigatorContent width="100%" height="100%" label="Tab 1"&gt; &lt;mx:DividedBox top="3" bottom="3" right="3" left="3" direction="vertical" width="100%" height="100%"&gt; &lt;s:BorderContainer x="28" y="10" width="100%" height="100%"&gt; &lt;s:TextArea y="6" width="120" height="24" borderVisible="false" text="{selectedNode.@label}"/&gt; &lt;s:CheckBox y="6" right="10" label="Show Grid" selected="true"/&gt; &lt;s:Scroller x="8" y="30" width="99%" height="90%" horizontalCenter="0"&gt; &lt;s:Group&gt; &lt;s:Group id="canvas"/&gt; &lt;/s:Group&gt; &lt;/s:Scroller&gt; &lt;/s:BorderContainer&gt; &lt;flexmd:FileEditor id="edit" width="100%" height="100%" enablePrint="true" enableSyntaxColoring="true" savePhp="/FileEditor/php/save.php" staticDemo="false" chromeColor="0xDCDCDC" /&gt; &lt;/mx:DividedBox&gt; &lt;/s:NavigatorContent&gt; &lt;s:NavigatorContent width="100%" height="100%" label="Tab 2"&gt; &lt;mx:DividedBox top="3" bottom="3" right="3" left="3" direction="vertical" width="100%" height="100%"&gt; &lt;s:BorderContainer x="28" y="10" width="100%" height="325"&gt; &lt;s:Scroller x="8" y="30" width="99%" height="100%" horizontalCenter="0"&gt; &lt;s:Group&gt; &lt;s:Group id="scanvas"/&gt; &lt;/s:Group&gt; &lt;/s:Scroller&gt; &lt;/s:BorderContainer&gt; &lt;/mx:DividedBox&gt; &lt;/s:NavigatorContent&gt; &lt;/mx:TabNavigator&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload