# Reading variables problem

**URL:** https://forum.kirupa.com/t/reading-variables-problem/181013
**Category:** Uncategorized
**Created:** [March 5, 2006, 5:40pm UTC](https://forum.kirupa.com/t/reading-variables-problem/181013 "2006-03-05T17:40:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dogday](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dogday/32/242_2.png) [@dogday](https://forum.kirupa.com/u/dogday)
#### Post date: [March 5, 2006, 5:40pm UTC](https://forum.kirupa.com/t/reading-variables-problem/181013/1 "2006-03-05T17:40:05Z")

</div>

I use this code in mc1:

```auto
elegido = "elegido";
reproductor=getversion();
loadMovie("mc2.swf","ancla");

```

Everything goes OK.

In mc2 I use this code:

```auto
elegido = _root.elegido;
reproductor = _root.reproductor

```

I have 2 dynamic text fields with var atributte set to elegido and reproductor.

When I test mc1 in my computer everyting is ok. mc1 loads into “ancla” mc2. Then mc2 reads the two vars elegido and reproductor from \_root and aplies the values to the textfields.

The problem is when I upload this to a server. Only var nº1 is readed. mc2 only gets the value of elegido and not the value of reproductor.

Any idea ?

Thanks in advance.
