# Loading dynamically generated xml file into flash HELP

**URL:** <https://forum.kirupa.com/t/loading-dynamically-generated-xml-file-into-flash-help/255922>\
**Category:** Uncategorized\
**Created:** [March 28, 2008, 10:32am UTC](https://forum.kirupa.com/t/loading-dynamically-generated-xml-file-into-flash-help/255922 "2008-03-28T10:32:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRixation](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@TRixation](https://forum.kirupa.com/u/TRixation)\
**Post date:** [March 28, 2008, 10:32am UTC](https://forum.kirupa.com/t/loading-dynamically-generated-xml-file-into-flash-help/255922/1 "2008-03-28T10:32:55Z")

</div>

Hi Im trying to load a dynamically generated xml file into Flash. The problem I have is that the number in the URL for the xml is dynamically created ie) 1, 2 etc. So is there a way to load a variable into URL so that number can be accessed externally?

```auto
var wPath:String = new String();
wPath = "admin/content/bubble/1/bubbles.xml";

var xmlBubbles:XML = new XML(); // Create a new XML object.
xmlBubbles.ignoreWhite = true; // Set the ignoreWhite property to true (default value is false).
var checkProgress = function(xmlObj:XML) {
    var bytesLoaded:Number = xmlObj.getBytesLoaded();
    var bytesTotal:Number = xmlObj.getBytesTotal();
    var percentLoaded:Number = Math.floor((bytesLoaded/bytesTotal)*100);
    clpLoading.txtPercent.text = percentLoaded + '%';
}

// After loading is complete, trace the XML object.
xmlBubbles.onLoad = function(success) {
    clearInterval(intervalID);
    //trace(xmlBubbles);
    play();
};
xmlBubbles.load(wPath); // Load the XML into the xmlNews object.
var intervalID:Number = setInterval(checkProgress, 100, xmlBubbles);
stop();

```

Thanks
