• Advertisement
Sign in to follow this  

Flash and Databases

This topic is 2262 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does Flash CS4 support database "CRUD" type operations?

Or,

Can Flash send and receive info from web services, which could do the database interaction?

Share this post


Link to post
Share on other sites
Advertisement

[quote name='flashinpan' timestamp='1323800092' post='4893576']
Can Flash send and receive info from web services, which could do the database interaction?

Yes.

At it's most simplistic, you can use URLLoader to load PHP pages on the web server, which in turn talk to the backend database.
[/quote]

What about ASP.NET / C#?

if I load the page...will it do so behind the scenes? I don't want to have to navigate to another web page to save the game state.

Share this post


Link to post
Share on other sites

What about ASP.NET / C#?

Sure, any server-side technology will do. All URLLoader does is load web pages - that those web pages may infact be PHP/ASP/etc. scripts is purely incidental.

if I load the page...will it do so behind the scenes?[/quote]
Yes. URLLoader is analogous to an AJAX request in JavaScript; it loads the page programmatically into some sort of ActionScript object.

Pardon my lack of detail on this (Flash really isn't my forte), but there are a lot of references/tutorials if you google around for 'Flash ASP'.

Share this post


Link to post
Share on other sites

[quote name='flashinpan' timestamp='1323801313' post='4893587']
What about ASP.NET / C#?

Sure, any server-side technology will do. All URLLoader does is load web pages - that those web pages may infact be PHP/ASP/etc. scripts is purely incidental.

if I load the page...will it do so behind the scenes?[/quote]
Yes. URLLoader is analogous to an AJAX request in JavaScript; it loads the page programmatically into some sort of ActionScript object.

Pardon my lack of detail on this (Flash really isn't my forte), but there are a lot of references/tutorials if you google around for 'Flash ASP'.
[/quote]

I know how to do ajax requests in javascript.

So I could pass a URL that points to a webservice ... using URLLoader to do it?

ie "URLLoader(mywebservice.asmx)" and that would work?

Share this post


Link to post
Share on other sites

So I could pass a URL that points to a webservice ... using URLLoader to do it?

Yes.

ie "URLLoader(mywebservice.asmx)" and that would work?[/quote]
The syntax is a little more convoluted, sadly. You need a URLRequest, and to setup a listener for the URLLoader... Take a look at the examples.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement