Professional Web Applications Themes

TabNavigator : "hiding" tabs - Macromedia Flex General Discussion

I have a tabnavigator in an app and I was wondering how I can hide tabs depending on user level. I have tired destroyObject() but that leaves a blank tab. Any ideas? Thanks, Michael...

  1. #1

    Default TabNavigator : "hiding" tabs

    I have a tabnavigator in an app and I was wondering how I can hide tabs depending on user level. I have tired destroyObject() but that leaves a blank tab.

    Any ideas?

    Thanks,
    Michael
    heybluez Guest

  2. #2

    Default Re: TabNavigator : "hiding" tabs

    ok... i think i figured it out.

    I am using destroyChildAt() and it seems to work....
    heybluez Guest

  3. #3

    Default Re: TabNavigator : "hiding" tabs

    could you post a code snippet on how to do this? thx!
    DOPEJAM Guest

  4. #4

    Default Re: TabNavigator : "hiding" tabs

    Here you go


    <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
    creationComplete="appInit()">
    <mx:Script>
    function appInit() {
    testNav.destroyChildAt(2);
    }
    </mx:Script>
    <mx:TabNavigator id="testNav" width="100%">
    <mx:HBox label="tab 1">
    <mx:Text text="aaa"/>
    </mx:HBox>
    <mx:HBox label="tab 2">
    <mx:Text text="bbb"/>
    </mx:HBox>
    <mx:HBox label="tab 3">
    <mx:Text text="ccc"/>
    </mx:HBox>
    </mx:TabNavigator>
    </mx:Application>

    Nick_UK Guest

Similar Threads

  1. TabNavigator Not Displaying Tabs
    By jonwillis in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: December 7th, 10:14 PM
  2. TabNavigator tabs not initializing
    By Solerous in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 8th, 06:01 PM
  3. Opening a "minimal" browser / hiding url variables
    By Synner in forum Macromedia ColdFusion
    Replies: 6
    Last Post: May 6th, 09:22 AM
  4. hiding process from "ps" command
    By Kurtis D. Rader in forum UNIX Programming
    Replies: 2
    Last Post: July 28th, 09:22 AM
  5. Hiding "(AutoNumber)" until it is assigned.
    By nick in forum Microsoft Access
    Replies: 3
    Last Post: July 2nd, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139