Flash / JavaScript Integration Kit Update / Bug Fix

Last night on the Flash / JavaScript Integration Kit mailing list, a couple of people were reporting that data sent from JavaScript to Flash was not being serialized correctly (coming through as undefined).


After some sleuthing, I discovered that the JavaScriptFlashGateway.swf had been compiled incorrectly (apparently it could not find the JavaScriptSerialization class, but did not give a compile error). I then checked the release zip and realized this the JavaScriptFlashGateway.swf in it was also not compiled correctly.So, I have updated the release with a fixed JavaScriptFlashGateway.swf. You can either recompile the SWF yourself from the source, or download the new one in the zip.Sorry for the mixup and any hassle.Btw, we are not versioning releases yet, but we will start doing so soon.

11 Responses to Flash / JavaScript Integration Kit Update / Bug Fix

  1. Rob Flynn says:

    Hi, I’m trying to implement and use the Javascript Integration Kit but am getting this problem from within flash:**Error** C:\Documents and Settings\rob.VIS-INT\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\com\macromedia\javascript\JavaScriptProxy.as: Line 108: There is no property with the name ‘controller’.receiving_lc.controller = this;**Error** C:\Documents and Settings\rob.VIS-INT\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\com\macromedia\javascript\JavaScriptProxy.as: Line 110: There is no property with the name ‘callFlash’.receiving_lc.callFlash = callFlash;Total ActionScript Errors: 2 Reported Errors: 2What’s the problem here – any ideas?

  2. todd messer says:

    i downloaded the latest and greatest and i STILL get the same problem. i unzipped the latest at the site and then replaced it to no effect what so ever. I am on a MAC. that matter?

  3. Marcelo Ferreira says:

    **Error** C:\Documents and Settings\rob.VIS-INT\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\com\macromedia\javascript\JavaScriptProxy.as: Line 110: There is no property with the name ‘callFlash’.receiving_lc.callFlash = callFlash;Change the type of receiving_lc to Object in JavaScriptProxy.a and it will work out.

  4. _marabout says:

    I had the same problem as Rob Flynn : nothing else than undefined retrieved within Flash.The problem is in the JavaScriptFlashGateway.swf : the classpath in its fla is empty. In order to have it work I’ve added “../actionscript” in its fla’s Publish settings > Flash > Actionscripts params. This of course provided the JavaScriptFlashGateway.fla is still in the source/flash/gateway of the downloaded archive.The correct swf is then 1,73KB (as the original one was 420B).

  5. Jeffrey Yam says:

    Hi,I am integrating the kit and I am getting the same problem as Rob Flynn. My JavascriptFlashGateway.swf is correct as the size is 1.73kb.Please help!Thanks,Jeff

  6. Jeffrey Yam says:

    Re: Rob Flynn’s problemThe problem you had with Compiling is because your Flash MX 2004 needs to be updated to 7.2

  7. Jeffrey Yam says:

    Also.. you need to delete your ASO files.location: C:\Documents and Settings\\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\aso

  8. Yaroukh says:

    Because of consecutive calls bug I’ve downloaded the latest build from SVN. Yet I am unable to send a message from within Flash to JS.That’s why I assume I’m also unable to send more messages from JS to AS. The calls don’t even have to go immediatelly after each one – I just can make ONLY ONE JS->AS call. (I think the first call makes JS wait for some callback from within AS, and as the call can’t be done, JS stills waiting …)If some nice person would be willing to repeat my try here’s the code that doesn’t work for me:http://osflash.org/pipermail/flashjs_osflash.org/2005-October/000266.html(Or just to check whether I’m doing something wrong, please…?)!?_Flash8_!? + MSIE6 + WinXP/SP2

  9. Download JavaScript1.zip used in this tutorial.[url=http://h1.ripway.com/castil/videos-fotos-orgias.htm]videos de orgias[/url] – [url=http://h1.ripway.com/castil/corridas-femeninas.htm]corridas femeninas[/url] – [url=http://h1.ripway.com/castil/pelirrojas-desnudas.htm]pelirrojas desnudas[/url] – [url=http://h1.ripway.com/castil/rubias-desnudas.htm]rubias desnudas[/url] – [url=http://h1.ripway.com/castil/sexo-negras.htm]sexo negras[/url] – [url=http://h1.ripway.com/castil/chochos-rapados.htm]chochos rapados [/url] – [url=http://h1.ripway.com/castil/lenceria-porno.htm]chicas en lenceria[/url] – [url=http://h1.ripway.com/castil/fotos-de-corridas.htm]fotos de corridas[/url] – [url=http://h1.ripway.com/castil/chicas-borrachas.htm]chicas borrachas[/url] – [url=http://h1.ripway.com/castil/gays-asiaticos.htm]asiaticos gays[/url] – [url=http://h1.ripway.com/castil/maduras-follando.htm]maduras follando[/url] – [url=http://h1.ripway.com/castil/latinas-follando.htm]Latinas follando[/url] – [url=http://h1.ripway.com/castil/videos-fotos-orgias.htm]fotos de orgias[/url][url=http://h1.ripway.com/castil/viejas-follando.htm]viejas follando[/url]

  10. Rob Claisse says:

    Can anyone tell me if the something about the Javascript Flash Gateway. I’m trying to communicate with a Flash SWF file which is hosted on someone elses server and embeded into a page on my site. So my question is does the JavascriptFlashGateway.swf and the flash swf file that I want to communication with, need to be on the same server?Thanks

  11. waterhammer says:

    I fix this problem with in ctrl-U Actionscript Setting i delete “$(LocalData)/Classes” from classpath and fill full path that point to Classes folder instead. such as “C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes” so when i test movie. it’s fix problem