Ok ... I found a newer example that seems to match the files that are in 
SVN: http://osflash.org/flashjs/docs/usage/simreturn ... Still trying to 
get it to work.

Daniel Wabyick wrote:

>I am trying to get the latest version of the integration kit from SVN 
>working. All I need is a one-way call a Javascript function from Flash 
>(that also doesn't break after 457 characters in IE).
>
>Does anyone have an example implementation that I can be pointed to ?
>
>Thanks!
>-Daniel
>
>
>Current example:
>
>Flash:
>var j:JavaScriptProxy = new JavaScriptProxy();
>j.call("outputTest","test");
>
>HTML:
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
><html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
><head>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
><title>test</title>
>    <script type="text/javascript" src="Exception.js"></script>
>    <script type="text/javascript" src="FlashProxy.js"></script>
>    <script type="text/javascript" src="FlashSerializer.js"></script>
>    <script type="text/javascript" src="FlashTag.js"></script>
></head>
><body bgcolor="#ffffff">
><script language="JavaScript">
><!--
>var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
>// Handle all the FSCommand messages in a Flash movie.
>function test_DoFSCommand(command, args) {
>    var testObj = isInternetExplorer ? document.all.test : document.test;
>    //
>    // Place your code here.
>    //
>}
>
>
>
>// Hook for Internet Explorer.
>if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
>navigator.userAgent.indexOf("Windows") != -1 && 
>navigator.userAgent.indexOf("Windows 3.1") == -1) {
>    document.write('<script language=\"VBScript\"\>\n');
>    document.write('On Error Resume Next\n');
>    document.write('Sub test_FSCommand(ByVal command, ByVal args)\n');
>    document.write('    Call test_DoFSCommand(command, args)\n');
>    document.write('End Sub\n');
>    document.write('</script\>\n');
>}
>//-->
></script>
><script language="JavaScript">
>    var uid = new Date().getTime();
>    var fp  = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');
>
>    function outputTest( str )
>    {
>        alert("test: " + str.length);
>    }
>
></script>
>
><!--url's used in the movie-->
><!--text used in the movie-->
><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
>codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0";
> 
>id="test" width="550" height="400" align="middle">
><param name="allowScriptAccess" value="sameDomain" />
><param name="movie" value="test.swf" />
><param name="quality" value="high" />
><param name="bgcolor" value="#ffffff" />
><embed src="test.swf" quality="high" bgcolor="#ffffff" width="550" 
>height="400" swLiveConnect=true id="test" name="test" align="middle" 
>allowScriptAccess="sameDomain" type="application/x-shockwave-flash" 
>pluginspage="http://www.macromedia.com/go/getflashplayer"; />
></object>
></body>
></html>
>
>
>_______________________________________________
>osflash mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/osflash_osflash.org
>  
>


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to