I am using flashvars to pass a URL that Flash uses to load XML data.
In Flash, my Actionscript says:
var flashVar = root.loaderInfo.parameters.flashVar;
if (flashVar != undefined) {
flashVar = flashVar;
// Loads data into XML object and away we go //
So far, so good so what’s my problem?
Well, I want to create a method to use in case the URL is entered into the flashvar incorrectly. In such a case, the argument would still hold true as the value is not undefined…just incorrect.
I am able to add an argument that detects whether the flashvar is empty:
} else if (flashVar == "") {
// Display an error message or use a default URL //
So my question is, what argument would I use to detect when an INVALID value is passed to the flashVar variable?
I appreciate any help that I can get. Thanks.