# Referring to other variables?

**URL:** <https://forum.kirupa.com/t/referring-to-other-variables/305422>\
**Category:** flash\
**Created:** [February 25, 2010, 1:08am UTC](https://forum.kirupa.com/t/referring-to-other-variables/305422 "2010-02-25T01:08:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny0123](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Danny0123](https://forum.kirupa.com/u/Danny0123)\
**Post date:** [February 25, 2010, 1:08am UTC](https://forum.kirupa.com/t/referring-to-other-variables/305422/1 "2010-02-25T01:08:16Z")

</div>

Hi. Is it possible to refer to a variable in a class file separate from the one you are working in?

Say Class1.as had a variable named “exampleVar”, and in Class2.as you wanted to put something like “exampleVar++;”.

Is this possible and if so how would it be achieved?

Thanks! 😃
