-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Flex 3 with Java

SWF files are executed and rendered into Flash Player via a browser or desktop. This sometimes requires external communications with web scripting languages such as JavaScript or with other SWF applications running on different instances of Flash Player to exchange data. ActionScript 3.0 enables this type of communication by providing a set of APIs and classes.
This chapter will primarily focus on the following two points:
Using External API
Using LocalConnection
The External API is a subset of ActionScript 3.0 and enables communication between a Flex application and the container application within which your Flex application is running. When you build a Flex application from Flex Builder, it also generates an HTML wrapper to execute your Flex .swf
file into Flash Player instance. This HTML wrapper is known as the container application in this context.
This section gives you an overview of how the External API can be used to...
Change the font size
Change margin width
Change background colour