Using ActionScript 3.0 Components |
|
|
|
| Using the UI Components > Using the ScrollPane > User interaction with the ScrollPane | |||
A ScrollPane can be enabled or disabled. A disabled ScrollPane doesn't receive mouse or keyboard input. A user can use the following keys to control a ScrollPane when it has focus:
|
Key |
Description |
|---|---|
|
Down Arrow |
Content moves up one vertical line scroll. |
|
Up Arrow |
Content moves down one vertical line scroll. |
|
End |
Content moves to the bottom of the ScrollPane. |
|
Left Arrow |
Content moves to the right one horizontal line scroll. |
|
Right Arrow |
Content moves to the left one horizontal line scroll. |
|
Home |
Content moves to the top of the ScrollPane. |
|
End |
Content moves to the Bottom of the ScrollPane. |
|
PageDown |
Content moves up one vertical scroll page. |
|
PageUp |
Content moves down one vertical scroll page. |
A user can use the mouse to interact with the ScrollPane both on its content and on the vertical and horizontal scroll bars. The user can drag content by using the mouse when the scrollDrag property is set to true. The appearance of a hand pointer on the content indicates that the user can drag the content. Unlike most other controls, actions occur when the mouse button is pressed and continue until it is released. If the content has valid tab stops, you must set scrollDrag to false. Otherwise all mouse hits on the contents will invoke scroll dragging.
|
|
|
|