PDA

View Full Version : How to replicate LoadVars() in Flash 5 ???


nightwing79
04-19-2003, 06:33 AM
Hi!

I want to do a POST from within Flash to a URL which then returns me a set of values but not in the Flash required format (i.e. var1=value1&var2=value2 ... I get the set of returned values in the following format [ ]var1 = value1 \n\r var2 = value2 \n\r ...

I was trying to read the returned values into flash as a block of text and then later use misc. functions to parse and retrieve the values. I believe I can read the returned values into flash using the LoadVars() function.

But my problem is that I have to do this in Flash 5 (which doesn't support the LoadVars() function)

Is there any way I can achieve the desired results in Flash 5

Thanks and regards
Nightwing :)

CyanBlue
04-19-2003, 06:55 AM
Howdy and Welcome... ;)

Are you actually looking for a way to create the onData handler that loads raw data into Flash??? Is that the main thing you are trying to achieve???

If that is the case, I don't think it is possible in F5... (Maybe I just don't know how, but there might be ways of doing it...)me a set of values but not in the Flash required formatThere is no way you can change the code on that matter??? :(

nightwing79
04-19-2003, 07:20 AM
Thanks Cyanblue,

Yes, I want to be able to load raw data into Flash 5.

When I do my POST from Flash I am being returned values in the following format.

[ ]var1 = value1 \n\r var2 = value2 \n\r and so on

Flash 5 Load Variables just fails to read these values because of the [ ] at the start.

I have no control over the O/P generated by the server so I wanted to know if there is a way in Flash 5 to read the entire text as a single block .. much like what Load Vars() does in Flash MX

Appreciate all the help :)

Regards
Prateek