Load XML,, I'm using HTTPService to load the XML which i generated with and PHP File which is loaded from mySQL. This works fine, I initate an function from creationcomplette in the application tag..like so:
But here is my problem the only thing that is happening is that the test.send() is fired, but the .lastResult is still the same length and the same object as before even if they have doubled in the PHP (XML) file.
I'm a bit of a novice at Flex but it seems like you don't need to add the event listeners.
I'm just guessing but I assume you have <mx:HTTPService> tag that identifies the result handler and the fault handler. The creationcomplete identifies the function it needs to execute(loadData) and the click event on your button identifies the function it needs to execute(reload). From there you should be able to just add the url if it hasn't been already and fire test.send().
Then test.send() will either hit the resultHandler or the faultHandler.