Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comHi,I want to use two simpleviewer in one scene.. But it doesnt work. Is there any way to do ıt with simple viewer... Or do you know other viewers that ı can do it ..
and you load the new swf in krpano as any plugin :
Zitat
var svAPI:Object; //svAPI is the object to call API methods on
var svLoader:Loader = new Loader();
addChild(svLoader);
svLoader.contentLoaderInfo.addEventListener(Event.INIT, onViewerInit);
svLoader.load(new URLRequest("simpleviewer.swf"));
/**
* Fired when preloader is available
* Can set gallery flashvars at this point
*/
function onViewerInit(e:Event):void{
Object(svLoader.content).addEventListener("svComplete", onGalleryLoaded);
var options:Object = Object(svLoader.content).embedOptions;
options.galleryURL = "gallery.xml";
}
/**
* Fired when gallery has completely loaded. API is now available.
*/
function onGalleryLoaded(e:Event):void{
svAPI = Object(svLoader.content).api;
svAPI.setSize(640,480);
}
I post exemple her :
Zitat
<plugin name="gallery" align="center" height="40%" width="40%" url="loadersimpleviewer.swf" visible="true" zorder="7"/>
<plugin name="gallery2" align="center" height="40%" width="40%" url="loadersimpleviewer2.swf" visible="true" zorder="7"/>
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »groumch« (31. März 2010, 17:19)