flash object
177
Example
The following example is a one-line script that you can place in the Commands folder. When you
need to reload the toolbar, go to the Commands menu and execute the script.
fl.reloadTools();
fl.revertDocument()
Availability
Flash MX 2004.
Usage
fl.revertDocument(
documentObject
)
Parameters
documentObject
A
Document object
. If
documentObject
refers to the active document, the
Document window might not revert until the script that calls this method finishes executing.
Returns
A Boolean value: returns
true
if the Revert operation completes successfully;
false
otherwise.
Description
Method; reverts the specified FLA document to its last saved version. Unlike the File > Revert
menu option, this method does not display a warning window that asks the user to confirm the
operation. See also
document.revert()
and
document.canRevert()
.
Example
The following example reverts the current FLA document to its last saved version; any changes
made since the last save are lost.
fl.revertDocument(fl.getDocumentDOM());
fl.runScript()
Availability
Flash MX 2004.
Usage
fl.runScript(
fileURI
[,
funcName
[,
arg1, arg2, ...
] ])
Parameters
fileURI
A string that specifies the name of the script file to execute, expressed as a URI (file:///
URI).
funcName
A string that identifies a function to execute in the JSFL file that is specified in
fileURI
. This parameter is optional.
arg
An optional parameter that specifies one or more arguments to be passed to
funcname
.
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...