I want to extend display object, add some methods like
display.newAntiAliasCircle
display.newAntiAliasShape
…
Is it possible?
I want to extend display object, add some methods like
display.newAntiAliasCircle
display.newAntiAliasShape
…
Is it possible?
I’m not sure about extending the internal display object itself, but you can certainly extend library functions, like display.newCircle().
If you want to extend lots of functions to add baseline/parent functionality you’ll need to be prepared to do the legwork, because it will involve overriding lots of functions.
I wrote a tutorial on it a while ago:
I’m not sure about extending the internal display object itself, but you can certainly extend library functions, like display.newCircle().
If you want to extend lots of functions to add baseline/parent functionality you’ll need to be prepared to do the legwork, because it will involve overriding lots of functions.
I wrote a tutorial on it a while ago: