[haXe] New SWF Linker

Nicolas Cannasse ncannasse at motion-twin.com
Thu Apr 1 17:59:13 CEST 2010


Hi list,

The SVN version of haXe is now capable of handling multiple -swf-lib 
parameters, which required quite a big rewrite of the SWF linker.

Important changes wrt previous versions behavior :

- the feature which allowed to use Flash8/AVM2 SWF in a Flash9 project 
and have haXe automatically create flash.display.MovieClip classes 
corresponding to exported linkage names has been dropped so far. It 
might come back if we found it's actually needed

- with current implementation, AS3 classes found in -swf-lib SWFs have 
priority over the ones (re)defined in haXe code, so you can no longer 
redefine a class which is inside the SWF

- various things might break with preloaders. Let's talk about what 
could be a good way to write preloaders in haXe since it's good time for 
this.

Right now, in order to access AS3 classes located inside the SWF 
libraries, you will still have to declare "extern" haXe stubs. The next 
goal is to have the typer to be able to directly generate the class 
definition from the SWF. This way we will (almost) have SWC input support.

I would be interested in people testing the new SWF linker with their 
projects, and reporting if they have something broken. See attached haxe 
compiler binary for Windows. People which want to test on OSX/Linux can 
build from the SVN version.

Best,
Nicolas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: haxe.zip
Type: application/zip
Size: 727763 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20100401/1477d46e/haxe-0001.zip


More information about the Haxe mailing list