# Saving through cookies

**URL:** <https://forum.kirupa.com/t/saving-through-cookies/319949>\
**Category:** flash\
**Created:** [March 9, 2011, 5:26pm UTC](https://forum.kirupa.com/t/saving-through-cookies/319949 "2011-03-09T17:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverneo188](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@silverneo188](https://forum.kirupa.com/u/silverneo188)\
**Post date:** [March 9, 2011, 5:26pm UTC](https://forum.kirupa.com/t/saving-through-cookies/319949/1 "2011-03-09T17:26:43Z")

</div>

I would like some help with this. I am working on an RPG-esque game and would like to know how to save these variables

MaxHP = 100;  
MaxMP = 55;  
Gold = 100;  
armorHelm = 1;  
armorChest = 1;  
armorLegs = 1;  
weapon = 1;

I know i’m a little bit of a flash guru myself but this coding has been something that has always given me trouble.

I want to know how to save the data AND load it back with buttons.  
Thanks in return
