Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Dave Johnson

Dave Johnson

JavaScript Flash Integration Kit

April 20th, 2007

For those of you out there that are thinking of using the JavaScript Flash Integration Kit for building an application watch out for this little bug.

In the FlashTag.addFlashVars(string) function it just sets the internal variable this.flashVarsStr. However, in the FlashTag.toString() method it checks if the this.flashVars variable is null or not to determine if it should write the flash variables into the Flash HTML tag. To fix it, I just changed it from this:

FlashTag.prototype.addFlashVars = function(fvs) {
  this.flashVarsStr = fvs;
}

to this:

FlashTag.prototype.addFlashVars = function(fvs) {
  this.flashVarsStr = fvs;
  if (this.flashVars == null)
    this.flashVars = new Object();
}

Other than that it seems to work pretty nicely.

Del.icio.us

This entry was posted on Friday, April 20th, 2007 at 8:44 pm and is filed under Uncategorized, AJAX, Flash, bug. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “JavaScript Flash Integration Kit”

  1. Andre Charland Says:

    Is this this project you’re talking about: http://osflash.org/projects/flashjs

Leave a Reply


Search Posts

Pages

Archives

Categories

All contents are (c) Copyright 2006, Nitobi Software Inc. All rights Reserved
Dave Johnson Entries (RSS) and Comments (RSS).