title: Embed SWC cannot access textfield
body: <p>I added a SWC with movieclip assets to my flash builder project. I can access all movieclips with dot syntax but when I try to access my textfields it throws an error saying it is <code>cannot access a property or method of a null object reference</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code>// gameMenuLevels is a main asset.
  this.object = new gameMenuLevels();
  </code></pre>
  
  <p>This all works fine, I can go two levels deep:</p>
  
  <pre><code>var levelString:String = "level" + Utils.zeroPad(i + 1, 3);
  var level:MovieClip = this.object[levelString] as MovieClip;
  var bronze:MovieClip = level.bronze as MovieClip;
  </code></pre>
  
  <p>But when I try to get my textfield:</p>
  
  <pre><code>(bronze.getChildByName("levelNumber") as TextField)
  </code></pre>
  
  <p>It throws the error.</p>