opacity([opacity])

Class: MediaPlayer. Method inherited from UIComponent.

Description:

Sets or gets component opacity. Only valid for Window, Panel, and few more components.

Parameters:

Name Type Description

[opacity]

number

A number between 0 and 1 inclusive.

Returns:

If opacity argument is provided, then this component is returned, otherwise opacity number is returned.

Type: number | this