Skip to main content
Known Participant
September 14, 2012
Question

Save data to server by an app

  • September 14, 2012
  • 3 replies
  • 997 views

Hi folks, I need to save some text, or an array, into a server... directly from my app developed in Adobe AIR using Flash (Action Script 3).

Can you help me?

Thank you so much!

Cheers

Brandon

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Colin Holgate
Inspiring
September 14, 2012

You can do that the same ways as on a desktop, just do a GET or POST to a server side script.

Known Participant
September 14, 2012

Hi Colin, thank you so much for the answer.

I'm a newbie... can you link me a page talking about that or maybe paste a part of the code to do so?

Thank you so much again!

Cheers

Brandon

Colin Holgate
Inspiring
September 14, 2012

Here's the help article on URLRequest:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html

You would use that with URLLoader:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/URLLoader.html

Look at the examples on that page, see if it gets you started. It's showing the loading of a text file at a URL, but the URL could just as easily be to a server side PHP, ASP, or JSP.