I have done like this b4 but with flash CS3 by using URLLoader and URLRequest so it's the same idea in flex try using this concept
public function sendSQLQuery(aspURL:String, variables:URLVariables, returnSQLXMLCallback:Function):void
{
var myXMLURL:URLRequest = new URLRequest(aspURL);
myXMLURL.data = variables;
myXMLURL.method = URLRequestMethod.POST;
var myLoader:URLLoader = new URLLoader();
//Define the event handlers to listen for success and failure
myLoader.addEventListener ( IOErrorEvent.IO_ERROR, handleIOError );
myLoader.addEventListener ( HTTPStatusEvent.HTTP_STATUS, handleHttpStatus );
myLoader.addEventListener ( SecurityErrorEvent.SECURITY_ERROR, handleSecurityError );
myLoader.dataFormat = URLLoaderDataFormat.TEXT;
myLoader.addEventListener("complete", returnSQLXMLCallback);
myLoader.load(myXMLURL);
}
and i recieve the returned page in XML format and then parse it
Ahmy
2009-06-02 10:06:00