Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Flex 3 with Java

You're reading from  Flex 3 with Java

Product type Book
Published in Jun 2009
Publisher Packt
ISBN-13 9781847195340
Pages 304 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Flex 3 with Java
Credits
About the Author
About the Reviewers
1. Preface
1. Installing and Configuring Adobe Flex 2. Introduction to Flex 3 Framework 3. Introduction to ActionScript 3.0 4. Using External API and LocalConnection 5. Working with XML 6. Overview of LiveCycle Data Services and BlazeDS 7. Flex Data Access Methods 8. Communicating with Server-side Java 9. Debugging Techniques 10. Styling your Application 11. Packaging and Deployment 12. Internationalization and Localization 13. Creating an E-commerce Application

Using External API


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 establish communication and exchange data between your ActionScript and JavaScript from HTML wrapper and vice versa.

An external API can be very useful in cases where you want to interact with container applications directly, or exchange data between JavaScript and ActionScript (and vice versa). A common example would be if you want to pass some data from an HTML page to your SWF file.

This chapter focuses on the following tasks:

  • Communicating with JavaScript from the ActionScript code

  • Communicating with ActionScript...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}