This section desctibes a button object and its proprties, default values of properties for different instances of button object and buttonStyle object.

Structure of section:


List of properties

Property name Type Description
Background
upColor Array Array of numbers for the background gradient color when the mouse is not over the button.
overColor Array Array of numbers for the background gradient color when the mouse is over the button.
downColor Array Array of numbers for the background gradient color when the mouse button is down.
disabledColor Array Array of numbers for the background gradient color when the button is disabled.
Border
borderUpColor Array Array of numbers for the border gradient color when the mouse is not over the button.
borderOverColor Array Array of numbers for the border gradient color when the mouse is over the button.
borderDownColor Array Array of numbers for the border gradient color when the mouse button is down.
disabledBorderColor Array Array of numbers for the border gradient color when the button is disabled.
Text
label* String Gets or sets the text label for the button.
fontName String The name of the font for text in the button.
fontSize uint The size of the font for text in the button.
fontBold Boolean Specifies whether the text is boldface.
fontItalic Boolean Indicates whether text in the button is italicized.
fontUnderline Boolean Indicates whether the text in the button is underlined.
fontColor uint Indicates the color of the text when the button is enabled.
disabledFontColor uint Indicates the color of the text when the button is disabled.
Others
roundUp uint Indicates whether the button have rounded corners. The value should be an unsigned integer  in pixels.
useHandCursor Boolean A Boolean value that indicates whether the pointing hand (hand cursor) appears when the mouse rolls over the button.
visible* Boolean Gets or sets a value that indicates whether the button instance is visible.
enabled* Boolean Gets or sets a value that indicates whether the button can accept user input.
x* uint Gets or sets the x coordinate that represents the position of the button along the x axis.
y* uint Gets or sets the y coordinate that represents the position of the button along the y axis.
width uint Gets or sets the width of the button, in pixels.
height uint Gets or sets the height of the button, in pixels.
* - properties are not supported by buttonsStyle object.


addButton

Description:

Displays a "Browse file" dialog for the user.

List of default values:
Property name Default value
Background
upColor [#fdfdfe, #d7e0e7]
overColor [#fdfdfe, #d7e0e7]
downColor [#6dbdd1, #f4f8fc]
disabledColor [#cccccc]
Border
borderUpColor [#bfced4]
borderOverColor [#6dbdd1]
borderDownColor [#6dbdd1]
disabledBorderColor [#8ca2b2]
Text
label "Add"
fontName "_sans"
fontSize 12
fontBold false
fontItalic false
fontUnderline false
fontColor #000000
disabledFontColor #7e7e7e
Others
roundUp 3
useHandCursor true
visible true
enabled true
x 10
y 27
width 80
height 23


Description of appropriate property you can find here Properties of button object.


Examples:

The property of the addButton is assigned via flashvars object of SWFObject on the html page:

flashvars["view.addButton.upColor"] = "#fdfdfe|#d7e0e7";



removeButton

Description:

Removes selected items from the file list.

List of default values:
Property name Default value
Background
upColor [#fdfdfe, #d7e0e7]
overColor [#fdfdfe, #d7e0e7]
downColor [#6dbdd1, #f4f8fc]
disabledColor [#cccccc]
Border
borderUpColor [#bfced4]
borderOverColor [#6dbdd1]
borderDownColor [#6dbdd1]
disabledBorderColor [#8ca2b2]
Text
label "Remove"
fontName "_sans"
fontSize 12
fontBold false
fontItalic false
fontUnderline false
fontColor #000000
disabledFontColor #7e7e7e
Others
roundUp 3
useHandCursor true
visible true
enabled false
x 105
y 27
width 80
height 23


Description of appropriate property you can find here Properties of button object.


Examples:

The property of the removeButton is assigned via flashvars object of SWFObject on the html page:

flashvars["view.removeButton.upColor"] = "#fdfdfe|#d7e0e7";



clearButton

Description:

Removes all items from the file list.

List of default values:
Property name Default value
Background
upColor [#fdfdfe, #d7e0e7]
overColor [#fdfdfe, #d7e0e7]
downColor [#6dbdd1, #f4f8fc]
disabledColor [#cccccc]
Border
borderUpColor [#bfced4]
borderOverColor [#6dbdd1]
borderDownColor [#6dbdd1]
disabledBorderColor [#8ca2b2]
Text
label "Clear"
fontName "_sans"
fontSize 12
fontBold false
fontItalic false
fontUnderline false
fontColor #000000
disabledFontColor #7e7e7e
Others
roundUp 3
useHandCursor true
visible true
enabled false
x 309 **
y 27
width 80
height 23
** - property has above value when a size of the EAFlashUpload object on the page is 400x350. In other cases the value is changed due to auto resizing.

Description of appropriate property you can find here Properties of button object.


Examples:

The property of the clearButton is assigned via flashvars object of SWFObject on the html page:

flashvars["view.clearButton.upColor"] = "#fdfdfe|#d7e0e7";



uploadButton

Description:

Initiates an upload operation.

List of default values:
Property name Default value
Background
upColor [#fdfdfe, #d7e0e7]
overColor [#fdfdfe, #d7e0e7]
downColor [#6dbdd1, #f4f8fc]
disabledColor [#cccccc]
Border
borderUpColor [#bfced4]
borderOverColor [#6dbdd1]
borderDownColor [#6dbdd1]
disabledBorderColor [#8ca2b2]
Text
label "Upload"
fontName "_sans"
fontSize 12
fontBold false
fontItalic false
fontUnderline false
fontColor #000000
disabledFontColor #7e7e7e
Others
roundUp 3
useHandCursor true
visible true
enabled false
x 309 **
y 274 **
width 80
height 23
** - property has above value when a size of the EAFlashUpload object on the page is 400x350. In other cases the value is changed due to auto resizing.

Description of appropriate property you can find here Properties of button object.


Examples:

The property of the uploadButton is assigned via flashvars object of SWFObject on the html page:

flashvars["view.uploadButton.upColor"] = "#fdfdfe|#d7e0e7";



cancelButton

Description:

Cancels an upload operation.

List of default values:
Property name Default value
Background
upColor [#fdfdfe, #d7e0e7]
overColor [#fdfdfe, #d7e0e7]
downColor [#6dbdd1, #f4f8fc]
disabledColor [#cccccc]
Border
borderUpColor [#bfced4]
borderOverColor [#6dbdd1]
borderDownColor [#6dbdd1]
disabledBorderColor [#8ca2b2]
Text
label "Upload"
fontName "_sans"
fontSize 12
fontBold false
fontItalic false
fontUnderline false
fontColor #000000
disabledFontColor #7e7e7e
Others
roundUp 3
useHandCursor true
visible false
enabled false
x 309 **
y 274 **
width 80
height 23
** - property has above value when a size of the EAFlashUpload object on the page is 400x350. In other cases the value is changed due to auto resizing.

Description of appropriate property you can find here Properties of button object.


Examples:

The property of the cancelButton is assigned via flashvars object of SWFObject on the html page:

flashvars["view.cancelButton.upColor"] = "#fdfdfe|#d7e0e7";



buttonsStyle

Description:

The buttonsStyle is a setter object for instances of the button object. It has the same properties as the button object with a small difference they are have a setters only. So, you will not be able to retrieve value of buttonsStyle object property, you should retrieve the property of appropriate button object instead. Description of appropriate property you can find here Properties of button object. Marked with * symbol properties are not supported by the buttonsStyle.

With buttonsStyle you can apply a specific value for all instances of button object such as addButton, removeButton, clearButton, uploadButton, cancelButton.


Examples:

The "upColor" property is set for all button instances via flashvars object of SWFObject on the html page:

flashvars["view.buttonsStyle.upColor"] = "#fdfdfe|#d7e0e7";