test.mxml:的Flex 4不会承认flash.events.UncaughtErrorEvent
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" x="0" y="0" width="703" height="609" xmlns:ns1="*" >
<mx:Script>
<![CDATA[
import flash.events.*;
// stuff
private function onUncaughtError(e:UncaughtErrorEvent):void {
//Do Stuff
}
这给: apitester.mxml 1046:类型未找到或不是编译时常:UncaughtErrorEvent。/apitester/src line 35 Flex问题
根据Adobe,它可用于flex和Air。
Flex的4/Eclipse构建路径示出了:
的Flex 4.0
- 的playerglobal.swc
- textLayout.swc
- osmf.swc
- framework.swc
- 火花.swc
- sparkskins.swc
- rpc.swc
- datavisualisation.swc
- 闪存integration.swc
- flex.swc
- utilities.swc
任何想法?
我刚刚更新到Flash Builder 4.0.1和同样的问题。我也检查了自动完成导入flash.events.xx并没有UncaughtErrorEvent。我如何在我的应用程序中创建全局异常处理程序? – wingnut 2010-10-29 18:26:13