I have a custom object that I need to create instances of and
add to a Canvas in my application.
The problem is the object contains child sprites and
graphics. At the moment, my object extends Sprite, but I cannot add
instances of it to the application as I get
Error #1034: Type Coercion failed (can't convert to
Can anybody give me an example of a class which creates
instances containing a child sprite with graphics, which is added
to a canvas?