This content has been marked as final. Show 3 replies
> Hi, I am new in using Flash Components in Director. I have seen that there
> not a lot of documentation or Help available on How to use Flash
> components in
> Director MX effectively.
I can't help directly with this problem, but my advice in general is to
avoid using Flash Components unless you're an experienced Flash user. I can
recreate most of them from scratch quicker than I can figure out how to make
them behave properly. E.g.: I used to use the Flash Component Buttons,
which were the only one I could figure out how to make respond correctly to
inputs. Then I discovered that their mere presence on the stage intercepted
all keyboard input and prevented Director from even seeing that keys were
being pressed. Replaced all the Flash buttons with either Director-standard
buttons (comparatively dull and flat, but functional) or my own custom
graphics (which I usually do anyhow), and it works perfectly.
The documentation exists, by the way, but it's not in Director - it's in
Flash. If you have any relatively recent version of Flash, you might be
able to figure something out by looking at the documentation for that, but I
still think it's just easier to avoid using them altogether. They seem to
have been included in Director specifically to be used by people who also
know Flash, and if you don't, they're not about to help you figure it out
unless you also purchase that program.
set up a behavior script attached the the tree component and attach the code I have added to this message, now when you select ( not when you click arrow to open a branch ) a folder or file you will get the label of the item selected in the message window. Now you should be able to take that info and create a case statement that you can use to navigate your application.
Also just a note, you can add a data item when you add a tree node like so, addTreeNode("Label", "Data") .Then you can access the data like you do the label in the code I provided except you just use the word data instead of label.
Something like this;