2 Replies Latest reply on Jan 31, 2008 12:23 AM by atta707

    Custom UI Components

    migthegreek Level 1
      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 mx.core.IUIComponent).

      Can anybody give me an example of a class which creates instances containing a child sprite with graphics, which is added to a canvas?