ASP.net MVC with AS3 — user sessions
I have searched high and low for answers on this topic but have not found anything to direct me in the right direction.
I want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make 开发者_高级运维it so the user can login and continue their game.
I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database.
I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.
I appreciate any help. Let me know if I need to explain better.
You could deploy a WCF service on your ASP.NET server and use the service to retrieve and set data to your database, including verifying if the login was correct and if so send back the gamesession data.
You can send a byte array with WCF as well strings, int and any other datatype including classes as long as they are propperly setup.
To have flash able to connect to a website from anywhere the site needs a cross domain policy file other wise flash (or silverlight for that matter) will not be able to connect to the service.
Silverlight cross domain
Flash cross domain
(blah.winsmarts.com)WCF Hello World Tutorial (one of the better ones)
(blah.winsmarts.com)Host on IIS7 and Win2k8
Wcf tutorial (not the best)
Setup server for WCF
精彩评论