00:00
00:00
Newgrounds Background Image Theme

SYNAPSEX just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Local storage settings box

1,177 Views | 2 Replies
New Topic Respond to this Topic

Local storage settings box 2006-10-26 08:11:43


So I just got to play the super flash bros' new game (http://newgrounds.com/portal/view/346024) and when you start a new game and your allowed save data is not set to ulimited, this thing pops op

Newgrounds.com wants to set the allowed save data to unlimited bla bla bla

Now this is exactly what I need for the game I want to release today, because it still has a big red text in it "If you want to save your game properly you need to ... bla bla bla... right click > settings and set to unlimited" and I believe the super flash bros version is better.

So, can anyone tell me how to do such a thing?


Swing a Little more!

.. ROCK OUT!

BBS Signature

Response to Local storage settings box 2006-10-26 09:33:07


so = SharedObject.getLocal("save");
so.flush(15000000);

That flushes the SharedObject, and sets the minimum needed space to that number of bytes. If its set below that, the little window pops up. Anything over 10MB in the flush function will ask for unlimited space.

Tom~

Response to Local storage settings box 2006-10-26 10:22:54


At 10/26/06 09:33 AM, The-Super-Flash-Bros wrote: so = SharedObject.getLocal("save");
so.flush(15000000);
Tom~

Gracias beaceaup, now my game is done.


Swing a Little more!

.. ROCK OUT!

BBS Signature