the problem is to link the krpano xml to the tree menu...
On a normal menu (botton) the code then we apply is:
function loadpano2a_clicked(mouseevent:MouseEvent):void
{
// hide the loadfirstpano button
// this.button_loadfirstpano.visible = false;
// a example with following actions
// - each action, with a single call
krpano.call("loadpano(datafile/03.xml,null,KEEPALL,BLEND(2));");
krpano.call("4");
krpano.call("lookat(0,0,10);");
krpano.set("view.camroll","180");
krpano.call("wait(blend);");
krpano.call("lookto(0,0,130,smooth(100,20,50));");
}
this.loadpano1a.addEventListener(MouseEvent.CLICK, loadpano1a_clicked);
Unfortunately on a tree menu we cant link the XML code of krpano.
You have a solution????
thanks