Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<plugin name="combobox"
url="%SWFPATH%/plugins/combobox.swf"
align="lefttop"
x="10"
y="10"
width="33%"
keep="true"
onloaded="action(setupitems);"
/>
<action name="setupitems">
removeall();
additem(Item 1, action(item1) );
additem(Item 2, action(item2) );
additem(Item 3, action(item3) );
</action>
<action name="item1">
loadpano(pano1.xml);
</action>
<action name="item2">
loadpano(pano2.xml);
</action>
<action name="item3">
loadpano(pano2.xml);
</action>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<action name="setupitems">
removeall();
additem(Garten, action(load1););
additem(Keller1, action(load2););
additem(Keller2, action(load3););
additem(Stuebal, action(load4););
</action>
<action name="load1">
set(plugin[spotx].x,200);
set(plugin[spotx].y,50);
set(plugin[radar].x,200);
set(plugin[radar].y,50);
loadpano(Garten.xml,null,KEEPALL,BLEND(1));
set(plugin[radar].heading,0);
</action>
|

|
|
Source code |
1 2 |
set(plugin[combobox].selectitem(combobox:Exterior Sunset)); set(plugin[combobox].selectitem(Exterior Sunset)); |

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
<krpano version="1.0.8" onstart="action(pano1);">
<plugin name="combobox"
url="%SWFPATH%/plugins/combobox.swf"
align="lefttop"
x="10"
y="10"
width="15%"
keep="true"
onloaded="action(setupitems);"
/>
<action name="setupitems">
removeall();
additem(Pano 1, action(pano1) );
additem(Pano 2, action(pano2) );
</action>
<action name="pano1">
<!-- select combobox item -->
plugin[combobox].selectitem(Pano 1);
<!-- load pano image -->
loadpano(null,sphere=../tour/skeller.jpg,KEEPALL,BLEND(1));
<!-- set view -->
lookat(0,0,90);
<!-- dynamically add a hotspot -->
addhotspot(keller);
set(hotspot[keller].url,../tour/hotspot_ani.swf);
set(hotspot[keller].ath,9);
set(hotspot[keller].atv,-4);
set(hotspot[keller].blendmode,invert);
set(hotspot[keller].onhover, showtext(Pano 2));
set(hotspot[keller].onclick, looktohotspot(keller); action(pano2); );
</action>
<action name="pano2">
<!-- select combobox item -->
plugin[combobox].selectitem(Pano 2);
<!-- load pano image -->
loadpano(null,sphere=../tour/keller.jpg,KEEPALL,BLEND(1));
<!-- set view -->
lookat(0,0,90);
<!-- dynamically add a hotspot -->
addhotspot(skeller);
set(hotspot[skeller].url,../tour/hotspot_ani.swf);
set(hotspot[skeller].ath,8);
set(hotspot[skeller].atv,7);
set(hotspot[skeller].scale,1.4);
set(hotspot[skeller].blendmode,invert);
set(hotspot[skeller].onhover,showtext(Pano1));
set(hotspot[skeller].onclick, looktohotspot(skeller); action(pano1); );
</action>
</krpano>
|
this needed to be done in the combobox.fla,|
|
Source code |
1 2 3 4 |
function startplugin(event:Event):void
{
combobox.setStyle("color", 0xFFFFFF);
....
|
|
|
Source code |
1 |
if ( krpano.get("version") != "1.0.7" )
|
|
|
Source code |
1 |
if ( krpano.get("version") < "1.0.7" )
|
|
|
Source code |
1 2 3 4 5 |
function startplugin(event:Event):void
{
combobox.setStyle("color", 0xBFB179);
...
}
|
This post has been edited 1 times, last edit by "MissZougou" (Feb 24th 2010, 12:28pm)
|
|
Source code |
1 |
<plugin name="combobox" url="%SWFPATH%/plugins/combobox.swf" ..... rowcount="10" /> |