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.