dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: tree component icon change

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    8

    tree component icon change

    hi,
    I am trying to change the icon for the tree component- disclosureClosedIcon and disclosureOpenIcon.

    This is the code that I have tried:

    code:

    var myTreeDP = new XML();
    myTreeDP.ignoreWhite = true;
    myTreeDP.load("xml/directory.xml");
    myTreeDP.onLoad = function() {
    myTreeDP = this.firstChild;
    myTree.dataProvider = myTreeDP;

    myTree.setStyle("folderClosedIcon", "plane_closed" );
    myTree.setStyle("folderOpenIcon", "plane_expanded");
    myTree.setStyle("disclosureClosedIcon", "tree_expand_minus");
    myTree.setStyle("disclosureOpenIcon", "tree_expand_plus");
    }



    I have no idea why it won't work.
    IF you have any suggestions, or can spot what I am doing wrong, please help.
    Thanks.

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    Hi,

    That works for me, are you sure you have those 4 items in your library with linkageID's and set to export for actionscript and on the first frame?

    Dunc

  3. #3
    Junior Member
    Join Date
    Jun 2005
    Posts
    8
    Thanks,

    Actually it was just a silly mistake, when I had exported for actionscript, I had chosen exactly the same name for the symbol as the name of the original item.

    Now it works fine, since I changed the name slightly for the symbol!

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