You are not logged in.

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.

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: 863

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: 863

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*