![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Inheritance UIObject > UIComponent
ActionScript class namespace mx.core.UIComponent
All v2 components extend UIComponent; it is not a visual component. The UIComponent class contains functions and properties that allow Macromedia components to share some common behavior. The UIComponent class allows you to do the following:
To use the methods and properties of the UIComponent, you call them directly from whichever component you are using. For example, to call the UIComponent.setFocus()
method from the RadioButton component, you would write the following code:
myRadioButton.setFocus();
You only need to create an instance of UIComponent if you are using the Macromedia Component V2 Architecture to create a new component. Even in that case, UIComponent is often created implicitly by other subclasses like Button. If you do need to create an instance of UIComponent, use the following code:
class MyComponent extends UIComponent;
Method |
Description |
---|---|
|
Returns a reference to the object that has focus. |
|
Sets focus to the component instance. |
Inherits all methods from the UIObject class class.
Property |
Description |
---|---|
|
Indicates whether the component can receive focus and input. |
|
A number indicating the tab order for a component in a document. |
Inherits all properties from the UIObject class class.
Event |
Description |
---|---|
|
Broadcast when an object receives focus. |
|
Broadcast when an object loses focus. |
|
Broadcast when a key is pressed. |
|
Broadcast when a key is released. |
Inherits all events from the UIObject class class.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |