<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    lqxue

    常用鏈接

    統(tǒng)計(jì)

    book

    tools

    最新評(píng)論

    Accecing a field on a tab navigator

    Default Accecing a field on a tab navigator

    hi,


    i have a tab navigator. in one of my functions i'm trying to reference a field which is located on the second tab.

    If i click "ok" from the first tab, which calls the function, which references the field on a second tab, it gives me a runtime error. But if i click on the second tab, and go back to the first, and then click on "OK" it works.

    What is going on? am i supposed to somehow declare taht field before referencing it? to make it active..?

    any help greatly appreciated.

    Thanks!


    this is the error i'm getting:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    MadamZuZu is offline   Reply With Quote
      #2

     
     
     
    Default

    The children of a TabNavigator aren't created until they're needed. In your case, only the contents of the first tab are actually created, because they're part of what's needed when the TabNavigator is first displayed. The contents of the second tab won't be instantiated until they need to be displayed, which is when the second tab is clicked on. That's why that error is being thrown until you click on the second tab. This process of only instantiating components as they are needed is called deferred instantiation.

    To force the contents of the other tabs to be instantiated, try changing the creationPolicy property of the TabNavigator to be "all". This will cause all of the different tabs to be instantiated, regardless of having been clicked on.

    In the Flex docs, check out Container.creationPolicy for more details.

    ActionScript Code:
                
    <mx:TabNavigator creationPolicy="all">

    posted on 2010-03-14 11:34 lqx 閱讀(265) 評(píng)論(0)  編輯  收藏


    只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 国产一区二区免费视频| 日韩精品视频免费观看| 国内精自视频品线六区免费| 91亚洲性爱在线视频| 国产一区二区三区在线免费 | 久久久亚洲欧洲日产国码农村| 91免费福利精品国产| jizzjizz亚洲日本少妇| 久久久久亚洲精品影视| 日韩免费高清视频网站| 99久久免费中文字幕精品| 鲁死你资源站亚洲av| 亚洲日本中文字幕区| 免费一级毛片不卡不收费| 亚洲网站在线免费观看| h片在线观看免费| 国产亚洲精品影视在线| 亚洲日韩一页精品发布| 真实乱视频国产免费观看| 免费无码VA一区二区三区| 偷自拍亚洲视频在线观看99| 亚洲欧洲日产国码在线观看| 亚洲无码黄色网址| 免费无码黄动漫在线观看| 性无码免费一区二区三区在线| 免费夜色污私人影院网站电影 | 亚洲性线免费观看视频成熟| 亚洲欭美日韩颜射在线二| 麻豆国产VA免费精品高清在线| 亚洲精品在线免费观看视频| 国产精品视频全国免费观看| 色偷偷尼玛图亚洲综合| 亚洲三级在线观看| 久久久国产精品亚洲一区| 亚洲精品乱码久久久久久蜜桃不卡 | 亚洲精品第一国产综合精品| 亚洲中文字幕无码一区| 国产jizzjizz视频全部免费| 在线看片免费不卡人成视频| 91精品啪在线观看国产线免费| a级日本高清免费看|