9 Replies Latest reply on Jan 3, 2014 5:48 AM by Laubender

    TextFrame.extractLabel() cannot work with instances of this class

    akiva_atwood Level 1

      I have two functions, each of which get passed a text frame and read the labels of that frame.

      The first uses textframe.contents = "" to erase the text (which is then replaced).

       

      they work fine if I call one -- either one -- but if I call the second AFTER calling the first I get the above error message.

       

      Any ideas what could cause that/how to fix it?

       

      I'm getting the frame by looping through pageItems.

       

      Using CS5

       

      Thanks.