In the function below I would like to be able to pass an XML file to the SWF. I would like this to be optional, so that I can use this function with SWFs that do not have XML input. Is this possible?
Code:
function loadSwfToDiv(swf_url, div_id, ww, hh)
{
var flashvars = {};
var params = {};
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF(swf_url, div_id, ww , hh, "9.0.0", false, flashvars, params, attributes);
}
function loadSwfToDiv(swf_url, div_id, ww, hh) {
var swf_url_var = !swf_url ? code if argument empty : code if argument not empty ;
Is this what you are asking? Basically, if an argument is not passed, default it; if it is passed, use it?
__________________ ^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".