List (Customactions.list Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

list (CustomActions.list method)

public static list() : Array
Returns an Array object containing the names of all the custom actions that are registered
with the Flash authoring tool. The elements of the array are simple names, without the .xml
file extension, and without any directory separators (for example, ":", "/", or "\"). If there are
no registered custom actions,
returns the value
undefined
Availability: ActionScript 1.0; Flash Player 6
Returns
- An array.
Array
Example
The following example lists the custom actions in a ComboBox instance, and gets the custom
action when a Button instance is clicked. Drag an instance of a ComboBox, Button, and
TextArea onto the Stage. Give the ComboBox an instance name of
the TextArea an instance name of
. Enter the following ActionScript on Frame 1 of the Timeline:
view_button
import mx.controls.*;
var customActionName_cb:ComboBox;
var customActionXml_ta:TextArea;
var view_button:Button;
customActionName_cb.dataProvider = CustomActions.list();
customActionXml_ta.editable = false;
var viewListener:Object = new Object();
viewListener.click = function(evt:Object) {
var caName:String = String(customActionName_cb.selectedItem);
customActionXml_ta.text = CustomActions.get(caName);
};
view_button.addEventListener("click", viewListener);
returns a zero-length array. If an error occurs,
list()
.
customActionXml_ta
customActionName_cb
, and the Button an instance name of
CustomActions
list()
,
473

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF