Macromedia Flash MX 2004 and Macromedia Flash MX Professional 2004 and later versions come with several extensibility features including Behaviors, Commands (JavaScript API), Effects, and Tools. With these features, advanced users can extend or automate the authoring tool's capabilities. The XML-to-UI engine works with each of these extensibility features to create dialog boxes that the user sees if the extension either requires or accepts parameters. You can define dialog boxes by using XML tags or by creating a SWF file to display. The XMLUI object provides a mechanism by which an advanced user can communicate with a SWF file used in such a manner.
You can use these methods to build SWF files that are extensions of the Flash authoring tool. Such an extension could, for example, use the Flash Application Protocol to navigate a Universal Description, Discovery and Integration (UDDI) repository and download web services into the Actions toolbox.
The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\').
If the definition file specified by the
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.
The name of the definition file must be a simple filename, without the .xml file extension, and without any directory separators (':', '/' or '\').
The Flash JSAPI provides several objects, methods, and properties to duplicate or emulate commands that a user can enter in the authoring environment. Using the JSAPI, you can write scripts that extend Flash in several ways: adding commands to menus, manipulating objects on the Stage, repeating sequences of commands, and so on.
In general, a user runs a JSAPI script by selecting Commands > Run Command. However,
you can use this function in an ActionScript script to call a JSAPI command directly.
If you use
For more information on the JSAPI,
see "Extending Flash" at