1 Reply Latest reply on Oct 1, 2008 9:17 AM by Newsgroup_User

    Tree, setItemIcon

    genek07
      First, sorry for my English.

      It is necessary to make, so that icons for tree nodes, were loaded dynamically.
      I.e. on a site there is a folder with pictures where icons of a tree nodes are stored.
      If to replace pictures on a site with others, changes will automatically be displayed in a tree.

      To set icons I use tree method setItemIcon (item:Object, iconID:Class, iconID2:Class):void
      How to transform a picture on address " http://.../root.gif" to Class?
        • 1. Re: Tree, setItemIcon
          Level 7

          "genek07" <webforumsuser@macromedia.com> wrote in message
          news:gbvbmo$o58$1@forums.macromedia.com...
          > First, sorry for my English.
          >
          > It is necessary to make, so that icons for tree nodes, were loaded
          > dynamically.
          > I.e. on a site there is a folder with pictures where icons of a tree nodes
          > are
          > stored.
          > If to replace pictures on a site with others, changes will automatically
          > be
          > displayed in a tree.
          >
          > To set icons I use tree method setItemIcon (item:Object, iconID:Class,
          > iconID2:Class):void

          > How to transform a picture on address " http://.../root.gif" to Class?

          http://blog.benstucki.net/?p=42