The ActionScript™ 3.0 external API enables straightforward communication between ActionScript and the container application within which Adobe® Flash™ Player 9 or Adobe® AIR™ is running. There are several situations in which you may want to use the external API--for example, when you create interaction between a SWF document and JavaScript in an HTML page, or when you build a desktop application that uses Flash Player or AIR to display a SWF file.
This chapter describes how to use the external API to interact with a container application, how to pass data between ActionScript and JavaScript in an HTML page, and how to establish communication and exchange data between ActionScript and a desktop application.