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


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


    網站導航:
     
    主站蜘蛛池模板: 小说专区亚洲春色校园| 无码乱人伦一区二区亚洲| 亚洲人成人网毛片在线播放| MM1313亚洲精品无码久久| 18国产精品白浆在线观看免费| 国产免费的野战视频| 亚洲导航深夜福利| 无码区日韩特区永久免费系列| 亚洲制服在线观看| 免费A级毛片无码免费视| 亚洲综合精品第一页| 高清国语自产拍免费视频国产| 无码亚洲成a人在线观看| 久久九九免费高清视频 | 一级特黄录像免费播放肥| 亚洲一级片免费看| 亚洲国产日韩在线| 岛国av无码免费无禁网站| 亚洲AV无码XXX麻豆艾秋| 国产精品酒店视频免费看| 日本免费精品一区二区三区 | 亚洲一级毛片免费观看| 成年男女男精品免费视频网站| 亚洲AV无码之国产精品| 亚洲人成影院在线观看 | 亚洲人成电影网站免费| 亚洲av成人中文无码专区| 亚洲美日韩Av中文字幕无码久久久妻妇| 亚洲国产精品日韩在线观看| 免费a级毛片高清视频不卡| 国产精品日本亚洲777| 亚洲欧洲无码AV电影在线观看| 亚洲一区免费观看| 中文字幕亚洲精品无码| 国产成人亚洲综合| 亚洲免费视频观看| 亚洲乱亚洲乱淫久久| 一级a性色生活片久久无少妇一级婬片免费放 | **毛片免费观看久久精品| 亚洲天天做日日做天天看| 女人18一级毛片免费观看|