Adobe Extending Flash Professional CS5 User Manual Page 243

  • Download
  • Add to my manuals
  • Print
  • Page
    / 565
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 242
221
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Example
The following example displays a message in the Output panel when a document is closed:
myFunction = function () {
fl.trace('document was closed'); }
fl.addEventListener("documentClosed", myFunction);
See also
fl.removeEventListener()
fl.as3PackagePaths
Availability
Flash CS3 Professional.
Usage
fl.as3PackagePaths
Description
Property; a string that corresponds to the global Classpath setting in the ActionScript 3.0 Settings dialog box. Items in
the string are delimited by semi-colons. To view or change ActionScript 2.0 Classpath settings, use
fl.packagePaths.
Example
The following example illustrates changing the ActionScript 3.0 Classpath settings.
fl.trace(fl.as3PackagePaths);
// Output (assuming started with default value)
// .;$(AppConfig)/ActionScript 3.0/Classes
fl.as3PackagePaths="buying;selling";
fl.trace(fl.as3PackagePaths);
// Output
// buying; selling
See also
fl.resetAS3PackagePaths()
fl.browseForFileURL()
Availability
Flash MX 2004.
Usage
fl.browseForFileURL(browseType [, title [, previewArea]])
Page view 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 564 565

Comments to this Manuals

No comments