How do i programatically send a httpService.send

i have a flex 3 web app and a class with the following function attached

but when i run this i allways get the error
[MessagingError message='Destination 'php/serve.php' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']

public function SavetoSQL() : void {
			var params:Object = {};
			params["action"] = "savedefaulttourdata";
			var service : HTTPService = new HTTPService();
			service.destination = "php/serve.php";
            service.method = "POST";
            service.addEventListener("result", httpResult);
            service.addEventListener("fault", httpFault);

Open in new window

Who is Participating?
Gary BenadeConnect With a Mentor Commented:
Try setting destination to a fully qualified address eg:
service.destination = "";
Gary BenadeCommented:
Any luck getting it to work? post your new code if not
Robinsonx6Author Commented:
sorry for the delay i have been off work for some time due to a tuma in the old engine
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.