180
Chapter 3: Objects
Parameters
document
A
Document object
that specifies the document to save. If
document
is
null
, the
active document is saved.
Returns
A Boolean value:
true
if the Save As operation completes successfully;
false
otherwise.
Description
Method; displays the Save As dialog box for the specified document. See also
fl.saveDocument()
,
fl.saveAll()
,
document.save()
, and
document.saveAndCompact()
.
Example
The following example prompts the user to save the specified document, and then displays a value
of
true
or
false
in the Output panel, indicating whether the document was saved.
alert(fl.saveDocumentAs(fl.documents[0]));
fl.setActiveWindow()
Availability
Flash MX 2004.
Usage
fl.setActiveWindow(
document
[,
bActivateFrame
] )
Parameters
document
A
Document object
that specifies the document to select as the active window.
bActivateFrame
An optional parameter that is present for consistency with the Dreamweaver
API. As in Fireworks, it is optional and it is ignored.
Returns
Nothing.
Description
Method; sets the active window to be the specified document. This method is also supported by
Dreamweaver and Fireworks. If the document has multiple views (created by Edit In New
Window), the first view is selected.
Example
The following example shows two ways to save a specified document.
fl.setActiveWindow(fl.documents[0]);
var theIndex = fl.findDocumentIndex("myFile.fla");
fl.setActiveWindow(fl.documents[theIndex]);
Содержание 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 ...