User Guide
816 Loader component
Customizing the Loader component
You can transform a Loader component horizontally and vertically while authoring and at
runtime. While authoring, select the component on the Stage and use the Free Transform tool
or any of the Modify > Transform commands. At runtime, use the
setSize() method (see
UIObject.setSize()).
The sizing behavior of the Loader component is controlled by the
scaleContent property.
When
scaleContent is true, the content is scaled to fit within the bounds of the loader (and
is rescaled when
UIObject.setSize() is called). When scaleContent is false, the size of
the component is fixed to the size of the content and
UIObject.setSize() has no effect.
Using styles with the Loader component
The Loader component uses the following styles.
For example:
my_ldr.setStyle("backgroundColor", 0xEEEEEE);
For more information, see “Using styles to customize component color and text” in Using
Components.
Using skins with the Loader component
The Loader component uses an instance of RectBorder for its border (see “RectBorder class”
on page 1063).
Style Theme Description
borderStyle
Both The Loader component uses a RectBorder instance as
its border and responds to the styles defined on that
class. See “RectBorder class” on page 1063.
The default border style is
"none".