|
|
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
<!--<plugin name="options" url="options.swf" />
<plugin name="editor" url="editor.swf" />-->
<!-- ***************** SCROLL PANEL ********************** -->
<plugin name="myscroll"
url="../myscroll.swf"
keep="true"
visible="true"
origin="centerbottom"
zorder="10"
/>
<plugin name="mask"
url="images/mask.png"
alpha="0.3"
origin="leftbottom"
width="100%"
height="85"
visible="true"
zorder="-1"
handcursor="false"
/>
<!-- ***************** SHOW/HIDE MENU ********************** -->
<data name="hide_menu">
<p>Hide menu</p>
</data>
<data name="show_menu">
<p>Show menu</p>
</data>
<data name="enter_fs">
<p>Enter full screen</p>
</data>
<data name="exit_fs">
<p>Exit full screen</p>
</data>
<action name="hide_menu">
tween(plugin[mask].y, -85);
tween(plugin[myscroll].y, -85);
tween(plugin[hide_menu_btn].y, 0);
tween(plugin[show_menu_btn].y, 0);
set(plugin[hide_menu_btn].visible, false);
set(plugin[show_menu_btn].visible, true);
</action>
<action name="show_menu">
tween(plugin[mask].y, 0);
tween(plugin[myscroll].y, 0);
tween(plugin[hide_menu_btn].y, 85);
tween(plugin[show_menu_btn].y, 85);
set(plugin[hide_menu_btn].visible, true);
set(plugin[show_menu_btn].visible, false);
</action>
<plugin name="hide_menu_btn"
url="../krpano/textfield.swf"
html="data:hide_menu"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin:15; text-align:center; }"
keep="true"
children="false"
visible="true"
width="100"
height="70"
backgroundcolor="0x000000"
roundedge="0"
shadow="0"
borderwidth="0"
glow="0"
origin="bottom"
x="0"
y="85"
alpha="0.5"
autosize="center"
zorder="5"
onclick="action(hide_menu);"
/>
<plugin name="show_menu_btn"
url="../krpano/textfield.swf"
html="data:show_menu"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin:15; text-align:center; }"
keep="true"
children="false"
visible="false"
width="100"
height="70"
backgroundcolor="0x000000"
roundedge="0"
shadow="0"
borderwidth="0"
glow="0"
origin="bottom"
x="0"
y="85"
alpha="0.5"
autosize="center"
zorder="5"
onclick="action(show_menu);"
/>
<!-- ***************** SHOW/HIDE FULL SCREEN ********************** -->
<plugin name="openfs"
url="../krpano/textfield.swf"
html="data:enter_fs"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin:15; text-align:center; }"
keep="true"
children="false"
visible="true"
width="140"
height="70"
backgroundcolor="0x000000"
roundedge="0"
shadow="0"
borderwidth="0"
glow="0"
origin="righttop"
x="0"
y="0"
alpha="0.5"
autosize="center"
zorder="5"
onclick="set(fullscreen, true);"
/>
<plugin name="closefs"
url="../krpano/textfield.swf"
html="data:exit_fs"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin:15; text-align:center; }"
keep="true"
children="false"
visible="false"
width="140"
height="70"
backgroundcolor="0x000000"
roundedge="0"
shadow="0"
borderwidth="0"
glow="0"
origin="righttop"
x="0"
y="0"
alpha="0.5"
autosize="center"
zorder="5"
onclick="set(fullscreen, false);"
/>
<events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);"
onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"
/>
|
