I actually use PDT: http://www.eclipse.org/pdt/
Now the great thing about this is that I use it as my base and use Flex
Builder Eclipse plugin. So you're doing PHP and Flex in 1 place. I'm not
sure how you want to communicate with the PHP. Personally I like using
URLLoader. There are many other ways to consume data (AMF, WebServices).
I personally prefer to use XML because E4X gives you so much power on
filtering and manipulating data on the client end. Here is the function
I use for retrieving XML:
import flash.errors.IOError;
import flash.net.URLLoader;
import flash.net.URLVariables;
public function loadXML(url:String, vars:URLVariables,
completeFunction:Function):void {
var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest(url);
if (vars != null) {
req.data = vars;
}
req.method = URLRequestMethod.POST;
loader.addEventListener("complete", completeFunction);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(req);
}
public function ioErrorHandler(event:IOError):void {
trace(event.message);
}
It just cuts down the rest of my code in other places. All you have to
do then is have your result function specified for example:
public function gotData(event:Event):void {
var xmlResult:XML = XML(event.target.data);
}