SetAlpha()

Syntax:

SetAlpha( Style, Transparency1, Transparency2 )

Parameters:

Style – the name of one of the Alpha styles you can create with this function. Style must be one of the following keywords: None, Horizontal, Vertical, NWSE, NESW, Centre or Circle. This parameter is required. The keyword must be surrounded by quote marks or a variable containing one of the valid keywords.

Transparency1 – a percentage, showing the minimum transparency you want to set on the alpha channel. Transparency1 must be an integer between 0 and 100. This parameter is optional and the default is 0.

Transparency2 – a percentage, showing the maximum transparency you want to set on the alpha channel. Transparency2 must be an integer between 0 and 100. This parameter is optional and the default is 100.

Remarks:

This function allows you to create the Alpha effect for a specified object. There are two methods of using this function:

(i)  Specify an object name – in this method, the Alpha effect will be set on the Normal (i.e. default) Object State.

(ii) Specify a new object created with the GetAppearance function – in this method, the Alpha effect is set for the Object State of the object specified in the GetAppearance function.

Note:
The Alpha effect can be removed using the RemoveAlpha function or in the Effects tab of the object’s Properties dialog.

image\Script_Button.jpgExamples