I’m new to AS2 and I saw there are functions to post data asynchronously: Send and SendAndLoad. However, they have unpredictable behavior when executed since they are async, and can finish after or before other functions.
But it doesn’t matter if my script blocks to wait for a download.
Thus, I’m searching for a way to synchronously download a webpage in AS2 to a string.
Loading data in a synchronous fashion would result in your Flash movie ‘locking up’ whilst it downloads the external data – which isn’t really what you want to happen. It would be far better to construct your code in such a way that it loaded the data Asynchronously, and then start a synchronous action afterwards.
I don’t think a synchronous loading process like you’re after is really possible, so it could be a case of reworking your code. Can you provide a code example?