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

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

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

    lqxue

    常用鏈接

    統計

    book

    tools

    最新評論

    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 閱讀(266) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲无人区视频大全| 精品国产亚洲一区二区在线观看| 亚洲AV无码一区二区乱子伦 | 亚洲av不卡一区二区三区| 久青草国产免费观看| 亚洲日韩精品无码专区网站 | 免费网站观看WWW在线观看| 久久久久亚洲精品无码网址 | 午夜成人无码福利免费视频| 免费在线观看视频a| 日本高清不卡中文字幕免费| 亚洲乱码中文字幕手机在线| 免费人成再在线观看网站 | 成人福利免费视频| 亚洲婷婷第一狠人综合精品| 女人18特级一级毛片免费视频| 亚洲精品人成网线在线播放va| 婷婷亚洲天堂影院| GOGOGO高清免费看韩国| 亚洲国产综合专区电影在线| 91精品免费在线观看| 亚洲欧美日韩中文二区| 无码不卡亚洲成?人片| 野花香高清视频在线观看免费| 亚洲a在线视频视频| 国产精品成人观看视频免费 | a毛片免费在线观看| 亚洲日韩国产精品无码av| 成人免费视频88| 一级毛片成人免费看a| 久久精品国产亚洲AV麻豆不卡| 永久免费视频网站在线观看| 亚洲精品天堂无码中文字幕| 区三区激情福利综合中文字幕在线一区亚洲视频1| 91福利免费网站在线观看| 亚洲精品国产电影午夜| 免费国产成人午夜电影| 日韩插啊免费视频在线观看| 看亚洲a级一级毛片| 久久精品亚洲日本佐佐木明希| 在线观看av永久免费|