====== DISEÑO POR ALEX ALBUJA ====== ===== Official Site ===== [[http://www.flashextensions.com/products/flashinterface.php]] {{http://www.flashextensions.com/flx/images/banners/flx_solutions_172_x52.png}} ===== Overview ===== FlashInterface provides synchronous communication between the Flash Player ActionScript Virtual Machines. In other words it allows you to communicate between Flash 8 and 9 SWFs. Supported features: * Event Model (Subscription and Dispatch) * Direct access to SWF public API methods and properties * Direct access to registered items public API ===== License ===== FlashInterface is licensed under the GNU General Public License ===== Author ===== Robert Taylor ===== Support ===== [[http://flashextensions.com/forums/viewforum.php?f=34]] ===== Latest News ===== **FlashInterface 2.1 Released** If you have been using FlashInterface 1.0 for projects, you will want to upgrade to this new release. It has major improvements to the prior version. Here are some of the changes that it includes. * Streamlined API I don’t think it could get any simpler! (but you never know). You no longer have to be concerned with finding out the ID of the SWF to register a SWF to use FlashInterface. All the ties into the classes are now reside internally to the class. The only time you need to know the ID is when you want to communicate directly to that particular SWF. * Global Dispatching All members subscribed to an event receive it with a single dispatch. You no longer need to send it to each SWF individually. * Switch On / Off public access You can make your public functions accessible or inaccessible with the new publish function. Determine when items are available to other SWFs. * Compatibility with Flash 8, Flash 9, and Flex 2 applications This release has been tested with the different platforms and frameworks. It also provides examples of using it in each environment. * New and improved examples and documentation Online and Flash 8 Authoring documentation has been dramatically improved. Explanations on how to use the functions is now better explained in the online documentation with this new interface. Anyone attempting to build an application that mixes Flash 8 and 9 SWFs should use FlashInterface. It has been designed specifically to enable developers to easily overcome the hurdles presented between working within both ActionScript Virtual Machines (AVM). ===== Video Tutorials ===== {{http://www.flashextensions.com/flx/images/banners/flx_videos_172_x52.png}} [[http://www.flashextensions.com/products/flashinterface.php| FlashInterface Video Tutorials]] [[http://www.flashextensions.com/tutorials.php| Flash & Flex Video Tutorials]] Tutorials currently available for FlashInterface: - Setup and Installation - How to use the examples - Accessing Public API from AS 2.0 - Dispatching Events from AS 2.0 ===== Examples ===== **AVM Interfacing - Communicating between Flash 8 and Flash 9** This example shows two Flash 8 SWFs loaded into a Flash 9 SWF. Flash 9 can communicate with each SWF and vice-versa, through event handlers and direct calls to both functions and properties. [[http://www.flashextensions.com/products/flashinterface/examples/01_flashinterface_avms.html| View Example]] **Subscriber / Dispatcher Example** Event dispatchers allow you to send instructions to multiple items at the same time. A registered event listener receives notification when an event is dispatched. There are no limits to the number of items than can subscribe to an event. In this example we will dispatch an event to a listener who will then display a message in the output window. [[http://www.flashextensions.com/products/flashinterface/examples/02_flashinterface_subscribe.html|View Example]] **Call / Receive Method Example** The call method allows you to invoke synchronous calls to public methods and properties of a registered control and receive a return value. Registering an item with a Flash ID allows its properties and functions to become accessible through FlashInterface. In this example, we will register our application to control a slider from an another SWF. [[http://www.flashextensions.com/products/flashinterface/examples/03_flashinterface_method.html|View Example]] **Call / Receive Property Example** In this example, we will use the call method again. This time to talk directly to a property. In this example you can type in the caller window and the receiver will receive the text through a synchronous call. [[http://www.flashextensions.com/products/flashinterface/examples/04_flashinterface_property.html|View Example]] =====Downloads===== [[http://www.flashextensions.com/products/flashinterface.php|Available at official page]] * Source and Compiled (mxp / swc) * Examples Files =====Updates===== 11-05-06 (v2.1.0) Update to publish, makePublic property. publish is now required. 11-03-06 (v2.0.0) Release with new easier to use functions and features. 11-08-06 (v1.0.0) Release of FlashInterface for Flash Player 8 & 9.