Uiobject Class - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

UIObject class

Inheritance
MovieClip > UIObject
ActionScript Class Name
UIObject is the base class for all version 2 components; it is not a visual component. The
UIObject class wraps the ActionScript MovieClip object and contains functions and properties
that allow version 2 components to share some common behavior. Wrapping the MovieClip class
allows Macromedia to add new events and extend functionality in the future without breaking
content. Wrapping the MovieClip class also allows users who aren't familiar with the traditional
Flash concepts of "movie" and "frame" to use properties, methods, and events to create
component-based applications without learning those concepts.
The UIObject class implements the following:
Styles
Events
Resize by scaling
To use the methods and properties of the UIObject class, you call them directly from whichever
component you are using. For example, to call 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 version 2 of the Macromedia
Component 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 summary for the UIObject class
The following table lists methods of the UIObject class.
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject.getStyle()
UIObject.invalidate()
UIObject.move()
UIObject.redraw()
UIObject.setSize()
808
Chapter 6: Components Dictionary
mx.core.UIObject
UIObject.setSize()
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property and
Component inspectors.
Gets the style property from the style declaration or object.
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 is drawn in the current frame.
Resizes the object to the requested size.
CHAPTER 6
Components Dictionary
method from the

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents