flash relative paths
flash relative paths
Out of context: Reply #6
- Started
- Last post
- 6 Responses
- enjine0
heh, ok i don't really know what you're really trying to do... my guess is that you have different file locations for testing and for live use. but this will probably do the trick:
just put a conditional statement in your onload event handler to look in the one directory, and if it is not there, look in another directory:
slides_xml.onLoad = function(success){
if(success){
startSlideShow();
}else{
this.load("slides.xml");
}
}
slidex_xml.load("gal leries/gallery1/slid es.xml");and if that doesn't work, just make the two new folders in your local/disk directory.