28.04.2016 Views

Adobe AIR Building Apps

Adobe AIR Building Apps AS3 Actionscript

Adobe AIR Building Apps AS3 Actionscript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING ADOBE <strong>AIR</strong> APPLICATIONS<br />

Viewing Source Code<br />

269<br />

Source Viewer user interface<br />

When the application calls the viewSource() method of a SourceViewer object, the <strong>AIR</strong> application opens a Source<br />

Viewer window. The window includes a list of source files and directories (on the left) and a display area showing the<br />

source code for the selected file (on the right):<br />

Directories are listed in brackets. The user can click a brace to expand or collapse the listing of a directory.<br />

The Source Viewer can display the source for text files with recognized extensions (such as HTML, JS, TXT, XML, and<br />

others) or for image files with recognized image extensions (JPG, JPEG, PNG, and GIF). If the user selects a file that<br />

does not have a recognized file extension, an error message is displayed (“Cannot retrieve text content from this<br />

filetype”).<br />

Any source files that are excluded via the setup() method are not listed (see “Loading, configuring, and opening the<br />

Source Viewer” on page 266).<br />

Last updated 2/22/2016

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!