[haXe] ActionScript with-statement
Nicolas Cannasse
ncannasse at motion-twin.com
Mon Jul 2 09:23:33 CEST 2007
> Hello all,
>
> I'm pretty new to haXe, so I don't have a clue yet.
> I intend to use it to get flash things working on my Linux box and the
> experiences I made so far are very good.
>
> But I already stumbled over a minor issue.
>
> I tried using the with-statement in my code, but the compiling gives me
> the following:
>
> ./Test.hx:12: characters 6-15 : Unknown identifier : someMethod
"with" is not available in haXe. You can do the following instead :
var s : flash.MovieClip = flash.Lib.current.shapeClip;
s.beginFill(0xFF0000,100);
s.moveTo(0,0);
...
Nicolas
More information about the Haxe
mailing list