You have:
Code: Select all
var url:String = "http://www.photosynergy.net/hannesbecker/livingroom.swf";
Code: Select all
var url:String = "../hannesbecker/livingroom.swf";
If your preloader .swf can't find the Flash file it is supposed to preload, it can't do much other than to show an empty screen.
This bit:
Code: Select all
function loop(e:ProgressEvent):void {
var perc:Number = e.bytesLoaded / e.bytesTotal;
percent.text = Math.ceil(perc*100).toString();
LoadIndicator.width = perc * 800; // my loadindicator is 400 pixels wide at 100%
}
Have a look at this website to see a tutorial about how a 'normal' preloader is made in ActionScript3:
http://www.gotoandlearn.com
I think it's tutorial number 84, named 'Preloading in ActionScript 3'
Do note that for Pano2VR Flash panos a 'normal' preloader does not work, you MUST follow Thomas' instructions to the letter!
Erik