Skip to main content
Inspiring
December 28, 2016
Answered

Getting questions & answers from a database in ActionScript 3

  • December 28, 2016
  • 1 reply
  • 349 views

Hi all,

I'm new to using Animate and wanted to know if there were any tutorials on how to retrieve question and answers from a database and use them as part of a test.

From what I have seen already, I know its classed as a security flaw having to allow all connections to the database but it doesn't matter for this - no personal data is being stored.

Thanks in advance,

Jack.

This topic has been closed for replies.
Correct answer kglad

yes.

with air for desktop you can use the sqlconnection and related sql classes to create and use a local database.

1 reply

kglad
Community Expert
Community Expert
December 28, 2016

i've used actionscript (urlloader) to communicate with php and the php to query the database.

for mobile air apps, i've also used actionscript to communicate with google's firebase using myflashlabs ane's.

Inspiring
December 29, 2016

Thanks, kglad.

Will I be able to select random rows from my database with this to show different questions to the user with more than 1 answer by using URLLoader?

This is just doing to be a desktop app.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 29, 2016

yes.

with air for desktop you can use the sqlconnection and related sql classes to create and use a local database.