Im creating an iPhone game with Adobe AIR, and I want to be able to load a simple text msg into an dynamic text box on the games front screen from my server (and then be able to update that text file on the server, so it updates automatically in the game after the game is on the app store) How would I go about acheiving that? is it as simple as using a getURL? are there any specifical issues with trying to do this on the iPhone via AIR that I should be aware of?

Thanks for any advice.


1 Answer 1


You could just use an URLLoader as you would with a classic flash application.

Something like that:

var request:URLRequest = new URLRequest("url to load");
var loader:URLLoader = new URLLoader();
        _myTextField.text = URLLoader(event.target).data as String

There's no restriction on iOS regarding loading external URLs (as long as you ain't loading and interpreting code), but you should check if your user has an internet connection before trying to load the URL and handle it. You might also want to cache the returned file.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .