5.
Click Functions Livecycle functions button To attach a JavaScript script to an object or F10 to display a list of JavaScript functions, select the desired function, and press Enter. Replace the default function syntax notation with your own set of values. Alternatively, you can create your own script manually in the Script Source field of the Script Editor. For example, in the new text field, add the following JavaScript to the Script Source field:
this.border.fill.color.value = “255,0,0″;
See also 

To attach a JavaScript script to an object