Fl.scripturi, Fl.selectelement() – Adobe Extending Flash Professional CS4 User Manual
Page 274
252
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.scriptURI
Availability
Flash CS3 Professional.
Usage
fl.scriptURI
Description
Read-only property; a string that represents the path of the currently running JSFL script, expressed as a file:/// URI.
If the script was called from
, this property represents the path of the immediate parent script. That
is, it doesn’t traverse multiple calls to
to find the path of the original calling script.
Example
The following example displays the path of the currently running JSFL script in the Output panel:
fl.trace(fl.scriptURI);
See also
fl.selectElement()
Availability
Flash CS3 Professional.
Usage
fl.selectElement(elementObject, editMode)
Parameters
elementObject
The
editMode
A Boolean value that specifies whether you want to edit the element (
true
) or want only to select it (
false
).
Returns
A Boolean value of
true
if the element was successfully selected;
false
otherwise.
Description
Method; enables selection or editing of an element. Generally, you will use this method on objects returned by
.
Example
The following example selects an element named "
second text field
" if one is found in the document: