# onLoad not successful

**URL:** <https://forum.kirupa.com/t/onload-not-successful/244514>\
**Category:** flash\
**Created:** [November 19, 2007, 8:34am UTC](https://forum.kirupa.com/t/onload-not-successful/244514 "2007-11-19T08:34:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frg10](https://avatars.discourse-cdn.com/v4/letter/f/439d5e/32.png) [@Frg10](https://forum.kirupa.com/u/Frg10)\
**Post date:** [November 19, 2007, 8:34am UTC](https://forum.kirupa.com/t/onload-not-successful/244514/1 "2007-11-19T08:34:27Z")

</div>

Hi

This is pretty simple that I just cant make it work. When I ran my FLA with this codes, it works ok. But uploading to actual server and run it, the load turns out to be unsuccessful. Any help would be appreciated.

onClipEvent (load) {  
myBaby = new Array();  
myVars = new LoadVars();  
myVars.onLoad = function(success) {  
if (success == true) {  
\_parent.ahoy.text = “loaded”;  
for (i=0; i\<myVars.count-1; i++) {  
attachMovie(“searchResult-single”,“searchResult-single”+i,i);  
var newName = eval(“searchResult-single”+i);  
newName.\_x = 0;  
newName.\_y = (i)\*90;

```
       myBaby* = new Array();
       what = "sid"+(i+1);
       myBaby*[0] = myVars[what];
       newName.searchTitle = myBaby*[0];
   }

```

}else{  
\_parent.ahoy.text = “not loaded”;  
}  
};  
myVars.load(“[http://SomeDomainName.com/projects/searchresult\_ID.php",this,"GET](http://SomeDomainName.com/projects/searchresult_ID.php)”);  
}
