Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2007, 03:00 PM
irie7even irie7even is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Downloads: 0
Uploads: 0
Default Reload Pano

hello again!

THE FIRST TIME when I load a flash-panorama into my swf-file everything works fine an smooth. but when I load the file again, the panorama is bucking and the control is anything but smooth.

this is the code in my swf-file:
Quote:
var mySWFFile:String="MY.swf";
var myPanoSWFFile:String="pano.swf?panoName=MY&xml_fil e=MY.xml";

var panorama1:MovieClip;
var loader1:Loader = new Loader();
loader1.load(new URLRequest(mySWFFile));

addChild(loader1);

loader1.contentLoaderInfo.addEventListener(Event.C OMPLETE, loadComplete1);


function loadComplete1 (e:Event) {

panorama1 = this.loader1['content'];
panorama1.setArea(14,45,550,240);
panorama1.loadPanorama(myPanoSWFFile);

}
I think that I have to unload or remove the loaded panorama but I don't know how to do it. I hope you can help me out of my mess.

kind regards
Reply With Quote
  #2  
Old 08-12-2007, 09:44 PM
Markavian Markavian is offline
Junior Member
 
Join Date: Aug 2007
Posts: 1
Downloads: 0
Uploads: 0
Question From the examples...

I have been using this command when switching between panoramas:

Code:
panorama.pano.remove();
or
Code:
try
{
	p_panorama.pano.remove();
}
catch(err:Error)
{
	trace("Display Panorama : "+err);
}
But I'm not sure this gets rid of plugins loaded into different layers.
Reply With Quote
  #3  
Old 08-13-2007, 07:12 AM
irie7even irie7even is offline
Junior Member
 
Join Date: Aug 2007
Posts: 3
Downloads: 0
Uploads: 0
Default

thanks a lot, now it works great.

do you also know how to reload xml files? I posted a thread about refreshing xml but i didn't get an answer yet.

thanks for your help.
Reply With Quote
  #4  
Old 08-13-2007, 08:38 AM
birdseye birdseye is offline
Senior Member
 
Join Date: Jun 2007
Location: Belgium
Posts: 147
Downloads: 0
Uploads: 0
Default

This looks interesting...

Maybe this sounds stupid, but my knowledge about Javascript is very limited...

Can I see an example of the complete html file where this code is embedded ?

Tnx in advance,

Yvan.

Last edited by birdseye; 08-13-2007 at 08:41 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:50 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.