The first block of code is a
the value of the
block of code creates an event handler for the
Output panel.
Customizing the ScrollPane component
You can transform a ScrollPane 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
UIObject.setSize()
Bear in mind these points about the ScrollPane component:
•
The ScrollPane places the registration point of its content in the upper left corner of the pane.
•
When the horizontal scroll bar is turned off, the vertical scroll bar is displayed from top to
bottom along the right side of the scroll pane. When the vertical scroll bar is turned off, the
horizontal scroll bar is displayed from left to right along the bottom of the scroll pane. You can
also turn off both scroll bars.
•
If the scroll pane is too small, the content may not display correctly.
•
When the scroll pane is resized, the buttons remain the same size. The scroll track and scroll
box (thumb) expand or contract, and their hit areas are resized.
Using styles with the ScrollPane component
The ScrollPane supports the following styles:
Style
themeColor
border styles
scrollTrackColor
symbolColor
symbolDisabledColor
670
Chapter 6: Components Dictionary
event handler on the
scroll
property in a TextField instance called
vPosition
) or any applicable properties and methods of the ScrollPane class.
Theme Description
Halo
The base color scheme of a component. Possible values are
"haloGreen"
is
"haloGreen"
Both
The ScrollPane component uses a RectBorder instance as its
border and responds to the styles defined on that class. See
"RectBorder class" on page
The default border style is
Sample The background color for the scroll track. The default value is
0xCCCCCC (light gray).
Sample The color of the check mark. The default value is 0x000000
(black).
Sample The color of the disabled check mark. The default value is
0x848384 (dark gray).
myScrollPane
txtPosition
event that sends a message to the
complete
setSize()
,
, and
"haloBlue"
"haloOrange"
.
647.
.
"inset"
instance that displays
. The second
method (see
. The default value
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers