# Memorize var

**URL:** https://forum.kirupa.com/t/memorize-var/309729
**Category:** flash
**Created:** [May 23, 2010, 11:59am UTC](https://forum.kirupa.com/t/memorize-var/309729 "2010-05-23T11:59:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jmbs2010](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jmbs2010](https://forum.kirupa.com/u/jmbs2010)
#### Post date: [May 23, 2010, 11:59am UTC](https://forum.kirupa.com/t/memorize-var/309729/1 "2010-05-23T11:59:47Z")

</div>

[COLOR=black][FONT=Arial]Hello[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]I saw this tutorial that Jeremy Moseley put [http://www.kirupa.com/developer/actionscript/shared\_objects.htm[/FONT][/COLOR][COLOR=black][FONT=Arial]](http://www.kirupa.com/developer/actionscript/shared_objects.htm%5B/FONT%5D%5B/COLOR%5D%5BCOLOR=black%5D%5BFONT=Arial%5D)  
My knowledge in flash is not sufficient to achieve certain objectives.  
I wonder if anyone can help me create a flash file that uses the same principles of storage of variables that the tutorial Jeremy Moseley.  
What I want is a flash file in CS2 to do the following:  
1 - The first time I run the file it will assign to a variable numerical value “1” and records.  
2 - Whenever I re-run the file it will add “+1” to the variable and return the record.  
Briefly it is a counter that counts how many times I ran the “swf”.[/FONT][/COLOR]\</SPAN\>\</SPAN\>  
[COLOR=black][FONT=Arial]Thanks[/FONT][/COLOR]\</SPAN\>\</SPAN\>
