SetDisplayData()

Example 1:

In this example, Image2 is set to move 200 pixels across and 150 pixels down. For an Image object named Image2 use the following syntax:

var DisplayObj = new Object()
DisplayObj.x = 200
DisplayObj.y = 150
Image2.SetDisplayData( DisplayObj )

Example 2:

In the next example, Image2 is going to be set the same properties as Image1 shown in the GetDisplayData function; the new object created for Image1 is named positionInfo. Use the following syntax to set the Image1 properties to Image2

var PositionInfo = Image2.GetDisplayData()
Image2.SetDisplayData( PositionInfo )