0
好吧我正在使用TabNavigator。現在,我正在每個標籤中填充標籤。我可以填充ard.text沒有問題。但是我所有的其他標籤都顯示爲空,並且出現1009錯誤「無法訪問空對象引用的屬性或方法」。有什麼我缺少什麼是有能力的TabNavigator。僅供參考,我是Flex新手。不確定爲什麼我得到錯誤。任何幫助都會很棒。Flex中的空引用
<mx:TabNavigator id="tabNavigator" width="100%" height="125" visible="false" includeInLayout="false" creationPolicy="auto">
<mx:VBox id="generalInformation" label="Gen. Info." width="100%" horizontalAlign="center">
<mx:Label id="ard" text=""> </mx:Label>
<mx:Label id="bufferDist" text=""/>
<mx:HBox paddingBottom="5" >
<mx:Button id="googleButton" label="Google Directions" click="newWin('http://www.maps.google.com/?q=' + addressResult)"/>
<mx:Button id="mapquestButton" label="MapQuest Directions" click="newWin('https://www.mapquest.com/?q=' + addressResult)"/>
</mx:HBox>
</mx:VBox>
<mx:VBox id="schoolDistrict" label="School District" width="100%">
<mx:Label id="schoolDistrictLabel" text=""> </mx:Label>
</mx:VBox>
<mx:VBox id="paHouse" label="PA House" width="100%">
<mx:Label id="paHouseLabel" text=""> </mx:Label>
</mx:VBox>
<mx:VBox id="paSenate" label="PA Senate" width="100%">
<mx:Label id="paSenateLabel" text=""> </mx:Label>
</mx:VBox>
<mx:VBox id="usHouse" label="US House" width="100%">
<mx:Label id="usHouseLabel" text=""> </mx:Label>
</mx:VBox>
</mx:TabNavigator>