flashVars Boolean
Hello,
Working on a site that uses flashVars. I was able to work with number variables no problem, but I have a boolean value that is proving to be more tricky than I anticipated. Any help would be appreciated!
the HTML Param is "isMetal"
I've tried a few things and this is what I have now...
var isMetal:Boolean;
function init():void
{
// true if 'isMetal' is set to '1'; false otherwise
isMetal = loaderInfo.parameters.isMetal != "0";
}
Then I try to use the boolean to pick between filter settings and layer blend modes... unfortunately, it always uses what happens after "else."
if(isMetal != 0)
{
color = new AdjustColor();
color.brightness = 100;
color.contrast = 10;
color.hue = 0;
color.saturation = -100;
loadLogo.blendMode = BlendMode.SCREEN;
}
else
{
color = new AdjustColor();
color.brightness = 0;
color.contrast = 10;
color.hue = 0;
color.saturation = -100;
loadLogo.blendMode = BlendMode.MULTIPLY;
}
