Search icon
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
Preface
Installing and Configuring Adobe Flex Introduction to Flex 3 Framework Introduction to ActionScript 3.0 Using External API and LocalConnection Working with XML Overview of LiveCycle Data Services and BlazeDS Flex Data Access Methods Communicating with Server-side Java Debugging Techniques Styling your Application Packaging and Deployment Internationalization and Localization Creating an E-commerce Application

Using LocalConnection


The LocalConnection class lets you enable communication between two different SWF files or Flex applications. The LocalConnection class can also be used to establish communication between SWF files created using an old version, such as ActionScript 1.0 or 2.0, and vice versa. Using LocalConnection, you can only communicate among SWF files that are running on the same physical computers, but they can execute in different applications (for example, two SWF files running in two different browsers or two different Flash Player instances).

For every LocalConnection communication, two SWF applications are involved. They are commonly known as a sender SWF file and a listener (or receiving) SWF file. You can easily communicate with two SWF files using LocalConnection if they are hosted in the same domain. For example, www.domain1.com/app1.swf can communicate with www.domain1.com/app2.swf using LocalConnection without any security concerns.

The applications that are served from...

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}