# Declare a variable to change MC value

**URL:** https://forum.kirupa.com/t/declare-a-variable-to-change-mc-value/292833
**Category:** flash
**Created:** [July 20, 2009, 8:11am UTC](https://forum.kirupa.com/t/declare-a-variable-to-change-mc-value/292833 "2009-07-20T08:11:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![udi001](https://avatars.discourse-cdn.com/v4/letter/u/bc8723/32.png) [@udi001](https://forum.kirupa.com/u/udi001)
#### Post date: [July 20, 2009, 8:11am UTC](https://forum.kirupa.com/t/declare-a-variable-to-change-mc-value/292833/1 "2009-07-20T08:11:32Z")

</div>

hello,

I want to declare a variable in the main timeline that will change a value in a movieClip.

I have  
var x\_alpha:int = 1; (in the main timeline)

“squere” (a movieclip) that is inside “Shapes” (another movieClip)

I can’t write inside “Shapes”

squere.alpha = x\_alpha;

what do I do?
