2 Replies Latest reply on Jan 3, 2013 12:29 PM by mlavie

    CharacterStyle Contains Properties Whose Getters Fail at Runtime

    mlavie Level 1

      For CS5, Actionscript:

       

      I have created some CharacterStyles in a document, and whoch to itterate over them in my Actionscript code, and work with the properties' values.

       

      The problem is that in may of the cases, the properties which interest me, when accessed, throw "Error: Failed to find any class definition for com.adobe.indesign::Enumerator", and the debugger shows for them "<exception thrown by getter>".

       

      I tried accessing them by myCharacterStyle["propertyX"] and testing for null, but that fails, too.

       

      I also tried myCharacterStyle.hasOwnProperty("propertyX"), but that fails because the proxy class doesn't support that method.

       

      Any ideas, aside from the ugly workaround of catching the error?

       

       

      TIA,

      mlavie