# Setting the \_width of a movie

**URL:** <https://forum.kirupa.com/t/setting-the--width-of-a-movie/24737>\
**Category:** flash\
**Created:** [July 4, 2003, 1:12am UTC](https://forum.kirupa.com/t/setting-the--width-of-a-movie/24737 "2003-07-04T01:12:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DariusMonsef](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@DariusMonsef](https://forum.kirupa.com/u/DariusMonsef)\
**Post date:** [July 4, 2003, 1:12am UTC](https://forum.kirupa.com/t/setting-the--width-of-a-movie/24737/1 "2003-07-04T01:12:13Z")

</div>

Ok So I have MC named this1clip.

I am pulling the variable this1length from a text file via loadVariablesNum (“getmy.txt”, 0);

I know that this1length works is a valid variable as I can spit it out elsewhere, but for some reason the statement below is not pulling in the variable to set the width of the MC.

P.S. this1length has a value of 10 in my text file.

[AS]  
onClipEvent (load) {  
setProperty (\_root.this1clip, \_width, “\_root.this1length”);  
}  
[/AS]

Any ideas? Are “” not needed? Do I refer to a different level than \_root??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 4, 2003, 1:18am UTC](https://forum.kirupa.com/t/setting-the--width-of-a-movie/24737/2 "2003-07-04T01:18:41Z")

</div>

unquote \_root.this1length.

quoting it would make it a literal variable, meaning a variable called “\_root.this1length” and not the variable this1length found on the \_root.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 4, 2003, 1:33am UTC](https://forum.kirupa.com/t/setting-the--width-of-a-movie/24737/3 "2003-07-04T01:33:43Z")

</div>

Thor,

Yeah I accidentally copied over the code I had when I was jsut trying everything like “” and un “”.

It ended up being that I had white space being passed over with my variable from the text file.

Thanks though
