all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

Flash Player version 7 - breaking actionscript


Flash Player version 7 - breaking actionscript chachismo
9/8/2004 11:28:31 PM
flash actionscript: I have an actionscript that uses the loadVariables(URL,VARNAME) command and
worked fine on flash players version 6.9 and below. However, on version 7,
variables are not being loaded. Does anyone know if the syntax has changed? If
so, is the change retroactive to earlier versions of the Flash Player?

You can see the problem by going to www.corio.com/ and waiting for the Corio
Spotlight movie to load (it's the second movie, so you'll need to wait for a
minute). On Flash Players version 4-6.9, the news headlines load without
difficulty. However on version 7 and up, the variables load 'blank', i.e. the
load fails.

Below is the actionscript being used:

loadVariables("http://www.corio.com/flash/news.cfm", header_1);
loadVariables("http://www.corio.com/flash/news.cfm", header_2);
loadVariables("http://www.corio.com/flash/news.cfm", header_3);
loadVariables("http://www.corio.com/flash/news.cfm", header_4);
loadVariables("http://www.corio.com/flash/news.cfm", header_5);
loadVariables("http://www.corio.com/flash/news.cfm", header_6);
loadVariables("http://www.corio.com/flash/news.cfm", urlData_1);
loadVariables("http://www.corio.com/flash/news.cfm", urlData_2);
loadVariables("http://www.corio.com/flash/news.cfm", urlData_3);
loadVariables("http://ww.corio.com/flash/news.cfm", urlData_4);
loadVariables("http://www.corio.com/flash/news.cfm", urlData_5);
loadVariables("http://www.corio.com/flash/news.cfm", urlData_6);

Re: Flash Player version 7 - breaking actionscript SHIFT_nismo
9/9/2004 12:35:35 AM
the behavior changed in Flash Player 7. so now the url must be in exactly the
same domain as the SWF file that is issuing this call. For example, a SWF file
at www.someDomain.com can load data only from sources that are also at
www.someDomain.com. If you want to load data from a different domain, you can
place a cross-domain policy file on the server hosting the SWF file that is
being accessed. For more information, see
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/
wwhelp.htm?context=Flash_MX_2004&file=00001406.html
AddThis Social Bookmark Button