Noel
07-18-2008, 02:00 PM
hi people need help with something. i have fpp embedded into my own fla file. when i load fpp it works fine, then i load another swf over the top of it and it works fine. then when i go back to the fpp everything is panning all my hotspots and lens flare but the actual image is not moving at all.
can any one help me here is the action script code on each button loading the fpp and swf:
btn_1.addEventListener(MouseEvent.CLICK, 1View);
btn_2.addEventListener(MouseEvent.CLICK, 2View);
}
function 1View(e:Event) {
var loader:Loader = new Loader();
trace("Works");
loader.x = 0;
loader.y = 150;
loader.load(new URLRequest("attempt3/View2.swf"));
addChild(loader);
}
function 2View(e:Event) {
var panorama:MovieClip;
var loader:Loader = new Loader();
loader.load(new URLRequest("view3.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
swapChildren(loader, border);
panorama = loader.content;
panorama.setArea(0,200,990,390);
panorama.loadPanorama("panoName=panotest_390_2px&xml_file=panotest_390_2px.xml");
}
please some one help if possible
kind regards Noel
can any one help me here is the action script code on each button loading the fpp and swf:
btn_1.addEventListener(MouseEvent.CLICK, 1View);
btn_2.addEventListener(MouseEvent.CLICK, 2View);
}
function 1View(e:Event) {
var loader:Loader = new Loader();
trace("Works");
loader.x = 0;
loader.y = 150;
loader.load(new URLRequest("attempt3/View2.swf"));
addChild(loader);
}
function 2View(e:Event) {
var panorama:MovieClip;
var loader:Loader = new Loader();
loader.load(new URLRequest("view3.swf"));
addChild(loader);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete);
swapChildren(loader, border);
panorama = loader.content;
panorama.setArea(0,200,990,390);
panorama.loadPanorama("panoName=panotest_390_2px&xml_file=panotest_390_2px.xml");
}
please some one help if possible
kind regards Noel