;

PDA

Click to See Complete Forum and Search --> : Skinning Tree Component Problem


jgpowerpc
09-06-2007, 04:42 PM
Hi all,

I am trying to skin the tree component i have in my fla file and I have everything set up except for one thing:

I want to disable/get rid of the "scroll track shadow", you know, the track to the right of the bock that shows the tree labels. It is a soft gray shadow and I cannot get rid of it. I tried manually recoloring movie clips in the library and also setting styles in the actionscript. Nothing worked.

Does anyone know how to get rid of that shadow?

bluntmonk40
09-06-2007, 05:53 PM
so, you edited the .fla file for that particular skin? if so, did you then put the .swf in the proper directory?

jgpowerpc
09-06-2007, 09:15 PM
Thanks for responding, but I actually figured it out. I read something somewhere that you need to export the movie clips that contain the assets for the component and make it export in the first frame. I went to Linkage and Export in First Frame. Viola!

But here is my next obstacle...does anyone know if you can make the labels bounce down to the next line if they are too long? I am trying to fit this thing into a layout and some of the link labels are long and get cut off. Any ideas?

bluntmonk40
09-07-2007, 07:17 AM
maybe try label.autoSize or maybe even the string.length property. If string.length is equal some length then, _x = some x value and _y = some y value. Or, get the _x and _y position of the label and if it is too close to the stagewidth, then the new _x = _x-50 or something along those lines.

jgpowerpc
09-07-2007, 03:05 PM
Thanks.

Last question on this subject...I have set up the XML file and I would like to load movies into levels from the links in this tree. Is that possible, and if so, how would I do it? Is it something I can do in the XML file or both that and the flash file?

This basically sits on the left of the page and the links should load movies into a level (2) without launching a new window.

bluntmonk40
09-07-2007, 03:16 PM
Yes, this is definately possible, from the timeline or from the xml document. you would load the nodes that represent your links/swfs into an array and use the array elements as your links. There are several was to do it, a primitive example my be as follows:

var aNodeLinks:Array = new Array()

aNodeLinks[0] = this.(here you insert your node traversing code)
aNodeLinks[1] = this.(here you insert your node traversing code)

Have you used the xml.onLoad method before to do anything like this? Or arrays?