# AS3 Variables between Frames

**URL:** <https://forum.kirupa.com/t/as3-variables-between-frames/319009>\
**Category:** flash\
**Created:** [February 6, 2011, 1:30pm UTC](https://forum.kirupa.com/t/as3-variables-between-frames/319009 "2011-02-06T13:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvrb](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mvrb](https://forum.kirupa.com/u/mvrb)\
**Post date:** [February 6, 2011, 1:30pm UTC](https://forum.kirupa.com/t/as3-variables-between-frames/319009/1 "2011-02-06T13:30:28Z")

</div>

Hi everyone.  
I have a little problem in my game. I have a var coins:int = 0; on frame one, and I want to access it from frame 2. I’m not using a document class. Is it possible to make some kind of a global variable like in as2 – without having to put all my code from the main timelime to a document class?

Thanks in advance  
_Edit_ I’ve fixed it now. Is it possible to delete a thread?
