Customizing The List Component - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

To create a List component instance using ActionScript:
1.
Drag the List component from the Components panel to the library.
This adds the component to the library, but doesn't make it visible in the application.
2.
Select the first frame in the main Timeline, open the Actions panel, and enter the
following code:
this.createClassObject(mx.controls.List, "my_list", 1);
my_list.addItem({label:"One", data:dt1});
my_list.addItem({label:"Two", data:dt2});
This script uses the method
3.
Select Control > Test Movie.

Customizing the List component

You can transform a List component horizontally and vertically while authoring and at
runtime. While authoring, select the component on the Stage and use the Free Transform tool
or any of the Modify > Transform commands. At runtime, use the
(see
UIObject.setSize()
When a list is resized, the rows of the list shrink horizontally, clipping any text within them.
Vertically, the list adds or removes rows as needed. Scroll bars position themselves
automatically. For more information about scroll bars, see
on page
1093.
Using styles with the List component
You can set style properties to change the appearance of a List component.
766
List component
UIObject.createClassObject()
).
to create the List instance.
List.setSize()
"ScrollPane component"
method

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents