1 Reply Latest reply on Jul 3, 2010 4:36 PM by cayennecode

    Child BaseClass objects cannot share same name

    cayennecode Level 1

      On stage I have 2 objects on stage that share the base-class of "ABaseClass".

       

      Each has a child object that shares the base-class of "AnotherBaseClass".

       

      They child objects do not share the same parent, and have unique Linkage identifiers of "Object2Design" and "Object1Design", so they should be able to share the same name on the display-list, right?  But if these child objects share the same name I get the following error.  Any suggestions how to allow child objects to share base-classes and names?

       

      TypeError: Error #1034: Type Coercion failed: cannot convert Object2Design@256cfe81 to Object1Design.

      at flash.display::Sprite/constructChildren()

      at flash.display::Sprite()

      at AnotherBaseClass()

      at Object2()

      at flash.display::Sprite/constructChildren()

      at flash.display::Sprite()

      at flash.display::MovieClip()

       

      Example:  http://dl.dropbox.com/u/8727860/BaseClassTest.zip