# Net connection problem

**URL:** <https://forum.kirupa.com/t/net-connection-problem/310091>\
**Category:** Uncategorized\
**Created:** [June 1, 2010, 11:54am UTC](https://forum.kirupa.com/t/net-connection-problem/310091 "2010-06-01T11:54:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)\
**Post date:** [June 1, 2010, 11:54am UTC](https://forum.kirupa.com/t/net-connection-problem/310091/1 "2010-06-01T11:54:29Z")

</div>

Hi,

I have a site that loads up images from a database and inserts them via amfphp as bitmaps.

The problem is sometimes they load and sometimes they do not. Is there an issue with net connection? Is there any pitfalls I should look out for a way to keep trying the connection until it works?

Also it is just on a normal server over http. Is there anything I could do to speed it up, specialist flash hosting?

Thanks,

```
     var res:Responder = new Responder(onResult, onFault);
     var gw:NetConnection = new NetConnection();
     
      var remote = "http://myurl/flash/amfphp/gateway.php";
   gw.connect(remote);
    gw.call(theQuery, res);

```

}
