# LoadVars external variables with the same name

**URL:** <https://forum.kirupa.com/t/loadvars-external-variables-with-the-same-name/319783>\
**Category:** flash\
**Created:** [March 4, 2011, 5:23am UTC](https://forum.kirupa.com/t/loadvars-external-variables-with-the-same-name/319783 "2011-03-04T05:23:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffm\_1980](https://avatars.discourse-cdn.com/v4/letter/j/ba9def/32.png) [@jeffm\_1980](https://forum.kirupa.com/u/jeffm_1980)\
**Post date:** [March 4, 2011, 5:23am UTC](https://forum.kirupa.com/t/loadvars-external-variables-with-the-same-name/319783/1 "2011-03-04T05:23:03Z")

</div>

I have a php page which outputs the following:  
DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%27%23FFFFFF%27+size%3d%2730%27%3eGambling+Hotline+1800+060+757%3c%2ffont%3e&TickerSpeed=2&DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%27%23FFFFFF%27+size%3d%2730%27%3eGamble+Responsibly%3c%2ffont%3e&TickerSpeed=2&DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%27%23FFFFFF%27+size%3d%2730%27%3ePlaysmart±+a+better+way+to+play%3c%2ffont%3e&TickerSpeed=2&DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%27%23FFFFFF%27+size%3d%2730%27%3eCongratulations+to+our+winners!!!%3c%2ffont%3e&TickerSpeed=2&DisplayValue=%3cfont+face%3d%27Arial%27+color%3d%27%23FFFFFF%27+size%3d%2730%27%3eWelcome+to+the+team+Club%3c%2ffont%3e&TickerSpeed=2&cheese=ythe problem (at least that I can see) is that “DisplayValue” occurs multiple times. Doing a trace on LoadVars, I get the following:

cheese=y&TickerSpeed=2&DisplayValue=%3Cfont%20face%3D%27Arial%27%20color%3D%27%23FFFFFF%27%20size%3D%2730%27%3EWelcome%20to%20the%20Jackpot%20Club%3C%2Ffont%3E&onLoad=%5Btype%20Function%5D

which is weird since it is the reverse of the resutl!

this is my as2 code:

```auto

function loadTickerData()
{
    //trace(_root.worldsmartDomain + "/DataHandler.ashx?feature=getticker&terminalId=" + _root.terminalID + "&r=" + _root.generateRandomString(6));

    loader.onLoad = function(success)
    {
        if (success)
        {
            trace(this);
        }
        else
        {
            trace("not loaded");
        }
    };
   
    loader.load(url);
}

```
