I am trying to pass parameters to my .swf generated like this:
And have included the following code in my document class.
private var n1:int = getSWFParam(n1,5);
protected function getSWFParam(num:int, defaultValue:int):int
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
if(paramObj[num] != 0)
But somehow the code is executing assuming a value of n1=2, although I have not assigned n1 as 2 anywhere. Where am I going wrong?