UIComponent class

The UIComponent class does not represent a visual component; it contains methods, properties, and events that allow Macromedia components to share some common behavior. All version 2 components extend UIComponent. The UIComponent class lets you do the following:

To use the methods and properties of UIComponent, you call them directly from whichever component you are using. For example, to call UIComponent.setFocus() 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 version 2 of the Macromedia Component Architecture to create a new component. Even in that case, UIComponent is often created implicitly by other subclasses such as Button. If you do need to create an instance of UIComponent, use the following code:

class MyComponent extends mx.core.UIComponent;

Related topics


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00002910.html