Send array via flashvars

Hi,

I’ve got a little problem that is likely to be dead simple but it’s been one of those days…

I had a menu that was driven by an XML file, it parsed the XML nodes into an array and then looped though to make the menu items up… only thing is now need to remove the XML part and run it from just the array. That on its own is no problem if I write the Array inside flash but I need to send the array from the page using the flash vars thing.

I had this working find for the XML file since I was using a dynamic location string for the xml file (masterpages etc in ASP.NET needed to have the location to always be from the applications root). Only thing is now I don’t know how to send an array to the flash file from the page.

I am using the SWFObject 1.5 code which worked for the xml location string.

any one help on how I can get a load of text data into flash to form an array?

Thanks in advance