00:00
00:00
Newgrounds Background Image Theme

sosualadies 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!

AS: Save and Load

37,820 Views | 127 Replies
New Topic Respond to this Topic

Response to AS: Save and Load 2009-12-28 17:26:31


I wanted to thank you for this useful piece of information, Denvish. It took me a while, but I got used to it and now Im using it quite often. The thing is, I want to be able to save the whole lvl so to say. Im using arrays to create these and want to save the state it was in before i.e. the character left the screen. Ive been searching the internet for a way how to store arrays this way, and after finding only a few useful sites, where it still was "underexplained"(not n00b language) for me, I decided to turn to u guys for help. Maybe there are more people which have the same problem as me. And if its very easy to do, then please, dont call me names :D

Response to AS: Save and Load 2011-05-01 08:23:54


To save/load an array:
SAVE:
savefile.data.scoreArray = scoreArrayHere;
LOAD:
scoreArrayHere = savefile.data.scoreArray;

Haven't checked, you might need to do this directly before:
var scoreArrayHere:Array = new Array();

Response to AS: Save and Load 2011-09-20 03:53:49


thanks for that :D


onClipEvent(load){

gotoAndPost(BBS);

}

BBS Signature

Response to AS: Save and Load 2015-10-23 19:38:36


Everyday i saw this url in bookmarks and everyday i read all these 50 times and still my brain can't figure it out. It's almost here but can't do it :D

Response to AS: Save and Load 2015-10-26 13:55:17


At 10/23/15 07:38 PM, Cyb3rNuX wrote: Everyday i saw this url in bookmarks and everyday i read all these 50 times and still my brain can't figure it out. It's almost here but can't do it :D

You've read this thread every day for 10 years?


- Matt, Rustyarcade.com

Response to AS: Save and Load 2015-11-10 08:30:15


Last time i was googling this yesterday...still confusing :3

Response to AS: Save and Load 2015-11-11 11:30:29


At 11/10/15 08:30 AM, Cyb3rNuX wrote: Last time i was googling this yesterday...still confusing :3

What don't you understand?


- Matt, Rustyarcade.com

Response to AS: Save and Load 2015-11-11 16:34:58


It is really confusing, and don't work for me. I am not newbie to actionscript 2, but i know lot of (simple) things, like clicker game, quiz, platform game etc...