[haXe] local security and firebug

Michael Barry mike.barry at gmail.com
Fri Jul 6 13:23:29 CEST 2007


Ok I figured it out.  Although I do not completely understand why.
I was executing my swf through my local apache web server. 
http://localhost/test.swf

Neither the trust directory or the settings manager changes would work 
when I accessed the swf using localhost.
However if I use the file:/// protocol it works.

Thank you for the help.
-Mike

Nicolas Cannasse wrote:
>> Hello,
>>
>> I have been trying to take advantage of the firebug logging without 
>> success due to security restrictions. (because of URLLoader)
>> After reading up on Flash 8/9's security model I learned that the 
>> generated swf file is required to be in the local-trusted sandbox in 
>> order for javascript:console.log to work.
>>
>> According to the flash documentation there are 3 ways to enable the 
>> local-trusted sandbox.
>> 1.) create a FlashPlayerTrust directory that has a config file that 
>> contains a path to your swf file
>> 2.) use the "Settings Manager" to change security settings
>
> 2) works for me.
>
> Let's say your SWF is in D:\myproject\test.swf, all you have to do is 
> to add this path to Security Manager (with "always accept"). You also 
> add D:\myrpoject or D:\ to enable every swf in this directory/drive.
>
> Nicolas
>



More information about the Haxe mailing list