Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Quellcode |
1 2 3 4 5 6 7 |
<plugin name="thumbnails" url="as3Thumbsforkrpano.swf?TheXML=gallery1.xml" align="leftttop" keep="true" parent="menu" onclick="menu_hide();" /> |
: https://pame.virtualtuur.comFantastic Tuur. It's better than I thought, I mean with your code the menu hides when user select a thumb :)
![]()
Quellcode
1 2 3 4 5 6 7 <plugin name="thumbnails" url="as3Thumbsforkrpano.swf?TheXML=gallery1.xml" align="leftttop" keep="true" parent="menu" onclick="menu_hide();" />
but it's maybe nice to make a close button..
you also have an /> to much after the first plugin..![]()
Tuur![]()
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
... set(menuvisible,0); ... <plugin name="btn" .... onclick="showhide();" .... /> <action name="showhide"> switch(menuvisible,1,0); if(menuvisible == 1, ...showAction..., ...hideAction... ); </action> |
|
|
Quellcode |
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 |
<plugin name="menu" url="images/menu.png" keep="true" visible="true" enabled="true" handcursor="true" capture="false" zorder="1" alpha="1" blendmode="normal" smoothing="true" align="lefttop" edge="" x="40" y="-158" ox="0" oy="0" rotate="0" width="" height="" scale="1" scale9grid="" crop="" mask="" onloaded="" onclick="action(menu_show)" onover="" onhover="showtext(Escolha uma cena para ver em 360º, texto)" onout="delayedcall(0.0, action(menu_hide); );" ondown="" onup="" /> <action name="menu_show"> tween(plugin[menu].y,0,distance(700,4),easeOutBounce);" </action> <action name="menu_hide"> tween(plugin[menu].y,-158,distance(700,3),linear);" onclick="menu_hide();" </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<krpano .... onstart="set(menuvisible,0);">
<plugin
name="menu"
.... your code here
onclick="menu_showhide();"
.... your code here
/>
<action name="menu_show">
tween(plugin[menu].y,0,distance(700,4),easeOutBounce);"
</action>
<action name="menu_hide">
tween(plugin[menu].y,-158,distance(700,3),linear);"
</action>
<action name="menu_showhide">
switch(menuvisible,1,0);
if(menuvisible == 1, menu_show(); , menu_hide(); );
</action>
|
|
|
Quellcode |
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 |
<plugin name="menu" url="images/menu.png" keep="true" visible="true" enabled="true" handcursor="true" capture="false" zorder="1" alpha="1" blendmode="normal" smoothing="true" align="lefttop" edge="" x="40" y="-158" ox="0" oy="0" rotate="0" width="" height="" scale="1" scale9grid="" crop="" mask="" onloaded="" onhover="showtext(Escolha uma cena para ver em 360º);" onclick="action(menu_show)" onover="inc(over_menu);" onout="txtadd(cmd,'if(over_menu LE ',get(over_menu),',menu_hide();)');delayedcall(2.0,get(cmd));" cmd="" over_menu="0" ondown="" onup="" /> <action name="menu_show"> tween(plugin[menu].y,0,distance(700,4),easeOutBounce); set(onclick,menu_hide()); </action> <action name="menu_hide"> tween(plugin[menu].y,-158,distance(700,3),linear); set(onclick,menu_show()); </action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »pinsane« (16. Juni 2010, 04:23)
|
|
Quellcode |
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 |
<plugin name="menu" url="images/menu.png" keep="true" visible="true" enabled="true" handcursor="true" capture="false" zorder="1" alpha="1" blendmode="normal" smoothing="true" align="lefttop" edge="" x="40" y="-158" ox="0" oy="0" rotate="0" width="" height="" scale="1" scale9grid="" crop="" mask="" onloaded="" onclick="action(menu_show)" onover="set(delayedcall,true);" onhover="showtext(Escolha uma cena para ver em 360º, texto)" onout="set(delayedcall,false); action(menu_auto);" ondown="" onup="" /> <action name="menu_show"> tween(plugin[menu].y,0,distance(700,3),linear); set(onclick,menu_hide()); </action> <action name="menu_hide"> tween(plugin[menu].y,-158,distance(700,3),linear); set(onclick,menu_show()); </action> <action name="menu_auto"> delayedcall(0.5,if(delayedcall==false, action(menu_hide)));" </action> |
hmm now I see you edited the code above :)
We came to the same solution using different way. This is nice about logical computer language :)