Hello Guys!
I am a beginner with this and have made the plugin to load into krpano, but when I create the as3Thumbsforkrpano.swf it says "Looks like there was an error loading the XML" . I have just one problem, where do I change the name of the xml file in the flashscript. I have tried, see below... with the name Gallery1.xml
//xml load variables
var xmlLoader:URLLoader;
var xmlData:XML;
//xml load function
function loadXml(xmlFile:String):void {
try {
xmlLoader= new URLLoader();
xmlData = new XML;
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.addEventListener(IOErrorEvent.IO_ERROR, xmlLoadFail);
xmlLoader.load(new URLRequest(xmlFile));
} catch (error:Error) {
//catch errors
trace("error loading xml");
}
}
//load the XML file, change to any name you like.
// ++++ changed to load by URL
var TheXML = root.loaderInfo.parameters.TheXML;
loadXml("gallery1.xml+?nocache="+getTimer());
function xmlLoadFail(event:IOErrorEvent):void {
trace("Looks like there was an error loading the XML");
}
//we have our XML data, so lets load the thumbnails
function xmlLoaded(e:Event):void {
xmlData = XML(xmlLoader.data);
loadThumbs();//call the thumbs loading function
Thanks for all the help i can get.
/Per