28
Chapter 4: ActionScript Enhancements for Flash Lite 1.1
_cap4WayKeyAS
The
_cap4WayKeyAS
variable indicates whether Flash Player executes ActionScript expressions
attached to key event handlers associated with the Right, Left, Up and Down keys. This variable
is defined and has a value of 1 only when the host application uses four-way key navigation mode
to navigate between Flash controls (buttons and input text fields). Otherwise, this variable is
undefined.
If the value of this variable is 1 and one of the four-way keys is pressed, Flash Player first looks for
a handler for that key. If none is found, Flash control navigation is performed. However, if an
event handler is found, no navigation action occurs for that key. In other words, the presence of a
keypress handler for a Down key disables the user’s ability to navigate down.
Example
myVarValue = _cap4WayKeyAS;
New ActionScript properties
The following properties are new in ActionScript.
scroll
You can use the
scroll
property to retrieve and set a text field. When the
scroll
property of a
text field is retrieved, it indicates the number of the line currently displayed as the first line in the
text field’s viewable area. When you set the
scroll
property to a specific value, the text field
scrolls so that the line with that number appears at the top of the field’s viewable region. This
property is normally used with the
maxscroll
property to create text-scrolling interfaces.
Example
on (release) {
myText.scroll = myText. 1;
}
maxscroll
The
maxscroll
property returns the largest allowable scroll value for a text field. It represents the
number of the last line in a text field that can be used as the top line in its viewable region. This
property can be used with the
scroll
property with a function to create text-scrolling interfaces.
Example
textBoxMax = myText.maxscroll
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...