# Noob thanks everyone and asks another question

**URL:** <https://forum.kirupa.com/t/noob-thanks-everyone-and-asks-another-question/313382>\
**Category:** flash\
**Created:** [August 27, 2010, 5:04pm UTC](https://forum.kirupa.com/t/noob-thanks-everyone-and-asks-another-question/313382 "2010-08-27T17:04:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamminBill](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@JamminBill](https://forum.kirupa.com/u/JamminBill)\
**Post date:** [August 27, 2010, 5:04pm UTC](https://forum.kirupa.com/t/noob-thanks-everyone-and-asks-another-question/313382/1 "2010-08-27T17:04:20Z")

</div>

After much help from those on this forum, I was able to link to xml files of several different types using both methods provided for in AS3. I am thrilled and grateful beyond words. There is one final little detail:

There is a slight delay of maybe one second when the xml files (eight of them) are loading as the interactive appears on the screen. I’ve attempted to add a progress bar to one of the xml files. I THINK I’ve succeeded, but it’s so quick it’s a little hard to tell. Does the code below look OK?

var currentDataDemAG=“demAG.xml”;  
var xmlAddressDemAG:URLRequest=new URLRequest(currentDataDemAG);  
var xmlLoaderDemAG:URLLoader=new URLLoader(xmlAddressDemAG);  
xmlLoaderDemAG.addEventListener(“complete”,loadXMLDemAG);

mcProgressClip.progressBar.source=xmlLoaderDemAG;  
mcProgressClip.progressBar.addEventListener(ProgressEvent.PROGRESS,progressHandler);  
mcProgressClip.progressBar.addEventListener(Event.COMPLETE,completeHandler);  
function progressHandler(evt:ProgressEvent):void {  
mcProgressClip.txtStatusText.text=“DATA LOADING”+int(evt.currentTarget.percentComplete)+"%";  
}  
function completeHandler(evt:Event):void {  
mcProgressClip.progressBar.removeEventListener(ProgressEvent.PROGRESS,progressHandler);  
mcProgressClip.progressBar.removeEventListener(Event.COMPLETE,completeHandler);  
mcProgressClip.removeChild(mcProgressClip.progressBar);  
mcProgressClip.x=-656;  
}
