
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
474
|
Appendix A: ActionScript 2.0 Language Quick Reference
Event handlers
onChanged(changedField:TextField):Void
onKillFocus(
newFocus:Object):Void
onScroller(
scrolledField:TextField):Void
onSetFocus(
oldFocus:Object):Void
Events broadcast to listeners
onChanged(changedField:TextField):Void
onScroller(
scrolledField:TextField):Void
TextField.StyleSheet Class
The TextField.StyleSheet class provides CSS stylesheet support for a text field. Avail-
able in Flash Player 7 and later only.
At runtime, the StyleSheet class is actually defined as a static property
of the TextField class. Classes can be made properties of other classes
only in ActionScript 1.0. In ActionScript 2.0, it is illegal to assign a
class as a property of another class. Therefore, for the sake of type
checking, the compiler must treat StyleSheet as a class in the TextField
package.
Constructor
StyleSheet( )
Instance methods
clear( ):Void
getStyle(
name:String):Object
getStyleNames( ):Array
load(
url:String):Boolean
parse(
cssText:String):Boolean
parseCSS(
cssText:String):Boolean
setStyle(
name:String, style:Object):Void
transform(
style:Object):TextFormat
Event handlers
onLoad(success:Boolean):Void
TextFormat Class
The TextFormat class retrieves or sets a text field’s visual formatting.
Constructor
TextFormat(font:String, size:Number, textColor