[haXe] ActionScript with-statement

mawe mawe at typeofundefined.com
Mon Jul 2 00:34:39 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

Is the with statement available within haXe or is there some equivalent 
code I can use to accomplish something like the following?

     with (flash.Lib.current.shapeClip) {
             beginFill(0xFF0000, 100);
             moveTo(0, 0);
             lineTo(100, 0);
             lineTo(100, 100);
             lineTo(0, 100);
             lineTo(0, 0);
             endFill();
         }

Regards
Matthias



More information about the Haxe mailing list