<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人人夜夜澡人人爽| 亚洲H在线播放在线观看H| 久久精品一区二区免费看| 亚洲日韩乱码中文无码蜜桃臀网站 | 国产一区二区三区免费看| 亚洲偷自拍另类图片二区| 久久精品国产免费观看三人同眠| 91亚洲国产成人久久精品网站 | 精品国产福利尤物免费| 亚洲欧洲∨国产一区二区三区| 中文字幕版免费电影网站| 亚洲欧洲无码AV电影在线观看| 波霸在线精品视频免费观看| 亚洲成色www久久网站夜月| 无码免费一区二区三区免费播放| 亚洲国产综合精品| 成年女人毛片免费视频| 国产成人不卡亚洲精品91| 国产亚洲精品线观看动态图| 成人精品一区二区三区不卡免费看| 久久精品国产亚洲AV网站| 亚洲综合免费视频| 亚洲精品国产suv一区88| 国产成人高清亚洲| 免费无遮挡无码永久视频 | 日本高清色本免费现在观看| 成年大片免费高清在线看黄| 亚洲精品无码mv在线观看网站| 永久免费在线观看视频| 综合偷自拍亚洲乱中文字幕| 伊人久久大香线蕉亚洲| 久久午夜夜伦鲁鲁片免费无码影视| 亚洲午夜无码久久久久小说| 中文字幕亚洲激情| 久草视频免费在线观看| av网站免费线看| 亚洲国产精品日韩在线观看| 免费夜色污私人影院在线观看| 久久免费动漫品精老司机| 亚洲精品色在线网站|