[haXe] firebug + flash9
Michael Barry
mike.barry at gmail.com
Sun Jul 1 12:36:22 CEST 2007
The problem I have experienced with getURL is that when you do two
traces in the same frame only the last one is displayed, could you
confirm that?
Yes, only the last one displays when there are two traces in the same
frame.
I think that the URLLoader might not be working unless you have disable
local file security, could you check if some exception get thrown.
I tested the code below and if I use URLLoader then nothing is displayed
in Firebug. No exception is throw either.
How do I disable local file security? Or check the security status?
public static function log(v) {
try {
var out = "javascript:console.log('" + v + "')";
var l = new flash.net.URLLoader();
l.addEventListener( "ioError", function(e){} );
l.load(new flash.net.URLRequest(out));
//flash.Lib.getURL(new flash.net.URLRequest(out), "_self");
} catch(e:Dynamic) {
trace(e);
}
}
Nicolas Cannasse wrote:
>> I was having a similar problem with flash9 and firebug except I was
>> not receiving any trace output in the firebug window.
>> I tried the sendToURL solution but it did not work either. I got it
>> to work with getURL.
>
> The problem I have experienced with getURL is that when you do two
> traces in the same frame only the last one is displayed, could you
> confirm that ? I think that the URLLoader might not be working unless
> you have disable local file security, could you check if some
> exception get thrown ?
>
> Nicolas
>
More information about the Haxe
mailing list