title: Access of undefined property myItem
body: <p>I am new in as3 and flex and there is probably a dump question. The following code raises an error  Access of undefined property myItem. But why? All variables are accessable and defined. Do i register this variable somewhere else? I can not just define a new variable?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
             xmlns:s="library://ns.adobe.com/flex/spark" 
             xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"&gt;
  &lt;fx:Script&gt;
      &lt;![CDATA[
          var myList:Array = new Array();
          var myItem:int = 12;
  
          myList.push(myItem);
          trace(myList);
  
      ]]&gt;
  &lt;/fx:Script&gt;
  &lt;fx:Declarations&gt;
      &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;
  &lt;/fx:Declarations&gt;
  </code></pre>
  
  <p>
  </p>