Tree component children displays [Object, Object] need help displaying the names :)

hey guys... i've run into yet another problem...
i have a tree component that gets its data from a httpservice.. xml file.
i then pasrse thru the recieved xml to create a dataprovider for the tree component. the code for that is below...
<mx:Tree id="tree" dataProvider="{treeData2}" showRoot="false" width="50%" height="100%" />
[Bindable] public var treeData2:ArrayCollection = new ArrayCollection;
[Bindable] public var treeData:Object;
public var resultArr:Object;
public function initNavTab():void{
    var navService:HTTPService = new HTTPService();
    navService.url = "http://www.apxalarm.com/pages/getnav";
    navService.method = "POST";
    navService.useProxy = false;
    navService.resultFormat = "e4x";
    //navService.resultFormat = "array";
    navService.addEventListener(ResultEvent.RESULT, returnNavData);
    navService.addEventListener(FaultEvent.FAULT, navDataFault);
    navService.send();
public function returnNavData(event:ResultEvent):void{
    navData = event.result;
    //resultArr = event.result;
    Alert.show("load complete");
    tree_labelFunc(navData);
public function navDataFault(event:FaultEvent):void{
    Alert.show(event.fault.faultDetail);
public function tree_labelFunc(item:Object):void{
    var node:XML = XML(item);
    var nav:XMLList = new XMLList();
    nav = node.sections;
    var i:Number = 0;
    for each (var section:XML in nav.section){
        var obj:Object = new Object();
        obj.label = section.name;
        obj.urlName = section.urlName;
        obj.children = new ArrayCollection;
            for each(var nav1:XML in section.navs.nav){
                obj.children.addItem([{label: nav1.name}]);
        treeData2.addItem(obj);
the tree_labelFunc parces thru the xml and creates the appropriate structure i need to be displayed in the tree component... but unfortunately the children of the tree component only shows [Object, Object]
can someone show me how to display the labels instead of the Object???
thank you soo much in advace guys!!! i really appretiate it!!!
oh and this is part of the xml that it is pulling
<siteMap>
  <sections>
    <section>
      <name>About APX</name>
      <urlName>about</urlName>
      <position>1</position>
      <defaultaction>/about/mission</defaultaction>
      <navs>
        <nav>
          <name>Our Mission</name>
          <urlName>mission</urlName>
          <position>1</position>
          <defaultaction>13</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Links</name>
          <urlName>links</urlName>
          <position>4</position>
          <subNavs>
            <nav>
              <name>iamapx.com</name>
              <urlName>iamapx</urlName>
              <position>1</position>
              <defaultaction>http://www.iamapx.com</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>apxgivesback.com</name>
              <urlName>agb</urlName>
              <position>2</position>
              <defaultaction>http://www.apxgivesback.com</defaultaction>
              <subNavs/>
            </nav>
          </subNavs>
        </nav>
        <nav>
          <name>Newsletter</name>
          <urlName>newsletter</urlName>
          <position>3</position>
          <defaultaction>37</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
    <section>
    </section>
    <section>
    </section>
    <section>
    </section>
    <section>
    </section>
    <section>
    </section>
  </sections>
</siteMap>
i need the name tags in the xml to be displayed in the tree component....
again thank you soo much in advace for your help!!

thank you soo much for your quick responce alex!!
the toXMLString is exactly like the xml
<siteMap>
  <sections>
    <section>
      <name>About APX</name>
      <urlName>about</urlName>
      <position>1</position>
      <defaultaction>/about/mission</defaultaction>
      <navs>
        <nav>
          <name>Our Mission</name>
          <urlName>mission</urlName>
          <position>1</position>
          <defaultaction>13</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Links</name>
          <urlName>links</urlName>
          <position>4</position>
          <subNavs>
            <nav>
              <name>iamapx.com</name>
              <urlName>iamapx</urlName>
              <position>1</position>
              <defaultaction>http://www.iamapx.com</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>apxgivesback.com</name>
              <urlName>agb</urlName>
              <position>2</position>
              <defaultaction>http://www.apxgivesback.com</defaultaction>
              <subNavs/>
            </nav>
          </subNavs>
        </nav>
        <nav>
          <name>Newsletter</name>
          <urlName>newsletter</urlName>
          <position>3</position>
          <defaultaction>37</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
    <section>
      <name>APX Security Systems</name>
      <urlName>apxsystems</urlName>
      <position>2</position>
      <defaultaction>/apxsystems/systems/products</defaultaction>
      <navs>
        <nav>
          <name>Service Areas</name>
          <urlName>serviceareas</urlName>
          <position>1</position>
          <defaultaction>25</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Systems</name>
          <urlName>systems</urlName>
          <position>2</position>
          <defaultaction>27</defaultaction>
          <subNavs>
            <nav>
              <name>Get A System</name>
              <urlName>get</urlName>
              <position>2</position>
              <defaultaction>27</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Browse Products</name>
              <urlName>products</urlName>
              <position>1</position>
              <defaultaction>28</defaultaction>
              <subNavs/>
            </nav>
            <nav>
              <name>Refer A Friend</name>
              <urlName>refer</urlName>
              <position>3</position>
              <defaultaction>38</defaultaction>
              <subNavs/>
            </nav>
          </subNavs>
        </nav>
      </navs>
    </section>
    <section>
      <name>Customer Support</name>
      <urlName>support</urlName>
      <position>3</position>
      <defaultaction>/support/specialist</defaultaction>
      <navs>
        <nav>
          <name>Technical Support</name>
          <urlName>tech</urlName>
          <position>2</position>
          <defaultaction>32</defaultaction>
          <subNavs>
            <nav>
              <name>Troubleshooting</name>
              <urlName>troubleshooting</urlName>
              <position>2</position>
              <defaultaction>32</defaultaction>
              <subNavs/>
            </nav>
          </subNavs>
        </nav>
        <nav>
          <name>Speak To A Specialist</name>
          <urlName>specialist</urlName>
          <position>1</position>
          <defaultaction>30</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Move Options</name>
          <urlName>moves</urlName>
          <position>3</position>
          <defaultaction>35</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
    <section>
      <name>Home Safety</name>
      <urlName>safety</urlName>
      <position>4</position>
      <defaultaction>/safety/outside</defaultaction>
      <navs>
        <nav>
          <name>Indoor Tips</name>
          <urlName>inside</urlName>
          <position>1</position>
          <defaultaction>17</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Outdoor Tips</name>
          <urlName>outside</urlName>
          <position>2</position>
          <defaultaction>18</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
    <section>
      <name>Customer Stories</name>
      <urlName>stories</urlName>
      <position>5</position>
      <defaultaction>/stories/videos</defaultaction>
      <navs>
        <nav>
          <name>Videos</name>
          <urlName>videos</urlName>
          <position>3</position>
          <defaultaction>15</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Read Stories</name>
          <urlName>read</urlName>
          <position>1</position>
          <defaultaction>19</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Tell Your Story</name>
          <urlName>tell</urlName>
          <position>2</position>
          <defaultaction>20</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
    <section>
      <name>Newsroom</name>
      <urlName>press</urlName>
      <position>6</position>
      <defaultaction>/press/compprofile</defaultaction>
      <navs>
        <nav>
          <name>Press Releases</name>
          <urlName>pr</urlName>
          <position>2</position>
          <defaultaction>21</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Media Kit</name>
          <urlName>media</urlName>
          <position>3</position>
          <defaultaction>22</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Company Profile</name>
          <urlName>compprofile</urlName>
          <position>1</position>
          <defaultaction>34</defaultaction>
          <subNavs/>
        </nav>
        <nav>
          <name>Contact Us</name>
          <urlName>contact</urlName>
          <position>4</position>
          <defaultaction>39</defaultaction>
          <subNavs/>
        </nav>
      </navs>
    </section>
  </sections>
</siteMap>
i need to subNavs to be available within the tree dropdown...

Similar Messages

  • I need help with the name of something

    You know when you go to a concert or live event and their are multi cameras which are being controlled by some system where like in FCP where they have the Multi Cam option where you just choose which camera you want to go live too? Anyway someone wanted me to record an event tonight where they said there are 8 plasma tvs and he wants me going around and getting footage that will display live on this TV! I kind of want to tell this guy that this is a very expensive thing to do I just dont know what the name of it is called when you have multiple cameras and you are controlling the cameras from a editing system..

    Sounds like to me you're talking about a SWITCHER. Basically, all the video sources (cameras) would be fed into the switching device. Then you use the switcher's control surface to cut/dissolve/star wipe, etc. between the incoming sources. The final output is routed to some type of capture/recording device.
    It's like editing, LIVE, with no "undo" buttons. However you switch things ends up on the "master".

  • Need help identifying the name of a game from Macintosh Performa days.

    Sorry to re-post this question. Had two questions in the previous post and got overly excited and hit solve prematurely. You deserve it though, Neil! Here was the second question I was hoping to get an answer for--
    "Game 2: This one is harder to recall details for. It was basically a compilation of mini games, I think. It took place in what was a carnival, I specifically remember it being a midway. Pretty sure skiball was involved. There was also a beach scene at night for some reason.
    I know this isn't much to go on. However, any help would be greatly appreciated!"

    Browse the titles at Macintosh Garden, http://macintoshgarden.org/all. Maybe something will ring a bell. Perhaps http://macintoshgarden.org/games/at-the-carnival ?

  • I know the name of an object - how do I get the name of the object that contains it?

    If I have a Movieclip, I can trace the name of the Movieclip
    that contains it using the _parent property.
    With a generic object, is there a way to trace the name of
    the object that contains it?
    Please, please tell me - this will be a huge help.
    Thanks

    Thanks for these comments - my problem isn't with MovieClips.
    I need to know if there is something which is the generic Objects
    equivalent to the MovieClips _parent property.
    Here's some code that hopefully will help explain further:
    class MyClass extends Object {
    var myObject:Object;
    function MyClass (){
    myFirstObject = new Object();
    myFirstObject.theParent = this;
    private function getNameOfParent(p_object:Object){
    // Some code to return the name of the object that contains
    p_object
    trace(p_object.__proto__); // Output: [object Object]
    trace(p_object._parent); // Output: undefined
    trace(p_object.theParent); // Output: [object Object]
    return ???
    public function doSomething(p_num:Number){
    var parentName = getNameOfParent(myObject);
    // do some more action...
    Timeline code:
    var myClass1 = new MyClass();
    myClass1.doSomething();

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • HT5361 MacMail has stopped noting when I have read an email.  For example, I had 17 unread messages, so I read them.  Despite me having read them AND deleted them, the inbox still has 17 new messages displayed.  Can anyone help resolve the incorrect displ

    MacMail has stopped noting when I have read an email.  For example, I had 17 unread messages, so I read them.  Despite me having read them AND deleted them, the inbox still has 17 new messages displayed.  Can anyone help resolve the incorrect display?

    Lord K.  Thank you. Yes I am within the 90 time period, however I travel Intertionally and I can not receive not make a call to Apple. I was just at the Genius Bar in Chicago and they said, don't worry about it.  It just floats out there, however, I can not recover my messages on a flash drive. I need to go back to my old computer which I don't have with me.  My messages were in folders for a lawsuit.  It is going to take an incredible amount of work for me to, you have no Idea.  We are talking thousands of pages!  I the defendent will have them during discovery so I am not so worried.  However, I can not bring them to him on a Flashdrive when I meet with him without an extraordinary amount of presssure on my part.  THis is not just some little email issue. This is suing EXPEDIA and Tripadviosr.com

  • I just created an iCloud email and I want to use that email for my iTunes account as well. I need help suiting the old apple I'd because I do not remember anything associated with that email and I don't know the security questions

    I just created an iCloud email and I want to use that email for my iTunes account as well. I need help switching the old apple ID because I do not remember anything associated with that email and I don't know the security questions or the login for that old email.

    You cannot do that.  The AppleID you used to create the iCloud account is an active primary email address.  The email address you created with the iCloud account is also an active primary email address (all Apple domain email address automatically become AppleIDs as well).  You cannot replace the primary email address on one active AppleID with the primary email address on another, active AppleID.
    You can use your iCloud email/AppleID with iTunes, but it will be a separate account, so all your previous purchases remain tied to the other AppleID you have.
    I don't understand your statement that you could not remeber your old AppleID password, as you would have had to use it to create the iCloud account in the first place (the first step of creating the iCloud account required you to login with your existing AppleID and password)?

  • Need help with the Vibrance adjustment in Photoshop CC 2014.

    Need help with the Vibrance adjustment in Photoshop CC 2014.
    Anytime I select Vibrance to adjust the color of an image. The whole image turns Pink in the highlights when the slider is moved from "0" to - or + in value.  Can the Vibrance tool be reset to prevent this from happening? When this happens I cn not make adjustments...just turns Pink.
    Thanks,
    GD

    Thank you for your reply. 
    Yes, that does reset to “0” and the Pink does disappear.
    But as soon as I move the slider +1 or -1 or higher the image turns Pink in all of the highlights again, rather than adjusting the overall color.
    GD
    Guy Diehl  web: www.guydiehl.com | email: [email protected]

  • I need help with the iPad Remote app to connect to apple TV 2

    I need help with the iPad Remote app to connect to apple TV 2 I have the app already on my ipad and when I open it only shows my itunes library and not the small black Apple TV 2 icon! How do i fix this and i know it's something 

    Get the manual at http://manuals.info.apple.com/en_US/AppleTV_SetupGuide.pdf
     Cheers, Tom

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work.
    thanks

    What router are you using?  Almost all Linksys routers use 192.168.1.1 as the default local IP address, but there is at least one that uses 192.168.16.1 , namely the WTR54GS  (not the WRT54GS).
    You need to try again to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank (note: a few Linksys routers have a default user name of "admin" (with no quotes)), and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is dead.
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 01-21-2008 04:40 AM

  • I need help proving the date tag on a photo stored in my iPhoto is from the date it was sent to my iphone/date it was imported into iphoto - and that it is NOT the date the photo was actually taken.  Please help!

    I need help proving the date tag on a photo stored in my iPhoto is from the date it was sent to my iphone/date it was imported into iphoto - and that it is NOT the date the photo was actually taken.   I recieved a photo via text on my iphone and then I synced my iphone to my macbook and now it is in iphoto.  I already know that the date on the photo per the tag that shows up on it in iphoto is NOT the date the photo was actually taken.  I need article or literature or something confirming the tag is from when it was sent to the iphone and/or when it was imported.  I greatly appreciate some assistance!

    All I am trying to do is find something on a forum board or article etc stating that the the date showing in iphoto could be the date it was imported or synced or sent to me and not the actual date taken.
    The date on the photo could be anything because you can edit the date with iPhoto or any of 100 apps, free and paid for. So, the date on the photo will prove nothing, I'm afraid.
    Regards
    TD

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • I need help with the photo stream. Everytime I try to open it on my PC it says photo stream is unable and I have tried everuthing to enable it but it doesn't work. Any help, please?

    I need help with the photo stream. Everytime I try to open it on my PC it says photo stream is unable and I have tried everuthing to enable it but it doesn't work. Any help, please?

    Freezing, or crashing?
    ID on the Mac can produce reports that may (or may not) prove helpful in diagnosing the problem. I suspect this is something not directly related to InDesign, and maybe not to any of the Adobe apps directly since you seem to be having a problem in more than one. That often inidcates a problem at the system level.
    Nevertheless, it won't hurt to try to gather the reports. You'll find driections for how to generate them, and to post them on Pastebin.com (then put a link to them here) so we can see what's going on at Adobe Forums: InDesign CS5.5 Not Responding
    Do you happen to run a font manager? If so, which one, and waht version?

  • Need help with the session state value items.

    I need help with the session state value items.
    Trigger is created (on After delete, insert action) on table A.
    When insert in table B at least one row, then trigger update value to 'Y'
    in table A.
    When delete all rows from a table B,, then trigger update value to 'N'
    in table A.
    In detail report changes are visible, but the trigger replacement value is not set in session value.
    How can I implement this?

    You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
    For example
    SELECT YN_COLUMN
    FROM My_TABLE
    INTO My_Page_Item
    WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
    If the value is showing in a report, make sure the report refreshes on reload of the page.
    Edited by: Bob37 on Dec 6, 2011 10:36 AM

  • Need help on the below query.

    Hi All,
    I've a query given below..
    SELECT W.WONUM,
         W.STATUS,
         WS.CHANGEDATE,
         EH.OLD_RATE
         FROM
         WORKORDER W,
         WOSTATUS WS,
         ESTIMATE_HEADER@GQMFOF EH
    WHERE WS.CHANGEDATE BETWEEN '01-Oct-2009' AND '1-Nov-2009'
    AND W.WONUM = WS.WONUM
    AND EH.OLD_RATE = 'N'
    AND WS.WOSTATUS = 'CLOSE';
    I would like to get All the data which status =closed in the month of Oct for Old rate,
    So for this i am writing the query above. But not getting the o/p.
    It is giving me that " Table/View doesn't exist.
    There 2 schemas MAXIMO,GQMMGR..
    DBlinks are GQMFOF,MAXFOFNC..
    Can anyone help me while writing the above query...
    Regards,
    gr.

    A question was asked in your other thread. But the problem was you dint care to give an answer.
    Dont open duplicate post.
    I need help on the below problem..

  • Need help regarding the location of Exchange 2013 Logs for parsing

    Hi, I am trying to create reports based on the logs that are created on my exchange server. I am using
    exchange 2013. My problem is that I cannot handle every log, and instead want specific types of logs.
    I need help finding the specific locations of the following types of logs (If they even exist), so that I can parse them and use them effectively:
    Audit Logs (Mailbox logons, Mailbox permission changes, Mailbox property changes,
    Exchange store changes)
    Mail Report Logs (Mailbox size and growth, Mailbox storage growth, Enabled users, Expired and Soon-to-Expire Mailboxes)
    Exchange Traffic Reports (Details on size and amount of messages sent and recieved, Internet traffic [to and from], Traffic between exchange users)
    I understand this might sound like a huge undertaking, but any help that can be provided would be appreciated.
    Again, I need information on the locations of these types of logs on the exchange server, so that I can parse them. Collecting them all and searching through them is not practical for my available resources.
    Thanks,
    Matt

    Audit Logs (Mailbox logons, Mailbox permission
    changes, Mailbox property changes, Exchange
    store changes) ---- these are two type of logs, 1. mailbox audit logs and that is stored in each mailbox under dumpster
    http://technet.microsoft.com/en-us/library/ff461930(v=exchg.150).aspx however you need to
    enable
    it for individual mailboxes... 2. admin audit log, this is stored into a system mailbox dumpster.... http://technet.microsoft.com/en-us/library/dd335052(v=exchg.141).aspx
    Mail Report Logs (Mailbox size and growth, Mailbox
    storage growth, Enabled users, Expired and Soon-to-Expire Mailboxes) ---- there isn't any specific log for this, you would need to create some time of script to collect this every day for you and store it somewhere... This is a good start... http://www.stevieg.org/2011/06/exchange-environment-report/
    Exchange Traffic Reports (Details on size and
    amount of messages sent and recieved, Internet traffic [to and from], Traffic between exchange users) ----- This you can get from message tracking log... http://technet.microsoft.com/en-us/library/bb124375(v=exchg.150).aspx

Maybe you are looking for