Basics of the client system environment

Introduction to the client system environment

As you build more advanced ActionScript applications, you may find a need to know details about--and access functions of--your users' operating systems. The client system environment is a collection of classes in the flash.system package that allow you to access system-level functionality such as the following:

The flash.system package also includes the IMEConversionMode and SecurityPanel classes. These classes contain static constants that you use with the IME and Security classes, respectively.

Common client system environment tasks

The following common tasks for working with the client system using ActionScript are described in this chapter:

Important concepts and terms

The following reference list contains important terms used in this chapter:

Working through in-chapter examples

As you're working through the chapter, you may want to test some of the example code listings for yourself. All the code listings in this chapter include the appropriate trace() function call for writing out the values being tested. To test the code listings in this chapter:

  1. Create an empty Flash document.
  2. Select a keyframe in the timeline.
  3. Open the Actions panel and copy the code listing into the Script pane.
  4. Run the program using Control > Test Movie.

    You will see the results of the code listing's trace() functions in the Output panel.

Some of the later code listings are more complex and are written as a class. To test these examples:

  1. Create an empty Flash document and save it to your computer.
  2. Create a new ActionScript file and save it in the same directory as the Flash document. The file's name should match the name of the class in the code listing. For instance, if the code listing defines a class named SystemTest, use the name SystemTest.as to save the ActionScript file.
  3. Copy the code listing into the ActionScript file and save the file.
  4. In the Flash document, click a blank part of the Stage or work space to activate the document Property inspector.
  5. In the Property inspector, in the Document Class field, enter the name of the ActionScript class you copied from the text.
  6. Run the program using Control > Test Movie

    You will see the results of the example in the Output panel.

Techniques for testing example code listings are described in more detail in Testing in-chapter example code listings.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000324.html