title: Flex 4 wont recognise flash.events.UncaughtErrorEvent
body: <p>test.mxml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" x="0" y="0" width="703" height="609"  xmlns:ns1="*" &gt;
  &lt;mx:Script&gt;
  &lt;![CDATA[
  import flash.events.*;
  // stuff
  private function onUncaughtError(e:UncaughtErrorEvent):void {
  //Do Stuff
  }
  </code></pre>
  
  <p>This gives: 
  apitester.mxml  1046: Type was not found or was not a compile-time constant: UncaughtErrorEvent.    /apitester/src  line 35 Flex Problem</p>
  
  <p>According to <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/UncaughtErrorEvents.html" rel="nofollow">Adobe</a> it is available in flex and Air.</p>
  
  <p>The Flex 4/Eclipse build path shows:</p>
  
  <p>Flex 4.0</p>
  
  <ol>
  <li>playerglobal.swc</li>
  <li>textLayout.swc</li>
  <li>osmf.swc</li>
  <li>framework.swc</li>
  <li>spark.swc</li>
  <li>sparkskins.swc</li>
  <li>rpc.swc</li>
  <li>datavisualisation.swc</li>
  <li>flash-integration.swc</li>
  <li>flex.swc</li>
  <li>utilities.swc</li>
  </ol>
  
  <p>Any ideas?</p>