<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)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 免费网站看v片在线香蕉| 99视频在线免费观看| 亚洲黄色免费在线观看| 亚洲午夜国产精品无码| 特a级免费高清黄色片 | 色五月五月丁香亚洲综合网| 成人超污免费网站在线看| ass亚洲**毛茸茸pics| av无码免费一区二区三区| 亚洲免费电影网站| 日韩吃奶摸下AA片免费观看| 在线观看亚洲AV日韩A∨| 免费网站看v片在线香蕉| 黄色免费网址大全| 国产亚洲精品国看不卡| 毛片在线全部免费观看| 久久久婷婷五月亚洲97号色| 免费H网站在线观看的| 亚洲国产精品无码久久| 亚洲精品成人久久久| 两性色午夜视频免费网| 亚洲一区免费观看| 美女视频黄的全免费视频| 亚洲成AV人片在WWW| 亚洲人成无码www久久久| 日本在线免费播放| 亚洲一区精品视频在线| 国产精品久久免费视频| 国产免费久久久久久无码| 亚洲AV电影院在线观看| 扒开双腿猛进入爽爽免费视频| 在线观看免费亚洲| 亚洲va久久久噜噜噜久久 | 一级片在线免费看| 久久99亚洲网美利坚合众国| 国产精品视频永久免费播放| 亚洲国产成人手机在线观看| 亚洲综合图色40p| 九九九精品成人免费视频| 一级特黄录像视频免费| 亚洲成人免费在线观看|