-2
。請幫幫我......如果我調試下面的代碼則顯示無法訪問空對象引用的屬性或方法..how解決它無法訪問空對象引用的屬性或方法:as3
protected function upload_itemClickHandler(event:ItemClickEvent):void
{
if(upload.selectedValue == "allupload")
{
theModel.removeAllViews();
//ModuleLbl.text = headerText;
theModel.uploadStatusMessage = "";
theModel.adminStatusMessage = "";
var gallComp:ManageGallery = new ManageGallery();
gallComp.theModel = theModel;
theModel.AdminUIComponent.addChild(gallComp as DisplayObject);
theModel.adminObj["theTaskName"] = "GalleryRepository";
theModel.adminObj["userID"] = theModel.activeUserObj.UserID;
theModel.adminObj["isAdminLogin"] = theModel.isAdminLogin;
theModel.theAdminEvt.dispatch();
theModel.tempAdminParams = theModel.adminObj;
}
}