You are not logged in.

1

Tuesday, February 26th 2019, 10:55am

about layer question

ths is a question about layer

i want to make sure that the layer disappears five second after first scene is loadead


or i'd like to make the layer disappear when i click it

Regards

  • *rolleyes*

spacerywirtualne

Professional

Posts: 866

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Tuesday, February 26th 2019, 11:05am

Maybe something like this?

Source code

1
2
3
<style name="my_layer" type="container" width="100" height="100" bgalpha="1" keep="true" zorder="2" bgcolor="0x00ffff" bgcapture="true" onclick="removelayer(my_layer)" />
 
<events name="my_layer_ev" onloadcomplete="delayedcall(5, addlayer(my_layer);layer[my_layer].loadstyle(my_layer))" />


Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

3

Thursday, March 7th 2019, 2:11pm

thank you!


Can you slowly make the layer disappear?


like tween..


best regard

spacerywirtualne

Professional

Posts: 866

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

4

Thursday, March 7th 2019, 2:29pm

Can you slowly make the layer disappear?


like tween..
yes

Source code

1
onclick="tween(layer[my_layer].alpha,0,1,,removelayer(my_layer))"


docu

regadrs
Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*