my gallery.swf has a separate xml file (for now) and looks like this:
|
Source code
|
1
2
3
4
5
|
<item>
<image>panos/midfield.tiles/mobile_f.jpg</image>
<text>Midfield</text>
<pano>loadMidfield</pano>
</item>
|
My AS3 for the gallery thumbnail click looks like this:
|
Source code
|
1
2
3
4
|
function onMouseClick(e:MouseEvent):void {
var link:String = xmlList[e.currentTarget.id].pano;
krpano.call("action("+link+")");
}
|
My main XML for the main tour looks like this:
|
Source code
|
1
2
3
4
5
6
|
<!-- actions for gallery -->
<action name="loadMidfield" >
loadscene(scene_midfield, null, MERGE, BLEND(1));
lookat(0,0,120);
wait(blend);
</action>
|
I fixed the loader issue by handling the pano load with the code above ... but there is still some sort of bug that is causing each thumb to have to be clicked twice in order for the pano to load. Is there any gallery plugin source code around I could check out? Seems to be functioning quite different the full AS3 interface I'm used to.