Flash and Databases

Started by
4 comments, last by swiftcoder 12 years, 4 months ago
Does Flash CS4 support database "CRUD" type operations?

Or,

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

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.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]


[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.

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'.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]


[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?

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.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement