Flex報錯之一,Flex報之一
1、錯誤描述
TypeError: Error #1009: 無法訪問Null 物件引用的屬性或方法。
at com.gwtjs.components::DetailWindow/completeHandler()[D:\Adobe Flash Builder 4 Installer\demo\src\com\gwtjs\components\DetailWindow.mxml:25]
at com.gwtjs.components::DetailWindow/___DetailWindow_TitleWindow1_creationComplete()[D:\Adobe Flash Builder 4 Installer\demo\src\com\gwtjs\components\DetailWindow.mxml:5]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
at mx.core::UIComponent/set initialized()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1577]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]
2、錯誤原因
3、解決辦法
FLEX報錯
<?xml version="1.0" encoding="utf-8"?>
flex報錯:訪問未定義方法
var item_3:ContextMenuItem = new ContextMenuItem (".....");
var a:ContextMenu = new ContextMenu();
a.customItems.push(item_3);
a.hideBuiltInItems();我在我這裡編譯是通過 你有沒有換個引用名試試