Look for the variables from HTML

Hello

I'm checking for a var that is passed in a SWF via HTML (file.swf? var1 = something) However when I check for the var on the first image, all by publishing the SWF in the test environment it tells me that the var is not set.

If (s == 'something') {}
doSomething();
} else {}
doSomethingElse();
}

The var may or may not be passed into the SWF file. So when I test this locally in the Flash authoring environment the output window tells me it is ' is not defined. Is there a way to test without defining "?" Definition ' will overwrite any value that is passed into the file SWF will not it?

Thank you

LoaderInfo (this.root.loaderInfo.parameters);

Tags: Adobe Animate

Similar Questions

Maybe you are looking for