all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Accordion Title problems


Accordion Title problems Kevin B
9/10/2004 11:08:35 PM
flash actionscript: I'm creating an app that loads some XML data into DataGrids within an
Accordion. This works just fine, but I have hard-coded the Accordion label in
the Componant Properties to say "Top Stories (Loading...)" and would like for
it to change once it's done loading.

On frame 1 of the MC I have a listener on my XML Connector that once it's done
loading, it takes the data and loads it into my DataGrid and then has this
folowing line:

_root.MyAccordion.selectedChild.label = "Top Stories";

This doesn't cause any errors, but it doesn't change the label either.

The DataGrid and code are setup as a MC and I have the Linkage set to "Export
for ActionScript".

I created another file to test the line above, but I put it in the first frame
of the root and it worked. I guess I need to figure out how to reference from
the MC properly.

By some more testing, I've learned that I can change the label outside of the
listener, but when I put that line inside of the listener function it doesn't
work. Any ideas?

Thanks!

Re: Accordion Title problems dignan
12/1/2004 12:35:08 AM
AddThis Social Bookmark Button