Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to create a bitmap symbol in Library with Linkage ID using AS2?

Avatar of peter-h
peter-hFlag for New Zealand asked on
Web Development SoftwareAdobe Flash
3 Comments1 Solution663 ViewsLast Modified:
Using Actionscript 2, at runtime, how do I create a new bitmap symbol in the Library, complete with Linkage ID?

My aim is to change an icon on the tree component, but have the icon image dynamically created at runtime. Changing the icon is done using:


So you see, I need to reference the new bitmap using the linkageID string.

Due to me using the pre-compiled Flash tree component within macromedia Director MX2004, I have no authoring-time ability to add graphics to the library, but I can pass in a bitmap datatype into the Flash object to modify a graphic. Alternatively, if I could specify an external bitmap when I create the Flash Library image, that would be even better.

Or, in the seemingly unlikely event that a Director developer knows a better way of adding a custom graphic to tree nodes, I'd love to be in on your secret. I've trawled the web for this, and haven't found an answer yet.

At the very least, I need to turn the leaf node icons off. If I use  Tree.setStyle("defaultLeafIcon","")  then no icon appears, but the indenting for that line item gets reset to 0. Using guesswork, I've tried "null", "nullicon", null, etc, but all have the same negative effect on indentation.
So far, all I know of for options for the LinkageID are:  "TreeNodeIcon","TreeFolderClosed" & "TreeFolderOpen". Do you know of any other possible values?

Thanks. Your expert advise is appreciated, as always. :)

addtional keywords: customize customise adobe lingo
Avatar of peter-h
peter-hFlag of New Zealand image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers