all groups > flash (macromedia) > october 2003 >
You're in the

flash (macromedia)

group:

getting variables from another site


getting variables from another site IGTbob
10/6/2003 11:12:11 PM
flash (macromedia):
I recently loaded the Flash Player 7, when I installed Flash MX Professional 2004, and noticed it is causing a problem with a dynamic movie I have.

I have a Flash move located on one site (media.XYZ.com/movie.swf) that requests a string of variables from an .ASP page on another site in the same domain (www.XYZ.com/variables.asp).


Here is the script I have in Frame 2 with a simple loop to check for empty/filled variables:

loadVariables("http://www.XYZ.com/variables.asp", "", "GET");
//trace (varDummy)
if (varDummy == 1) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}

The movie with the above script does NOT work with Flash Player 7, it does with Flash Player 6. I get a Macromedia Flash Player Settings - Security warning saying this is a "potentially insecure operation" - a message I never received with Flash Player 6.
If I place the variables .ASP page on the same site as the movie, with the following script, it works fine in both v.7 and v.6 with no warning messages.

loadVariables("http://media.XYZ.com/variables.asp", "", "GET");
//trace (varDummy)
if (varDummy == 1) {
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}


Here are the real examples...

Accessing variables from OTHER site (warning message in v.7):
http://media.IGT.com/media/Animation/NewJobs2.swf

Accessing variables from SAME site:
http://media.IGT.com/media/Animation/NewJobs.swf


Is there a security setting I should be setting?


Any assistance is much appreciated.

Thanks
-Robert



Re: getting variables from another site urami_
10/7/2003 7:51:06 AM

[quoted text, click to view]

check
http://www.macromedia.com/support/flash/ts/documents/mx_04_emerging_issues.htm

scroll down to :

Flash Player 7 security
issue update: 9/15/03

Regards

urami_*



<lsym>

There's no place like 127.0.0.1

Re: getting variables from another site IGTbob
10/7/2003 3:06:13 PM
Perfect - Thank you!

crossdomain.xml solved everything...

I panicked at first, but this is going to be a very useful security tool...


-Robert

AddThis Social Bookmark Button