# Variable problem

**URL:** https://forum.kirupa.com/t/variable-problem/153781
**Category:** Uncategorized
**Created:** [July 4, 2005, 5:10pm UTC](https://forum.kirupa.com/t/variable-problem/153781 "2005-07-04T17:10:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vectix](https://avatars.discourse-cdn.com/v4/letter/v/49beb7/32.png) [@vectix](https://forum.kirupa.com/u/vectix)
#### Post date: [July 4, 2005, 5:10pm UTC](https://forum.kirupa.com/t/variable-problem/153781/1 "2005-07-04T17:10:25Z")

</div>

I have a variable which, which is the width of a movie clip on the main timeline, I named the varialbe “width”… (I’m smart! :D)

I want to copy the value of this varialbe to another variable in a movie clip called “shadow”, I thought this would work in the movie clip:

xvalue = \_root.width;

but it doesn’t. Any help greatly appreciated.
