juxstapose32
07-02-2007, 03:27 PM
I am trying to send data via URLLoader in flash 9 to Firebug by using javascript:console.log("Hello").
In flash it is swf to html operation and will not work under the default security settings (local-file).
So I am trying to make my content local-trusted. Here is my environment and here is what I have done.
I am running on a MAC.
I am viewing my swf locally in Firefox
I am using the flash player debugger version
I placed the test.cfg file in /Library/Application Support/Macromedia/FlashPlayerTrust directory
My test.cfg file has one line..../Users/myuname/Sites/mysite
My html and swf file are located in /Users/myuname/Sites/mysite
My code
var v = "hello?";
var out = "javascript:console.log('" + v + "')";
var l = new flash.net.URLLoader();
l.load(new flash.net.URLRequest(out));
I am getting and the exception Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost/test.swf cannot load data from javascript:console.log('hello?')
How can I get this to work? Has anyone else run into this problem?
Thanks
In flash it is swf to html operation and will not work under the default security settings (local-file).
So I am trying to make my content local-trusted. Here is my environment and here is what I have done.
I am running on a MAC.
I am viewing my swf locally in Firefox
I am using the flash player debugger version
I placed the test.cfg file in /Library/Application Support/Macromedia/FlashPlayerTrust directory
My test.cfg file has one line..../Users/myuname/Sites/mysite
My html and swf file are located in /Users/myuname/Sites/mysite
My code
var v = "hello?";
var out = "javascript:console.log('" + v + "')";
var l = new flash.net.URLLoader();
l.load(new flash.net.URLRequest(out));
I am getting and the exception Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://localhost/test.swf cannot load data from javascript:console.log('hello?')
How can I get this to work? Has anyone else run into this problem?
Thanks