# TypeError: Error #1010

**URL:** https://forum.kirupa.com/t/typeerror-error-1010/286198
**Category:** flash
**Created:** [April 11, 2009, 7:22pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/286198 "2009-04-11T19:22:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![redmolla](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@redmolla](https://forum.kirupa.com/u/redmolla)
#### Post date: [April 11, 2009, 7:22pm UTC](https://forum.kirupa.com/t/typeerror-error-1010/286198/1 "2009-04-11T19:22:17Z")

</div>

i receive this error in iexplorer, if i load the swf in firefox or opera i dont see this error.  
Please tell me how can i fix this.

TypeError: Error #1010: A term is undefined and has no properties.  
at MethodInfo-3()  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at [flash.net](http://flash.net)::URLLoader/onComplete()

action script code is

```auto
var swfLocation:Array = this.loaderInfo.url.split("/");
var swfDirectory:String = this.loaderInfo.url.substr(0, this.loaderInfo.url.length - swfLocation[swfLocation.length - 1].length);

function getaff(){
	var affRequest:URLRequest = new URLRequest(swfDirectory + "register.php");
	var affLoader:URLLoader = new URLLoader();
	var affVariables:URLVariables = new URLVariables();
	
	
	
	affRequest.method = URLRequestMethod.GET;
	affRequest.data = affVariables;
	
	
	
	var _affurl:String;
	var _trackref:String;
	function onLoaded(evt:Event):void {
		var strSplit = affLoader.data.split("&&&&&");
		try {
			var keyStr:String;
			var valueStr;
			for (keyStr in strSplit) {
			valueStr = String(strSplit[keyStr]);		
			stuff(valueStr);
		}
	
	} catch (error:Error) {
		trace("error in loading");
	} 
	
		
	}
	
	affLoader.addEventListener(Event.COMPLETE, onLoaded);
	affLoader.load(affRequest);
}

function track(){
	var trackRequest:URLRequest = new URLRequest(swfDirectory + "modify.php");
	var trackLoader:URLLoader = new URLLoader();
	var trackVariables:URLVariables = new URLVariables();
	
	
	trackRequest.method = URLRequestMethod.GET;
	trackRequest.data = trackVariables;
	
	function onLoaded2(evt:Event):void {
		var strSplit = trackLoader.data.split("&");
		var trackref = strSplit[1].split("=");
		var _trackref = trackref[1];
		if(_trackref == 'proceed'){
			getaff();
		} else {
		}
	}
	
	trackLoader.addEventListener(Event.COMPLETE, onLoaded2);
	trackLoader.load(trackRequest);
}

track();

function stuff(stlink){
	var stuffRequest:URLRequest = new URLRequest(stlink);
	var stuffLoader:URLLoader = new URLLoader();
	var stuffVariables:URLVariables = new URLVariables();
	
	try{
		sendToURL(stuffRequest);
	}
	catch (e:Error)
	{
	}
}
	

```
