I want to develop the following program in AS3
main -> Async call A -----> join
|- Async call B ->|
|- Async call C ->|
–
var xmlLoaderA:URLLoader = new URLLoader();
var xmlLoaderB:URLLoader = new URLLoader();
var xmlLoaderC:URLLoader = new URLLoader();
xmlLoaderA.load(new URLRequest("http://example.com/a.xml"));
xmlLoaderB.load(new URLRequest("http://example.com/b.xml"));
xmlLoaderC.load(new URLRequest("http://example.com/c.xml"));
xmlLoaderA.addEventListener(Event.COMPLETE, xmlLoadedA);
xmlLoaderB.addEventListener(Event.COMPLETE, xmlLoadedB);
xmlLoaderC.addEventListener(Event.COMPLETE, xmlLoadedC);
A Async call has HTTP access and join method merge the data from each HTTP access.
If you have a some example I’m happy.
The raix framework allows composition of asynchronous operations:
Edit: I misunderstood your async requirements. Updated to fetch all three at the same time:
Disclaimer: I am the author of raix