Im loading an ASP file from the Database and the bringing it into flash using LoadVars object. Im trying to create a dynamic menu the asp file looks like this:
&menutxt=ABOUT,CONTACT,PHOTO GALLERY,GUEST BOOK,LINKS,
In flash Im using an Array like this:
dataObj = new LoadVars();
dataObj.onLoad = function(success) {
if (success) {
buttonNames = dataObj.menutxt
buttonNames = new Array();
split(buttonNames, “,”)
i = 0;
while (i < buttonNames.length) {
trace(buttonNames)
i++;
}
dataObj.load(“http://localhost/flashdb/send.asp”);
When I use this code on the Vars Object It will keep the same format:
ABOUT,CONTACT,PHOTO GALLERY,GUEST BOOK,LINKS,
But I just create an array and put the above information in it, It will split and write out correctly.
Can anyone see whats up?