I have a haxe library that I need to compile to JS and AS3. I already have the JS part working fine and can use the exported code as is within node.js. However I have the following problem when compiling to AS-3. The haxe compiler includes the haxe standard library and generates AS3 classes in a default package:
package {
import flash.Boot;
public class List {
...
Now the problem is that I get a ton of ambiguous reference errors:
Error:(101, 0) Ambiguous reference to List
In this case the List class conflicts with the List which is defined as part of the Feathers (Starling) library.
So far I have not found any solution. I was hoping for a compiler flag which could be used to set the default package name, but have not found anything so far.
** EDIT **
The errors while compiling the feathers source which I include in my project. I do not want to modify the feathers source code.
/Users/santiago/Documents/source/frameworks/Feathers/source/feathers/controls/renderers/DefaultListItemRenderer.as
Error:(200, 0) [lib (module cuarenta-lib)]: Ambiguous reference to List
Error:(202, 0) [lib (module cuarenta-lib)]: Ambiguous reference to List
Error:(208, 0) [lib (module cuarenta-lib)]: Ambiguous reference to List
Error:(222, 0) [lib (module cuarenta-lib)]: Ambiguous reference to List
Thanks!