MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 456

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

Advertisement

To add a List component to the tab order of an application, set its
UIComponent.tabIndex
Flash Player focus rectangle and draw a custom focus rectangle with rounded corners. For more
information, see
"Creating custom focus navigation" on page
Each component class has a
available only on the class itself. The
of the component. To access this property, use the following code:
trace(mx.controls.List.version);
Note: The code
trace(myListInstance.version);
Method summary for the List class
The following table lists methods of the List class.
Method
List.addItem()
List.addItemAt()
List.getItemAt()
List.removeAll()
List.removeItemAt()
List.replaceItemAt()
List.setPropertiesAt()
List.sortItems()
List.sortItemsBy()
Methods inherited from the UIObject class
The following table lists the methods the List class inherits from the UIObject class. When calling
these methods, use the form
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject.getStyle()
UIObject.invalidate()
UIObject.move()
). The List component uses the Focus Manager to override the default
property, which is a class property. Class properties are
version
property returns a string that indicates the version
version
Description
Adds an item to the end of the list.
Adds an item to the list at the specified index.
Returns the item at the specified index.
Removes all items from the list.
Removes the item at the specified index.
Replaces the item at the specified index with another item.
Applies the specified properties to the specified item.
Sorts the items in the list according to the specified compare
function.
Sorts the items in the list according to a specified property.
listInstance.methodName
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.
tabIndex
50.
returns
.
undefined
.
property (see
List component
457

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents