# Acess a variable in a class through main fla

**URL:** <https://forum.kirupa.com/t/acess-a-variable-in-a-class-through-main-fla/326250>\
**Category:** Uncategorized\
**Created:** [December 1, 2011, 7:10pm UTC](https://forum.kirupa.com/t/acess-a-variable-in-a-class-through-main-fla/326250 "2011-12-01T19:10:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFRS](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@MFRS](https://forum.kirupa.com/u/MFRS)\
**Post date:** [December 1, 2011, 7:10pm UTC](https://forum.kirupa.com/t/acess-a-variable-in-a-class-through-main-fla/326250/1 "2011-12-01T19:10:14Z")

</div>

I am trying to make the life of the bars in my brick breaker game increase as i pass a level, and through that i’m using a variable that has their amount of hits that they can withstand from the ball. The variable is in my class.

The thing is that when i put the variable in my main fla. (which is the only other option that i have) only 1 brick gets destryoed, the other ones are invincible. I don’t get why this happens, but either way…

Does anyone knows how to acess a variable that is inside a class from the main fla. ?

Is it classname.variable? Cause i tried this way and it didn’t worked.
