[haXe] flash9 Graphics prototype extending

Boris Bartsyts bartzitz at gmail.com
Tue Feb 27 17:03:14 CET 2007


hello,

i'm new to haxe and i'm stuck with this problem: i need to add some
methods to DisplayObject.Graphics prototype, so it is available in all
instances. in AS3 i can do this:

flash.display.Graphics.dashTo = function(...) {...}

but it doesn't work in Haxe. how could i do it?

Boris






More information about the Haxe mailing list