3 Replies Latest reply on Jan 7, 2009 5:26 AM by (Dave_Saunders)

    Error in anchored text frame (CS2)

      Hi All,

      I got an error when I run a script which creates anchored text frame with the following code:

      var myLeading = 15.5;
      var myFrameWidth = 192;
      var myY1 = myAnchoredFrame.geometricBounds[0];
      var myX1 = myAnchoredFrame.geometricBounds[1];
      var myY2 = myY1 + myLeading;
      var myX2 = myX1 + myFrameWidth;
      myAnchoredFrame.geometricBounds = [myY1, myX1, myY2, myX2];

      The above mentioned code works good in CS3. But shows error in CS2 as follows:

      Error string: This value would cause one or more objects to leave the pasteboard
      Source: myAnchoredFrame.geometricBounds = [myY1, myX1, myY2, myX2];

      Can anyone help me to rectify the error?