<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)航:
     
    主站蜘蛛池模板: 台湾一级毛片永久免费| 免费播放在线日本感人片| 亚洲国产精品综合久久久| 亚洲精品无码mⅴ在线观看| 狠狠色香婷婷久久亚洲精品| 黄页网站在线免费观看| 91精品手机国产免费| 亚洲AⅤ视频一区二区三区| 久久亚洲AV成人无码电影| 日韩国产欧美亚洲v片| 1000部国产成人免费视频| 国产亚洲精午夜久久久久久| 自拍日韩亚洲一区在线| 日韩免费视频网站| 亚洲精品福利视频| 中国国产高清免费av片| 免费成人黄色大片| 亚洲heyzo专区无码综合| xvideos亚洲永久网址| 男女一边摸一边做爽的免费视频| 免费看又爽又黄禁片视频1000| 亚洲免费视频网站| 波多野结衣免费在线| 亚洲国产精品无码久久久不卡| 精品国产日韩亚洲一区在线| 最新免费jlzzjlzz在线播放| 中文字幕亚洲精品| 色欲色香天天天综合网站免费 | 亚洲日韩欧洲乱码AV夜夜摸| 亚洲AV网一区二区三区| 亚洲综合伊人久久综合| 三级毛片在线免费观看| 亚洲永久中文字幕在线| 最近免费视频中文字幕大全| 亚洲天然素人无码专区| 处破痛哭A√18成年片免费| 亚洲性色AV日韩在线观看| 国产精品亚洲精品日韩已方| 久香草视频在线观看免费| 国产乱子伦片免费观看中字| 亚洲av日韩综合一区久热|