|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<action name="modal_Andares" > if(device.desktop, if(hotspot[diferenciado12].state == 'closed', set(hotspot[diferenciado12].state, 'opened'); looktohotspot(diferenciado12, 35, tween(linear,1.4)); tween(hotspot[diferenciado12].fillalpha, 0.4); tween(hotspot[diferenciado12].fillcolor, 0xfff200); ); ); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<hotspot name="test1" ... onclick="myaction1(get(name));" />
<action name="myaction1">
trace('you just clicked the hotspot ',%1);
</action>
<hotspot name="test2" ... onclick="myaction2(get(name));" />
<action name="myaction2" scope="local" args="name">
trace('you just clicked the hotspot ',name);
</action>
<hotspot name="test3" ... onclick="myaction3();" />
<action name="myaction3" scope="local">
trace('you just clicked the hotspot ',caller.name);
</action>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<action name="myaction3" scope="local">
trace('you just clicked the hotspot ',caller.name);
if(hotspot[What do I put here?].state == 'closed',
set(hotspot[What do I put here?].state, 'opened');
tween(hotspot[What do I put here?].fillcolor, 0xfff200);
tween(hotspot[What do I put here?].fillalpha, 0.4);
looktohotspot(What do I put here?, 35, tween(linear,1));
);
</action>
|
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 14 15 16 17 18 19 |
<action name="myaction3" scope="local">
trace('you just clicked the hotspot ',caller.name);
if(caller.state == 'closed',
set(caller.state, 'opened');
tween(caller.fillcolor, 0xfff200);
tween(caller.fillalpha, 0.4);
looktohotspot(get(caller.name), 35, tween(linear,1));
);
</action>
<action name="myaction3" scope="local">
trace('you just clicked the hotspot ',caller.name);
if(caller.state == 'closed',
set(caller.state, 'opened');
tween(hotspot[get(caller.name)].fillcolor, 0xfff200);
tween(hotspot[get(caller.name)].fillalpha, 0.4);
looktohotspot(get(caller.name), 35, tween(linear,1));
);
</action>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
<action name="close_modal" > if(ANYhotspot.state == 'opened', set(ALLhotspot.state, 'closed'); tween(global.plugin[pp_blur].range, 0.0); tween(view.fov, get(xml.view.fov), 2.0, easeOutQuad); ); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<action name="close_all_modals" scope="local"> set(local.count,0); for(set(i,0), i LT hotspot.count, inc(i), if(hotspot[get(i)].state == 'opened', set(hotspot[get(i)].state, 'closed'); inc(count); ); ); if(count, tween(plugin[pp_blur].range, 0.0); tween(view.fov, get(xml.view.fov), 2.0, easeOutQuad); ); </action> |