Change Text Colour Action

image\Action_Attribute_Text_Colour.jpg

The Change Text Colour action allows you to change the colour of the text in a Text object. This action is particularly useful when using Text objects as buttons because you can change the colour of the text as the user moves the mouse over it, as a visual clue.

Note:
This action will change all of the text in a Text object and is often used with a Mouse Over and Mouse Exit trigger.

Setting up the Change Text Colour action:

  1. Add the Change Text Colour action to your trigger, as described in adding actions. The Change Text Colour tab will automatically appear when you add the action.

  2. Click on the name of the Text object in the Text object list that you want to use with this action. Only one Text object can be selected from the list.

  3. Use the New Colour option to select the colour that the selected text will change to when the action is triggered. Click on the down arrow to the right of the New Colour panel to open the drop down colour well and select your colour.

  4. Use the Variable option if you want the value of a variable to change the selected Text object’s colour. If you have not yet created the variable, then click on the New button to open the New Variable dialog.

Note:
The variable must contain one of the following:

(i) a six-digit HTML code – the number is a reference code for web safe colours. For example, white is FFFFFF, green is 00FF00 and black is 000000. The HTML code must be prefixed with a hash symbol (i.e. #), for example, the variable must contain the following value to change the colour to red: #FF0000

(ii) the return value of a RGB script function – this OpusScript function will return a number that evaluates to a colour. The RGB function can be used in a Script object or Script action and the return value saved to a variable – it is the name of the variable that is entered in this option. In the OpusScript Help, search for the term RGB for more information.

(iii) one of the following words – red, green, blue, cyan, yellow, magenta, black or white.

  1. Click on the Apply button to save your changes.

Related Topics:

Introducing the Attribute Actions

the Change Transparency action

Choosing an Action