Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to connect sql database with Flash

Participant ,
Nov 01, 2009 Nov 01, 2009

Dear Friends,

Iam working on a quessinarie (assesment) for elearning software. i want to connect sql database with flash and save my records in back end like add, delete, modification of student result and details.

Kindly help me to connect the sql database. or dot net server. I know how to connect PHP and mysql. But my client dont want php. only sql database and do the add, del, modificaiton.

Thanks in advance,

Syed Abdul Rahim

TOPICS
ActionScript
4.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 01, 2009 Nov 01, 2009

this cannot be done - you must run a server-side script to access a server DB - php is a common option, along with Java, JavaScript, ASP, ColdFusion, etc.  you will need to educate your client on the fact that a client-side script cannot do this for security reasons.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 01, 2009 Nov 01, 2009

clbeech, do you know how to do that with ASP.NET? I think the actionscript 3.0 that should take care of this stuff is by using the URLLoader and URLVariables classes... but from there, I have no idea what to do...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 02, 2009 Nov 02, 2009

unfortunately no, i do not know ASP well enough to give any code advice, other than the basic concept:  make a request on a server-side script (such as ASP) via URLLoader - the script receives variable values (if required), runs the DB queries you wish to invoke, and 'returns' the results - pick them up in the URLVariables class via the event handler in Flash and assign them to local properties if needed, etc.

there are quite a few threads that you could find more specific information on the ASP side, here and elsewhere around the net.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 02, 2009 Nov 02, 2009

Yeh that's almost the same procedure you would follow to do this stuff with PHP. Unfortunately, everybody uses AS3 with PHP rather than ASP.NET but anyway, I'll try to find some code snippets that might help. Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 25, 2010 Mar 25, 2010
LATEST

hi friend,

thks for ur response. pls help me to connect asp.net and save datas.....

thanks and Regards,

Syed Adbul Rahim

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines