Skip to main content
Participant
May 3, 2010
Question

loadVariables to load variables

  • May 3, 2010
  • 1 reply
  • 463 views

A set of scripts was developed in pre-MX env and worked fine. In part, some used loadVariables(url, target,method) action to receive a response from that URL and load variables in the target (sorry for the tautology >))

A typical response from the URL would be

"var1=value1\&var2=value2"  string  preceded by a pseudoheader (a must!)  newline "\n"

That response would set _root.var1 to value1 etc in the clip root, for example.

In Player9 (and may be even earlier) it stopped working. The player does NOT, evidently, parse the response to set variables as instructed.

Any thought or idea, please?

A

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 4, 2010

there were no changes in the say loadVariables worked in pre-mx and latter (even fp 9) fp versions.  the major changes that would affect your code were:

1.  case counts after flash-mx

2.  variables not intialized, are undefined after flash-mx

Participant
May 4, 2010

--- kglad ))

kglad
Community Expert
Community Expert
May 4, 2010

?