PDA

View Full Version : Flash 5 loadVariables into Array



Dravos
February 27th, 2003, 06:54 AM
im using loadVariables to get variables from an asp page

the return string is fine but i cant access variables

so my array is call module
and my return string is module[1]=blah&module[2]=blah

in my debugger it shows module
and the shows module[1] and module[2] as 2 seperate objects from the array
and i cant access the values from module[1] and module[2] even if i rename the to module1 and module2



Help!!!

Thanks

Dravos

Dravos
February 27th, 2003, 07:47 AM
ok i have looked at another thread and XML has been suggested so i have this:


myXML = new XML();
myXML.onLoad = function()
{
trace("----------");
trace(myXML);
trace("----------");
}


this displays


----------
module1=a&module2=b
----------


but where i try
PHP]
myXML = new XML();
myXML.onLoad = function()
{
trace("----------");
trace(this.module1);
trace("----------");
}
[/PHP]

nothing comes up between the lines


can anyone help?