# Cross-Frame Variables

**URL:** <https://forum.kirupa.com/t/cross-frame-variables/304526>\
**Category:** Uncategorized\
**Created:** [February 9, 2010, 1:03pm UTC](https://forum.kirupa.com/t/cross-frame-variables/304526 "2010-02-09T13:03:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgm432](https://avatars.discourse-cdn.com/v4/letter/l/7cd45c/32.png) [@lgm432](https://forum.kirupa.com/u/lgm432)\
**Post date:** [February 9, 2010, 1:03pm UTC](https://forum.kirupa.com/t/cross-frame-variables/304526/1 "2010-02-09T13:03:55Z")

</div>

OK, assuming that I know enough about flash as3 to do some game programming, here’s my issue:

I noticed that I can not find a way to make a variable accessible in more than one frame. My issue here is that for instance if I have a game and frame 1 has the game and frame 2 has the win screen and I want the win screen to display a score, I don’t know how to do it. So the variable from frame 1 which holds the display can’t be acessed in frame 2. I understand how to use OOP proggramming and classes, but you need an instance of that class to hold the variable, and It seems I can’t cross-frame acess objects either. If anyone has a workaround for this, please post here.

(I understand I could use a global variable, I don’t know how to do this but I know most people don’t. Any solutions not involving a global variable would be great, but if globals are still what people use in as3 please tell me how!)😟

Any help would be much appreciated, and please understand I don’t know many complex terms so you may have to explain them… 😃

-Lgm432 :o\_rly:
