# attachMovie run slow

**URL:** <https://forum.kirupa.com/t/attachmovie-run-slow/247550>\
**Category:** Uncategorized\
**Created:** [December 26, 2007, 2:16am UTC](https://forum.kirupa.com/t/attachmovie-run-slow/247550 "2007-12-26T02:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzu\_2809](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@dzu\_2809](https://forum.kirupa.com/u/dzu_2809)\
**Post date:** [December 26, 2007, 2:16am UTC](https://forum.kirupa.com/t/attachmovie-run-slow/247550/1 "2007-12-26T02:16:07Z")

</div>

I have a script that attaches movieclips on to the Stage :

```auto
var ipxml:XML = new XML();
ipxml.ignoreWhite = true;
ipxml.load("security.php");
ipxml.onLoad = function() {	
	var ip = "";	
	/*Danh sach cac icon*/
	var ip_server = "127.0.0.1";
	var ip_server1 = "192.178.1.121";
	var ip_server2 = "192.178.1.2";
	/*end DS icon*/
	var _node = ipxml.childNodes[0].attributes;	
	ip = _node.ip;
	if (ip == ip_server or ip == ip_server1 or ip == ip_server2){
		main.attachMovie("01","01",0);
		main.attachMovie("02","02",1);	
		main.attachMovie("03","03",2);
		main.attachMovie("04","04",3);		
		main.attachMovie("05","05",4);
		//main.attachMovie("06","06",5);
		main.attachMovie("07-1","07-1",5);
		main.attachMovie("08","08",6);				
		main.attachMovie("09","09",7);	
		main.attachMovie("13","13",8);			
	}
	
	else {trace("loi")}
};

```

I don’t know why it is making the flash file run slow. I hope i’ll have any help to solve problem. Please help me. :pa:
