0 Replies Latest reply on Dec 15, 2011 5:10 AM by MixMastaJames

    Extending Image class and addChild errors

    MixMastaJames Level 1

      I am attempting to extend the Image class to allow us to place highlights over an image that are stored in an XML file. 


      I'm extending the class and adding the highlights to a sprite.  I use the addChild() method to add the sprite to the Image class, but I get the error "addChild() is not available in this class. Instead, use addElement() or modify the skin, if you have one."


      I try to use the addElement but that gives me compile errors..


      anyone have any idea what to do?  I'm trying to copy/paste the class code here, but its not working (no idea how to make it work)