[haXe] Bug/Flash misbehaviour?

Nicolas Cannasse ncannasse at motion-twin.com
Fri Aug 10 19:50:23 CEST 2007


> Running a swf calling
> 
> haxe.remoting.FlashJsConnection.flashConnect("anything")
> 
> gives
> 
> SecurityError: Error #2060: Security sandbox violation:
> ExternalInterface caller file X cannot access file X
> 
> Actually, this is a major WTF - why can't a file access itself? Can I
> somehow set a "security policy" or make the flash player ignore its own
> stupidity? Anything?

Unless you turn off the security policy for this SWF or directory, I'm 
not sure it's possible to do something.

> Btw, this is just to get some sort of trace working. Why does "trace"
> not call the default flash trace which outputs to flashlog.txt? At least
> that works...

Try using either haxe.Firebug.redirectTraces() or flash.Lib.trace

Nicolas



More information about the Haxe mailing list