# Path(loading) issue

**URL:** <https://forum.kirupa.com/t/path-loading-issue/302049>\
**Category:** Uncategorized\
**Created:** [December 21, 2009, 12:04am UTC](https://forum.kirupa.com/t/path-loading-issue/302049 "2009-12-21T00:04:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aporisticom](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@aporisticom](https://forum.kirupa.com/u/aporisticom)\
**Post date:** [December 21, 2009, 12:04am UTC](https://forum.kirupa.com/t/path-loading-issue/302049/1 "2009-12-21T00:04:08Z")

</div>

Hi all.  
I made a swf much like a slideshow, wich loads a list of items from a database. I made a php file that outputs a xml file with the items. The swf file is loaded from a php file in some folder (i.e. “helper” - folder). Ok, here’s my problem.

1. If i try to lo load the php file “[http://localhost/site/helper/flash.php](http://localhost/site/helper/flash.php)” the flash is working fine.

2. In index.php file I have the include function ( include “helper/flash.php”). If i load the index.php file “[http://localhost/site/index.php](http://localhost/site/index.php)” the flash is not working.

Please help

I don’t know what else to tell you, but if anyone needs more details, please ask.

my code:

\_root.scena.denumire.text=“stop timer”;  
timer.stop();  
var my\_xml:XML = new XML();  
my\_xml.ignoreWhite = true;  
my\_xml.onLoad = function(success:Boolean) {  
if (success) {  
\_root.scena.denumire.text=“loaded XML”;  
scena.\_visible=false;  
makeArray();  
\_root.scena.denumire.text=“loaded XML”;  
trace(“XML loaded successfully, loading data”);  
//ShowSlide(2);  
trace (curr\_slide);  
trace (max\_slide);  
timer.play();  
} else {  
\_root.scena.denumire.text=“Unable to load XML”;  
}  
};  
\_root.scena.denumire.text=“prep load xml”;  
my\_xml.load(“[http://localhost/site/helper/micro1.php](http://localhost/site/helper/micro1.php)”);

function makeArray(){  
parseArray = [];  
nodes = my\_xml.firstChild.childNodes;  
\_root.curr\_slide=0;  
\_root.max\_slide=nodes.length-1;  
for(i=0;i\<nodes.length;i++){  
denumire = nodes\*.attributes.denumire;  
pret = nodes\*.attributes.pret;  
pic = nodes\*.attributes.pic;  
parseArray.push({denumire:denumire,pret:pret,pic:pic});  
}  
};

function changedir(dir) {  
if (dir==1)  
{  
if (curr\_slide\<max\_slide) {  
curr\_slide = curr\_slide+1;  
}  
else {  
curr\_slide = 0;  
}  
}  
else  
{  
if (curr\_slide\>0) {  
curr\_slide = curr\_slide-1;  
}  
else {  
curr\_slide = max\_slide;  
}  
}  
ShowSlide(curr\_slide);  
};

function ShowSlide(item) {  
this.scena.pret.text = parseArray[item].pret;  
this.scena.denumire.text = parseArray[item].denumire;  
this.scena.mcload.contentPath= parseArray[item].pic;  
scena.\_visible=true;  
};
