uninstall (CustomActions.uninstall method)

public static uninstall(name:String) : Boolean

Removes the Custom Actions XML definition file named name.

The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\').

Availability: ActionScript 1.0; Flash Player 6

Parameters

name:String - The name of the custom action definition to uninstall.

Returns

Boolean - A Boolean value of false if no custom actions are found with the name name. If the custom actions were successfully removed, a value of true is returned.

Example

The following example installs a new custom action and displays an array containing the names of all the custom actions that are registered with the Flash authoring tool in the Output panel. When the uninstall_btn is clicked, the custom action is then uninstalled. An array containing names of the custom actions installed is displayed, and dogclass should then be removed from the array. Create a button called uninstall_btn and then enter the following ActionScript onto Frame 1 of the Timeline:

var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
    trace(success);
    CustomActions.install("dogclass", this.firstChild);
    trace(CustomActions.list());
};
my_xml.load("dogclass.xml");

uninstall_btn.onRelease = function() {
    CustomActions.uninstall("dogclass");
    trace(CustomActions.list());
};

For information on creating dogclass.xml, see CustomActions.install().

See also

install (CustomActions.install method)