Groups | Blog | Home
all groups > macromedia flash flash remoting > june 2004 >

macromedia flash flash remoting : System.security.loadPolicyFile issues


varmac NO[at]SPAM tmlp.com
6/15/2004 7:19:00 PM
Hi

idf I add the code as suggested in the article @
http://www.macromedia.com/devnet/mx/flash/articles/fplayer_security.html

System.security.loadPolicyFile("http://www.mysite.com/flash/myPolicy.xml");
loadVariablesNum("http://www.mysite.com/flash/vars/myVars.txt",5);

it returns a error in the syntax check:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: There is no method
with the name 'loadPolicyFile'.

System.security.loadPolicyFile("http://www.mysite.com/flash/myPolicy.xml");

Total ActionScript Errors: 1 Reported Errors: 1


What am I doing wrong?
denny1
6/17/2004 2:25:13 PM
I had the same problem until I installed the new Flash Player update.
jamesj3k
3/1/2005 7:14:06 AM
i updated to 7.2 but i am still getting that error even after a system reboot.
Help! The syntax auto-complete knows the method exists and the definition of
the inherint class in correct in my application data folder (user config
files). ???
Evan Zhang
3/7/2005 10:36:45 PM
After upgraded to 7.2. My Flash MX 2004 also keep throwing the "method not
found" error for System.security.loadPolicyFile.
Here is what I did to get rid of the problem:
1. Locate the security.as file at YOUR_FlashMX_DIR\en\First
Run\Classes\System\security.as
2. Resave the file so it has the latest modification date.
3. Exit and Restart your Flash MX 2004. The compiler should now recognise the
new loadPolicyFile method.

If it still doesn't work, do the extra step:
4. comment out the line that define the loadPolicyFile, save security.as
5. Exit and Restart Flash MX 2004.
6. re-enable the line for loadPolicyfile, save security.as
7. Exit and Restart Flash MX 2004.

Hope it helps.

jamesj3k
3/9/2005 9:33:38 PM
AddThis Social Bookmark Button