• TypeError: Error #1007: Instantiation attempted on a non-constructor

    TypeError: Error #1007: Instantiation attempted on a non-constructor. If you see this error without any obvious reason it might be one more bug of Flash Player. Flash Player doesn’t allow to instantiate internal classes in static section. Brief example:

    The only workaround – to move instantiation of B somewhere else. For example, in constructor of A:

  • describeType versus Object.prototype

    I discovered that describeType fails if you defined a methods in Object.prototype

    An example:

    This code produces exception:

    TypeError: Error #1010: A term is undefined and has no properties.

    Unfortunately I didn’t find any solution to fix it. Just try to not use Object.prototype .