Flash has been communicating with JavaScript for a long time through getURL
and fscommand, but with Flash 8 it's easier than ever. With the
ExternalInterface class, you cannot only call JavaScript functions, but also
have JavaScript call Flash functions. And now that JavaScript is getting more
and more publicity in the form of AJAX (Asynchronous JavaScript and XML), the
ability to seamlessly integrate your Flash content within your HTML content
is essential.
This article is going to cover some basic uses of ExternalInterface and move
into some of the more undocumented ways to use it. Then we will finish up by
building a small image injector that will take a selected image from one
browser window and push it into another HTML page without the use of a
LocalConnection ob... (more)
With Flash's ability to create rich, engaging, and fully interactive front
end interface environments and Web services being able to offer data in a
standardized, easy-to-work-with format, the possibilities of what can be
accomplished with these two technologies is endless. But before the "how" is
covered, it's important to know the "what" and the "why."
What Is a Web Service?
A Web servi... (more)