# Accessing variables inside other movieclips

**URL:** https://forum.kirupa.com/t/accessing-variables-inside-other-movieclips/71227
**Category:** Uncategorized
**Created:** [November 22, 2004, 4:17pm UTC](https://forum.kirupa.com/t/accessing-variables-inside-other-movieclips/71227 "2004-11-22T16:17:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![H4T](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/h4t/32/329_2.png) [@H4T](https://forum.kirupa.com/u/H4T)
#### Post date: [November 22, 2004, 4:17pm UTC](https://forum.kirupa.com/t/accessing-variables-inside-other-movieclips/71227/1 "2004-11-22T16:17:50Z")

</div>

I’m currently learning OOP through Sen’s information here at Kirupa, and I’ve decided to try out his “creatures” exercise mentioned in his Best of Senocular thread…I still have a bunch to learn, but I wanted to go ahead and ask a question for a problem I am having right now.

The situation is a random number of sprites are created, and they move around the stage, interacting. They all have a certain amount of “health,” defined as a variable in a MovieClip prototype applied to the MC. When they hit, I want their health to go down a little bit, so how can I access a particular MC’s “health” variable while I’m outside of the MC itself?
