2 Replies Latest reply on Nov 26, 2008 1:36 PM by (james_hendrickx)

    [JS CS3]setting properties of inline rectangle

      Hi,

      This doesn't seem to work for somes reason...

      myLibItem = myLib.assets.item("Steunvraag");
      var myIP = myFrame.texts.item(0).insertionPoints.item(-1);
      myLibItem = myLibItem.placeAsset(myIP);
      myLibItem.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;

      So I've placed a library asset in an insertion point - so far so good - but when i want to set properties of the result (a rectangle), I get an error about the object not supporting the method anchoredObjectSettings. I use the same construction elsewhere in the script with a textframe created from scratch, and that works fine.

      Any suggestions?

      thnx