PDA

View Full Version : desperate help pls: panorama loaded externally from an XML file.


ciumexan
05-06-2008, 10:36 AM
ok, here is my problem:

i have an xml from where i load swf files (i want to embed panoramas in my file) with this function:

//We call this function whenever we want to load
//and external picture or swf file
function ImageLoad(u:String,target){
//set targetClip from the parameter
var targetClip = target;
//create the new Loader object
var _loader:Loader = new Loader();
//create the new URLRequest object
var request:URLRequest = new URLRequest(u);
//load the file
_loader.load(request);
//add the loader contents to the targetClip
targetClip.addChild(_loader);
}


witch is working very well in as3 (loads perfectly swfs and images)

i load like that: ImageLoad(myXML.slide[i].xmlpicture,targetclip.holder);

but if I pun pano.swf (= myXML.slide[i].xmlpicture) to load
(and the 4 images) in root, it stays blank...

what to do ?

Also i'm interested how to call plugins and xml externally

i mean i have in my xml configuration an option to put files like that:
<xmlpicture>pano.swf</xmlpicture>
but how to put for example a plugin to load....
"<xmlpicture>pano.swf?xml_file=config.xml&plugin1=kjskds.swf</xmlpicture> "
something like that

I'm a little confused on how to use this

Thanks a lot for any help .... i hope my english was clear enough....

zleifr
05-08-2008, 12:54 AM
Have you looked at embedPano.fla? It should demonstrate how to load FPP into another swf.

As for loading plugins into FPP loaded into another .swf, you do it just like you would normally, in the XML, with a line like layer_1 = path/to/plugin.swf

Zephyr