The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsHi, I am trying to create a login system where a user would be able to login inside of one flash game on say, example.com, and then that same login data would be preserved for all the games on example.com and also the games on foo.com and bar.world.com
I am new to shared objects in flash so if anybody knows of a way to do this in either php, as3, html, js (or a mixture of all) then that would be great.
(PS. I would prefer not to use a method that requires a javascript bridge or an embedded flash var to retrieve cookies as this is impossible for games that are played on game-portal sites where only a swf file is submitted, like newgrounds)
Thanks.
BUMP.
So um how does mochigames do it then?
At 1/6/10 08:29 AM, Yambanshee wrote: SharedObject for AS3
They are domain specific
What I would do is store the username/password in a mySQL database. And retrieve/update it whenever I want in the swf.
I don't know if you can do that with AS2, though...
Flash can still make http requests to unrelated servers, just setup the proper policy file.
Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.
At 1/6/10 11:08 PM, InnerChild548 wrote: What I would do is store the username/password in a mySQL database. And retrieve/update it whenever I want in the swf.
I don't know if you can do that with AS2, though...
This wouldn't work for preserving the login state because the only way I could associate the user/pass session would be to link it with their current IP address. And the problem with that is, if they have a dynamic IP or it is shared with other ISP users then people will start being automatically logged in as other people (not good)