# How to get variables in main mxml to be seen by my class?

**URL:** <https://forum.kirupa.com/t/how-to-get-variables-in-main-mxml-to-be-seen-by-my-class/315726>\
**Category:** Uncategorized\
**Created:** [November 2, 2010, 11:37pm UTC](https://forum.kirupa.com/t/how-to-get-variables-in-main-mxml-to-be-seen-by-my-class/315726 "2010-11-02T23:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMDdude](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AMDdude](https://forum.kirupa.com/u/AMDdude)\
**Post date:** [November 2, 2010, 11:37pm UTC](https://forum.kirupa.com/t/how-to-get-variables-in-main-mxml-to-be-seen-by-my-class/315726/1 "2010-11-02T23:37:16Z")

</div>

As the title says,

how can I get access to public variables in my main .mxml application from my AS class and vice versa?

Also, say I have a main container panel defined in mxml, how can I reference to it’s id from a separate class file?

Thanks.!
