Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex Flex中的Null引用_Apache Flex_Nullreferenceexception_Tabnavigator - Fatal编程技术网

Apache flex Flex中的Null引用

Apache flex Flex中的Null引用,apache-flex,nullreferenceexception,tabnavigator,Apache Flex,Nullreferenceexception,Tabnavigator,好的,我正在使用TabNavigator。目前,我正在每个选项卡中填充标签。我可以毫无问题地填充ard.text。但是我的所有其他标签都显示为null,我得到了一个1009错误“无法访问null对象引用的属性或方法”。在TabNavigator的功能上,我是否缺少一些东西。仅供参考,我是Flex新手。不知道我为什么会出错。任何帮助都会很好 <mx:TabNavigator id="tabNavigator" width="100%" height="125" visible="false

好的,我正在使用TabNavigator。目前,我正在每个选项卡中填充标签。我可以毫无问题地填充ard.text。但是我的所有其他标签都显示为null,我得到了一个1009错误“无法访问null对象引用的属性或方法”。在TabNavigator的功能上,我是否缺少一些东西。仅供参考,我是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>

没关系,我想出来了。只需将creationPolicy设置为所有