![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Inheritance MovieClip > UIObject
ActionScript class namespace mx.core.UIObject
UIObject is the base class for all v2 components; it is not a visual component. The UIObject class wraps the ActionScript MovieClip object and contains functions and properties that allow Macromedia v2 components to share some common behavior. The UIObject class implements the following:
To use the methods and properties of the UIObject, you call them directly from whichever component you are using. For example, to call the UIObject.setSize()
method from the RadioButton component, you would write the following code:
myRadioButton.setSize(30, 30);
You only need to create an instance of UIObject if you are using the Macromedia Component V2 Architecture to create a new component. Even in that case, UIObject is often created implicitly by other subclasses like Button. If you do need to create an instance of UIObject, use the following code:
class MyComponent extends UIObject;
Method |
Description |
---|---|
|
Creates a subobject on an object. |
|
Creates an object on the specified class. |
|
Destroys a component instance. |
|
Marks the object so it will be redrawn on the next frame interval. |
|
Moves the object to the requested position. |
|
Forces validation of the object so it draws in the current frame. |
|
Resizes the object to the requested size. |
|
Sets a skin in the object. |
Property |
Description |
---|---|
|
Returns the position of the bottom edge of the object relative to the bottom edge of its parent. |
|
The height of the object in pixels. |
|
The left position of the object in pixels. |
|
The position of the right edge of the object relative to the right edge of its parent. |
|
A number indicating the scaling factor in the x direction of the object relative to its parent. |
|
A number indicating the scaling factor in the y direction of the object relative to its parent. |
|
The position of the top edge of the object relative to its parent. |
|
A Boolean value indicating whether the object is visible ( |
|
The width of the object in pixels. |
|
The left position of the object in pixels. |
|
Returns the position of the top edge of the object relative to its parent. |
Event |
Description |
---|---|
|
Broadcast when an object is about to draw its graphics. |
|
Broadcast when subobjects are being created. |
|
Broadcast when the object has moved. |
|
Broadcast when the subobjects are being unloaded. |
|
Broadcast when the subobjects are being unloaded. |
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |