Ralf Bokelberg wrote:
> I tried something similar to Aral. I have two questions:
> 1. Is this the intended way to create a entry point?
Nothing is done right now for that, so the only was to do it to create
an instance of some class in a static variable.
Other possibilities that I'm thinking about are MTASC -main style and
maybe also extending MovieClip like Aral is doing. Not decided yet. If
you have suggestions I'm open.
> 2. Shouldn't the assignment of enterFrame automatically create a
> delegate? Doesn't seem to be the case right now, because i is unknown
> inside onEnterFrame.
It will... in another release :) There will be true closures in haXe,
just like AS3 but working with Flash Player <= 8. it's not yet
implemented (still alpha) so you need to use a local function and a "me"
local for now :
var me = this;
Boot.current.onEnterFrame = function() { me.onEnterFrame() };
Nicolas
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org