PDA

View Full Version : setIconSymbolName() - Macromedia Tree Component


rseb
05-22-2003, 12:05 PM
Has anyone a clue on how to properly use that method.
The explanations in the Flash Reference are a bit short...

Cheers...

Seb!

freddycodes
05-22-2003, 05:02 PM
Is that the FTree component or some new component distributed with one of the MM DRKs?

rseb
05-23-2003, 08:46 AM
sorry I was refering to the one that can be downloaded from the Macromedia Website, in the Flash UI Component Set 2.

I want to have custom images for my tree nodes and thus it is vital for me to understand how to set(the)IconSymbolName.

I've tried several things but without success... the build in reference was of much help either.

Have you got any ideas on using the method?

Cheers, Seb!

rseb
05-27-2003, 02:11 PM
okay, so I solved it,

the key to this is that if you give a name in setIconSymbolName("foobar"), you have to create a MC with some name and then in the Library under properties set the label to foobar.

Did not know that and tried things like register skin component and setstyle...

Anyways, cheers, Seb!

CoolHandLuke
06-14-2004, 09:07 AM
Hmm.. this is prolly too late a post for this thread, but know how to replace the icons for the tree in MX2004?
I'm trying this :
myTree.setIcon(myTree.getTreeNodeAt(1), "imageIcon");
and nothing seems to happen.

CHL