MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 1343

Components language reference
Table of Contents

Advertisement

CHAPTER 52
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 Macromedia Component Architecture components extend UIComponent. The
UIComponent class lets you do the following:
Receive focus and keyboard input
Enable and disable components
Resize by layout
To use the methods and properties of UIComponent, you call them directly from whichever
component you are using. For example, to call
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;
UIComponent class (API)
Inheritance
MovieClip >
ActionScript Class Name
The methods, properties, and events of the UIComponent class allow you to control the
common behavior of Flash visual components.
UIComponent.setFocus()
UIObject class
> UIComponent
mx.core.UIComponent
52
from the
1339

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents