FlashExtensions Home | FlashInterface Products Page

 

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.

Load Flash 8 SWF | Load Flash 9 SWF Load Flash 8 SWF | Load Flash 9 SWF
FlashInterface caller
FlashInterface receiver

Sample Code for Receiver


import flx.external.FlashInterface;
FlashInterface.publish(_root);

Sample Code for Caller


import flx.external.FlashInterface;
FlashInterface.call("flash_receive_method.slider.nextValue", 1);