[osflash] Haxe options

Nicolas Cannasse ncannasse at motion-twin.com
Mon May 26 08:06:34 PDT 2008


Nikos Kastellanos a écrit :
> I have a project and I am considering using HAXE but I still have some 
> question about what I can do , and what I can’t do with haxe.
> 
> I would be thankful if somebody could help me.
> 
>  
> 
>  
> 
> -Does HAXE, allow code injection?
> 
> We already have the UI in a fla. I’d like to use flashdevelop and haxe 
> projects doesn’t seems to allow injection. If not, is there any workaround?

haXe supports code injection just like MTASC.
Don't forget to use -swf-lib (SWF Library selection in haxeFD plugin) to 
select your ui.swf

> -What the –debug option is for?
> 
> SWFs compiled with the debug option are bigger, but they don’t seem to 
> do anything when I drop them on the debug version of flash player.
> 
> Those SWF don’t even have the AllowDebug tag. Whatever this options 
> does, is it flash9 only? I assume that for flash8, it should create an 
> SWD, unless I have completely misunderstood it’s purpose.  

In Flash9, it will include debug informations so you will get file+line 
numbers when an exception occur.

In Flash8 it will maintain a stack array that can be accessed through 
haxe.Stack.callStack() and haxe.Stack.exceptionStack(). It will also 
display uncaught exceptions when they occur (using default trace() output).

If you want to use the debugger, it's possible with a Flash9 project by 
compiling with -D fdb . There is no debugger support for Flash8- (= no 
SWD output).

Hope that helps,

Nicolas



More information about the osflash mailing list