javascript
See here pages with javascript tag :
| Page | Date | Description | Tags |
|---|---|---|---|
| Calling an ActionScript function from JavaScript | flashjs, tutorial, javascript To call an ActionScript function from JavaScript, make sure the four required JavaScript files are included in your HTML page like this: <script type="text/javascript" src="/ci/jsflash/JavaScriptFlashGateway.js"></script> | flashjs, tutorial, javascript | |
| Retrieving JavaScript Browser Info from ActionScript | flashjs, tutorial, javascript The example below shows how to retrieve JavaScript Browser info from ActionScript. ActionScript (browser_info.swf) import com.macromedia.javascript.*; var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); function getBrowserInfo():Void { proxy.call("getBrowserInfo"); } function getBrowserInfoReturn(browser:Object):Void { //can get more info from System.capabilities for(var x:String in browser) { trace(x + " : " + browser[x]); } } getBrow… | flashjs, tutorial, javascript | |
| Calling a JavaScript function from ActionScript | flashjs, tutorial, javascript Again, make sure all four of the required JavaScript files are included in the HTML page that contains the JavaScript function you want to invoke. <script type="text/javascript" src="Exception.js"></script> <script type="text/javascript" src="FlashTag.js"></script> <script type="text/javascript" src="FlashSerializer.js"></script> <script type="text/javascript" src="FlashProxy.js"></script> | flashjs, tutorial, javascript | |
| Receiving a function call from Flash within JavaScript | flashjs, tutorial, javascript You don’t have to do anything special in your JavaScript code in order to receive function calls from Flash. As long as the required JavaScript files are included in the page, JavaScript functions can be invoked from Flash with any number of arguments. | flashjs, tutorial, javascript | |
| Receiving a function call from JavaScript within Flash | flashjs, tutorial, javascript In order to allow JavaScript to call functions within your Flash content, you need to create an instance of the JavaScriptProxy class and specify the object that functions will be proxied to. import com.macromedia.javascript.JavaScriptProxy; var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); | flashjs, tutorial, javascript | |
| Getting Return Values from Function Calls | flashjs, tutorial, javascript This page shows a simple example of how to get return values from JavaScript when calling a JavaScript function from Flash. The same technique works when getting return values from Flash when calling a Flash function from JavaScript, but you just reverse the function order. | flashjs, tutorial, javascript |
tags/javascript.txt · Last modified: 2007/02/21 00:31 by niko