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

Dave Johnson

Archive for the 'bug' Category

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.


Search Posts

You are currently browsing the archives for the bug category.

Pages

Archives

Categories

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