32 | Chapter 2: Getting Started with AIR Development
For our example, we will use the operating system’s window
chrome.
This is all that is required for the application descriptor file
for our application. At this point, we are ready to create the
main HTML file for our application.
Creating the root application file
The root application file is the main file for the application
that will be loaded when the application is launched. This file
can be either a compiled Flash file (SWF) or an HTML file.
For this chapter, we will create a very simple HTML file in
order to ensure that our development environment is config-
ured correctly. We will cover more advanced AIR API usage
in Chapters 3 and 4.
<html>
<head>
<title>AIRHelloWorld</title>
<script>
function init( )
{
runtime.trace("init function called");
}
</script>
</head>
<body onload="init( )">
<div align="center">Hello World</div>
</body>
</html>
Element Description
systemChrome The type ofsystemChrome that the application should use
(“standard” or “none”).
transparent Whether the application background should be transparent. If
systemChrome is set to standard, this property istrue.
visible Whether the application is visible when it is first launched. This is
useful if your application needs to perform some complex
initialization before displaying the UI to the user.