[CS5.0, ActionScript]
There are instances in which I want to change a Line's content, but the current content contains an "Anchored Object Marker" (the Unicode "Object Recplacement Character" - 65532). In the debugger, that char is displayed as the tiny letters "obj" between two lines.
For example, if a TextFrame contains an anchored TextFrame, then when I retrieve OuterTextFrame.lines.item(0).contents, I recieve the Anchored Object Marker char together with the text of the first line, because the Anchored Object Marker marks the placement of the anchored TextFrame.
The problem is, that if I perform any change on the OuterTextFrame.lines.item(0).contents, the anchored textFrame dissapears - even if I make sure that I put an Anchored Object Marker at the start of the new contents.
Even OuterTextFrame.lines.item(0).contents = OuterTextFrame.lines.item(0).contents causes the anchored TextFrame to dissapear.
My question - how can I change the text in the first line in the TextFrame, without it making the anchored TextFrame dissapear.
TIA,
mlavie