Prev: Download from FTP
Next: save
From: MughalShahzad on
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.

Regards,
Shahzad
From: Rob Dillon on
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
end

just plug in the actual name of the component.

 | 
Pages: 1
Prev: Download from FTP
Next: save