Hi,
Thank you for your reply.
Are the vector objects within a frame? A number of changes were made to object positioning (including SetPosition() functions) in Service Release 2 which could affect framed objects and you should now find that the positioning of these objects is now calculated from the top-left corner of the frame rather than the page itself.
For example, try inserting a vector object into a frame, then apply an
On Show action to the page followed by the following script action:
Code:
Vector.SetPosition(0,0)
where 'Vector' is the name of your vector object.
Preview the publication and you should notice that the midpoint of the vector is aligned with the top-left corner of the frame, so only the bottom-right quarter of the vector is visible. Before SR2, the vector would have been aligned to the top-left corner of the page and would therefore be completely invisible (unless the frame was positioned in the top-left corner of the publication).
This new method of positioning objects is much more in tune with other application development environments and should make it much easier to visualise and control framed objects.
To correct the positioning of the objects in your imported publication, simply determine the horizontal and vertical co-ordinates of the top-left corner of the frame object, then subtract these from the horizontal and vertical co-ordinates in your CloneObject() function. This should position the cloned objects in respect of the parent frame and correct any alignment issues.
Kind regards,