The following table briefly describes the version 2 base classes:
Base class
mx.core.UIObject
mx.core.UIComponent
Understanding the UIObject class
Components based on version 2 of the Macromedia Component Architecture descend from the
UIObject class, which is a subclass of the MovieClip class. The MovieClip class is the base class
for all classes in Flash that represent visual objects on the screen.
UIObject adds methods that allow you to handle styles and events. It posts events to its listeners
just before drawing (the
when loading and unloading (
when it is hidden or revealed (
UIObject provides alternate read-only variables for determining the position and size of a
component (
width
and size of an object.
The
UIObject class
•
Styles
•
Events
•
Resize by scaling
Understanding the UIComponent class
The
UIComponent class
handle user interaction (mouse and keyboard input). The UIComponent class allows
components to do the following:
•
Receive focus and keyboard input
•
Enable and disable components
•
Resize by layout
Extends
Description
MovieClip UIObject is the base class for all graphical objects. It can have
shape, draw itself, and be invisible.
UIObject provides the following functionality:
• Editing styles
• Event handling
• Resizing by scaling
UIObject
UIComponent is the base class for all components.
UIComponent provides the following functionality:
• Creating focus navigation
• Creating a tabbing scheme
• Enabling and disabling components
• Resizing components
• Handling low-level mouse and keyboard events.
event is the equivalent of the
draw
and
load
unload
and
hide
reveal
,
,
,
), and the
height
x
y
implements the following:
is a subclass of UIObject. It is the base class of all components that
MovieClip.onEnterFrame
), when its layout changes (
).
and
move()
setSize()
event),
,
), and
move
resize
methods to alter the position
Selecting a parent class
925
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?