dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Tree Component - changing style of opened node

  1. #1
    Registered User
    Join Date
    Nov 2000
    Posts
    122

    Tree Component - changing style of opened node

    Hi.

    I am using the tree component as a navigation system for a site.

    I am expanding the tree onload to a particular node - (for example when the aboutus.html page is loaded, I expand the about us node)

    I do this like so:

    currentPage = myTree.getTreeNodeAt(1).getTreeNodeAt(0).getTreeNo deAt(0);
    myTree.setIsOpen(currentPage, true);

    This works!

    Now I m trying to change the look of this selected node by doing this:

    currentPage.setStyle("color", 0x000000);

    This deonst work...

    Can anyone help?

    Also if anyone knows how to automaticaly close all opened nodes before opening a new one - I would love to know how...

    Thanks

  2. #2
    Registered User
    Join Date
    Nov 2000
    Posts
    122
    Bump !

  3. #3
    Registered User
    Join Date
    Nov 2000
    Posts
    122
    And bumn again...

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center