Parameters
- The name of the custom action definition to retrieve.
name:String
Returns
- If the custom action XML definition is located, returns a string; otherwise, returns
String
.
undefined
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);
install (CustomActions.install method)
public static install(name:String, data:String) : Boolean
Installs a new custom action XML definition file indicated by the
contents of the file is specified by the string
The name of the definition file must be a simple filename, without the .xml file extension,
and without any directory separators (':', '/' or '\').
If a custom actions file already exists with the name
If the Configuration/ActionsPanel/CustomActions directory does not exist when this method
is invoked, the directory is created.
Availability: ActionScript 1.0; Flash Player 6
customActionXml_ta
customXML
name
customActionName_cb
, and the Button an instance name of
parameter. The
name
.
, it is overwritten.
CustomActions
,
471
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?