# Variables and Layers

**URL:** <https://forum.kirupa.com/t/variables-and-layers/55542>\
**Category:** flash\
**Created:** [June 24, 2004, 11:13pm UTC](https://forum.kirupa.com/t/variables-and-layers/55542 "2004-06-24T23:13:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveb1164](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@steveb1164](https://forum.kirupa.com/u/steveb1164)\
**Post date:** [June 24, 2004, 11:13pm UTC](https://forum.kirupa.com/t/variables-and-layers/55542/1 "2004-06-24T23:13:49Z")

</div>

In layer 1 I have the following code to pull the variable ‘playerrank’ from my ASP page:

myData = new LoadVars();

myData.onLoad = function() {  
playerrank.text = this.playerrank;  
};

myData.load(“livedraftvar.asp”);

stop();

In layer 2 I have a dynamic text box with Instance Name playerrank and Var left blank(I was told Flash MX didn’t require the Var box to be filled in).

In layer 3 I also have a dynamic text box with the same Instance Name, ‘playerrank’, and Var left blank.

The text is coming up perfectly in the layer 2 text box, but it is not coming up at all in the layer 3 text box. Why isn’t the text coming up in the layer 3 text box? Thanks.
