I run into the same question even though my application is not AIR based but webbased.
Did you resolve the problem? If yes, I am very interested
I had the same problem and I spend a lot of time to solve that.
Now, I think to found a solution.
Indeed I use a file config to store all mySQL parameter.
And I call my httpservice like that:
var urlStudent:urlManager = new urlManager();
phpPatientDetail.url=urlStudent.urlService() + "loadStudentById.php";
public class urlManager
public static var urlServiceRoot : String;
public static var urlImagesRoot : String;
public function urlManager()
public function urlService():String
var _portDB : String;
var netPrefGlob : NetworkPref = FileSerializer.readObjectFromFile("prefNetwork.up") as NetworkPref;
_portDB = netPrefGlob.portDb;
_hostDB = netPrefGlob.host;
_rootDB = netPrefGlob.rootDb;
urlServiceRoot = "http://" + _hostDB+ ":" + _portDB + "/"+ _rootDB +"/services/";
I hope this exemple can help you!