Export problem

hi all,

There is a wierd thing going on with what i have here…

welll ive downloaded a Tutorial:

creating a stack images gallery…

it workes great in the flash cs4 program, but when i export it it doesnt work…
i export to the same folder as the frogram file…

here some code…

if (PhotoFlag==1&&Holder.x==-758.5&&Holder.y==561) {
PhotoFlag=0;
//////////////////////////////////////////////////////////////////////////
var loaderlk:URLLoader = new URLLoader();
loaderlk.addEventListener(Event.COMPLETE, loadXML);
loaderlk.load(new URLRequest("StackGalleryXML.xml"));
///
///
function loadXML(e:Event):void {
var xml=new XML(e.target.data);
var xmlData:XMLDocument = new XMLDocument();
xmlData.ignoreWhite=true;
xmlData.parseXML(xml.toXMLString());
photoCount=xmlData.firstChild.childNodes[0].firstChild;
 
 
 
for (var i=1; i<=photoCount; i++) {
 
aLDR* = new Loader();
aLDR*.load(new URLRequest(xmlData.firstChild.childNodes*.childNodes[0].firstChild));
aLDR*.x=photoOriginX+40*Math.random();
aLDR*.y=photoOriginY+40*Math.random();
stage.addChild(aLDR*);
aLDR*.addEventListener(MouseEvent.MOUSE_DOWN, photoSlideOut);
aLDR*.rotation = Math.floor(Math.random()*(rotationRange*2))-rotationRange;
}
 
}
//////////////////////////////////////////////////////////////////////////
 
 
//////////////////////////////////////////////////////////////////////////
function photoSlideOut(e:Event):void {
//if (POScounter<photoCount){POScounter++;}else{POScounter=1;};
e.target.parent.setChildIndex(e.target, e.target.parent.numChildren - 1);
Tweener.addTween(e.target, {x: photoDestX, time: speed, transition: easeType, onComplete:photoSlideIn, onCompleteParams:[e.target]});
Tweener.addTween(e.target, {rotation: Math.floor(Math.random()*(rotationRange*2))-rotationRange, time: speed*2, transition: easeType});
}
 
 
function photoSlideIn(p:Loader) {
p.parent.setChildIndex(p, 1);
Tweener.addTween(p, {x: photoOriginX, time: speed, transition: easeType});
}
//////////////////////////////////////////////////////////////////////////
 
//////////////////////////////////////////////////////////////////////////
/*
linkGO_btn.addEventListener(MouseEvent.MOUSE_DOWN,JumpTo);
 
 
function JumpTo(ee:MouseEvent):void{
TMPLink = ///////////////haser mi xml/////////////////;
var strURL:URLRequest = new URLRequest(TMPLink);
navigateToURL(strURL, "_blank");
}
*/
//////////////////////////////////////////////////////////////////////////
 
}

im kinda messy in my code… im still new to AS3…

i cant figure out why it works in the program but when i export i dont see anything…

anyone?

thanks,
stas.