Mike Chambers

code = joy

Flash / JavaScript Integration Kit Update / Bug Fix

with 12 comments

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.

Written by mikechambers

June 16th, 2005 at 1:40 am

Posted in General

12 Responses to 'Flash / JavaScript Integration Kit Update / Bug Fix'

Subscribe to comments with RSS

  1. 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: 2

    What’s the problem here – any ideas?

    Rob Flynn

    29 Jul 05 at 9:34 am

  2. 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?

    todd messer

    16 Aug 05 at 7:21 am

  3. **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.

    Marcelo Ferreira

    2 Sep 05 at 8:51 am

  4. 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).

    _marabout

    7 Sep 05 at 11:55 am

  5. 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

    Jeffrey Yam

    20 Sep 05 at 2:45 pm

  6. Re: Rob Flynn’s problem

    The problem you had with Compiling is because your Flash MX 2004 needs to be updated to 7.2

    Jeffrey Yam

    20 Sep 05 at 3:55 pm

  7. 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

    Jeffrey Yam

    21 Sep 05 at 7:22 am

  8. 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

    Yaroukh

    26 Oct 05 at 4:37 am

  9. 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

    Rob Claisse

    10 Apr 06 at 4:27 am

  10. 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

    waterhammer

    5 Jun 06 at 10:25 pm

  11. I think an older version of the Flash/JavaScript integration kit is posted on the download page. Do you have the latest version that uses addFlashVar?

    David

    25 Nov 07 at 10:56 am

  12. Hey Mike.

    I am hoping you still read this blog.

    I have a whole bunch of legacy client projects which use flash/javascript integration kit for corporate Flash version reasons.

    Recently a particular client updated everyone to 9.0.115, and this breaks the FJIK implemetation in IE (seems to work in FF / Safari which is odd though). basically no errors, but the javascript function never gets called in the HTML page.

    I have added all of the standard System.security.allowDomain(“*”) as well as allowScriptAccess=”always” ala cross domain ExternalInterface requirements, which unfortunately did not fix it.

    Do you know of anything in the r115 specifically which needs a workaround (all other previous version for the F9 player works as intended)?

    TIA,

    misterhee

    misterhee

    23 Mar 08 at 11:15 pm

Leave a Reply