Box

This is a primitive container. It is used as the base class for most other components.

= Attributes =

{{Attribute This defines the normal alpha (opacity) of the element. Can be a floating point value in an interval of [0, 1]. Default value is 1, i.e. fully visible.
 * h= ==
 * name = alpha
 * type = Number
 * default = 1
 * info =

Example
}}

{{Attribute An alternative alpha value for when the mouse cursor is not hovering the object. As the normal alpha value, this can be a floating point value in an interval of [0, 1]. Defaults to the same value as given in alpha, so no fading.
 * h= ==
 * name = alpha_out
 * type = Number
 * default = alpha
 * info =

Note: the element must be either mouseenabled or have mouseenabled children.

Example
}}

{{Attribute The time in seconds it should take to collapse the element to the collapse_height and collapse_width.
 * h= ==
 * name = collapse_time
 * type = Number
 * default = 0.25
 * info =

Example
}}

{{Attribute Set a filter effect for this element. Available filter are: glow, dropshadow, bevel and blur. Those simply create a filter as provided by the Flash API.
 * h= ==
 * name = filter
 * type = Definition
 * default =
 * info =

A filter has to be given in common definition format, i.e. . Multiple filters can be given when separated by semicolons. The first argument is always the filter type, the following arguments differ between the filter types, but are equivalent to the arguments taken by the filter classes' constructors. Please refer to the Flash API documentation for more information:
 * Blur
 * Bevel
 * DropShadow and
 * Glow

Example
}}

{{Attribute This can be used to assign a title to an element. If set, hovering the element opens a tooltip with the specified text. This can also be a localize definition, i.e. a string of the format.
 * h= ==
 * name = title
 * type = Definition or String
 * info =

Note: the element must be either mouseenabled or have mouseenabled children.

Example
}}

= Event attributes =

These attributes, defined the same way as other attributes, are special in such that they contain script code which is evaluated when an event corresponding to the attribute occurs. This is similar to the principle of event attributes in HTML, and naming was inspired by those.

Whenever the script in such an attribute is evaluated, a variable named  is made available in the script context. This variable will be the original ActionScript3 event variable representing the event.

In general it is possible to put any code whatsoever into event attributes, but for readability and reuseability it is recommended to define the actual handler functions in script block and then calling that function.

{{Attribute Event attribute. The contained script is evaluated when Flash's  occurs for this object.
 * h= ==
 * name = onclick
 * type = Script
 * version = 2.0.11
 * info =

Example
}}