[haXe] a haxe extern generator

Niel Drummond niel at cyanescent.co.uk
Sat Feb 17 18:03:43 CET 2007


Julien D wrote:
> Hi,
>
> Regarding Delegate, maybe the problem is related with the use of "apply" ?
>
> Julien.
>
maybe, though if there is a problem, it seems it would be a parameter 
being sent incorrectly to mtasc..

> Nicolas Cannasse a écrit :
>> You need to use "implements" instead ;)
oh ok, my fault. So an extended interface is the same as an implemented 
interface... will correct it.
>>   
>>> I will look to implement this. Unfortunately, if I go this route, the
>>> default extern output will compile, but since actionscript does not
>>> require all parameters, there can be errors in the implementation...
>>>     
>>
>> I was thinking that you were just exporting externs classes ?
>> The AS implementation does not need to be changed.
>>
>>     
I am.  Actually if I leave out optional params, you can call the missing 
actionscript parameters with "null", so you are right, it is better I 
remove optionals. I've uploaded a new version (and fixed a bug with the 
output generator)
>>> myWindow is instantiated and filled with a button, but the
>>> addEventListener is not. the addEventListener will use the Delegate
>>> class which requires the function createEast as its argument. Maybe I am
>>> writing this wrong...
>>>     
>>
>> It's possible that the Delegate is called by using a specific method (?)
>>
>>     
no idea. I'm using a basic tutorial I am rewriting from the aswing site 
on osflash.org: http://osflash.org/jbutton_borderlayout_tutorial so the 
syntax cannot be too different.

from what I gather on the other tutorials I've tried, graphics seem to 
load fine from haxe, but doing anything related to event management does 
not.

regards

- Niel

>> Nicolas
>>
>>   
>
> -- 
>   ___________________________________________________________
>  |                                                           |
>  | Jidé :: Webdesign, Graphisme, PAO, Communication visuelle |
>  |___________________________________________________________|
>  |                                                           |
>  | Julien De Luca (fait parti de la CAE coopaname)           |
>  |                                                           |
>  | téléphone   :: 06 28 04 58 30                             |
>  | site web    :: www.jide.fr                                |
>  | email       :: contact at jide.fr                            |
>  | numéro icq  :: 7266709                                    |
>  |___________________________________________________________|




More information about the Haxe mailing list