flash object
171
fl.getDocumentDOM()
Availability
Flash MX 2004.
Usage
fl.getDocumentDOM()
Parameters
None.
Returns
A Document object, or
null
if no documents are open.
Description
Method; retrieves the DOM (
Document object
) of the currently active document (FLA file). If
one or more documents are open but a document is not currently focused (for example, a JSFL
file is focused) , retrieves the DOM of the most recently active document.
Example
The following example displays the name of the current or most recently active document in the
Output panel:
var currentDoc = fl.getDocumentDOM();
fl.trace(currentDoc.name);
fl.mapPlayerURL()
Availability
Flash MX 2004.
Usage
fl.mapPlayerURL(
URI
[,
returnMBCS
] )
Parameters
URI
A string that contains the escaped Unicode URL to map.
returnMBCS
A Boolean value that you must set to
true
if you want an escaped MBCS path
returned. Otherwise, the method returns UTF-8. The default value is
false
. This parameter is
optional.
Returns
A string that is the converted URL.
Description
Method; maps an escaped Unicode URL to a UTF-8 or MBCS URL. Use this method when the
string will be used in ActionScript to access an external resource. You must use this method if you
need to handle multibyte characters.
Содержание 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 ...