Difference between revisions of "Flash Applets Interface"

From WeBWorK_wiki
Jump to navigation Jump to search
(Created page with '==Introduction== The communication between the applet and the JavaScript code in the WeBWork page uses the class [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscrip…')
 
Line 1: Line 1:
 
==Introduction==
 
==Introduction==
The communication between the applet and the JavaScript code in the WeBWork page uses the class [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html <code>ExternalInterface</code>]] ActionScript class. Using this class, the developer can define ''callbacks'' in the ActionScript code to be called by JavaScript, and also directly call JavaScript code from ActionScript.
+
The communication between the applet and the JavaScript code in the WeBWork page uses the class [http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/ExternalInterface.html <code>ExternalInterface</code>] ActionScript class. Using this class, the developer can define ''callbacks'' in the ActionScript code to be called by JavaScript, and also directly call JavaScript code from ActionScript.
   
 
In this page we do not discuss the details of the <code>ExternalInterface</code> class, but describe the methods that WeBWork expects to be made available by the applet. The details of how to implement these functions is show in the examples that follow.
 
In this page we do not discuss the details of the <code>ExternalInterface</code> class, but describe the methods that WeBWork expects to be made available by the applet. The details of how to implement these functions is show in the examples that follow.
  +
 
==Functions Expected by the Interface==
 
==Functions Expected by the Interface==

Revision as of 17:18, 28 June 2011

Introduction

The communication between the applet and the JavaScript code in the WeBWork page uses the class ExternalInterface ActionScript class. Using this class, the developer can define callbacks in the ActionScript code to be called by JavaScript, and also directly call JavaScript code from ActionScript.

In this page we do not discuss the details of the ExternalInterface class, but describe the methods that WeBWork expects to be made available by the applet. The details of how to implement these functions is show in the examples that follow.

Functions Expected by the Interface