SetPositionX()

Syntax:

SetPositionX( PosX, Time, Wait )

Parameters:

PosX – the horizontal coordinate of the specified object in pixels. PosX must be an integer. This parameter is required.

Time – the time period in seconds. This parameter is optional. The default value is 0.0 seconds

Wait – Wait for this script command to complete before moving to the next script command, or not to wait. Wait is either true or false. If Wait is true, the script pauses until this animation is completed before continuing to the next line of the script. If Wait is false, the script will process the next line of script immediately. This parameter is optional. The default value is true.

Remarks:

This function moves the specified object horizontally in its frame to a position PosX pixels from the left edge of its container frame (or page if it is not in a frame). The y coordinate is left unchanged by this function. There is also an optional Time parameter.

Note:

The actual motion is dependent upon the parents' frame of reference i.e. if the parent frame is rotated by 45 degrees, then the motion of the specified object would also be rotated by 45 degrees.

image\Script_Button.jpgExamples