# Accessing variable from as files

**URL:** <https://forum.kirupa.com/t/accessing-variable-from-as-files/307418>\
**Category:** Uncategorized\
**Created:** [April 2, 2010, 11:28pm UTC](https://forum.kirupa.com/t/accessing-variable-from-as-files/307418 "2010-04-02T23:28:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackout188](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@blackout188](https://forum.kirupa.com/u/blackout188)\
**Post date:** [April 2, 2010, 11:28pm UTC](https://forum.kirupa.com/t/accessing-variable-from-as-files/307418/1 "2010-04-02T23:28:57Z")

</div>

Is it possible to use variable on the frame in the actionscript file.

for example, I have a variable named levels on my frame, and in my action script file I want to use it in a if statement, such as if(levels\>1){. Is it possible?

thank you
