1 Reply Latest reply on Jan 21, 2008 8:05 AM by robdillon

    Using Flash Components

    MughalShahzad Level 1
      I am using Tree Component of Flash Mx 8 in Director Version 10.
      I want to get the index or value of node if any one of clicked by the user.

        • 1. Re: Using Flash Components
          robdillon Most Valuable Participant
          You can use a mouse event function in a behavior attached to the Flash sprite that holds the tree component.

          property thisSprite

          on beginSprite me
          thisSprite = me.spriteNum

          on mouseUp me
          put sprite(thisSprite).treeComponentInstanceName.selectedNode.attributes.label
          put sprite(thisSprite).treeComponentInstanceName.selectedIndex

          just plug in the actual name of the component.