You are not logged in.

1

Thursday, September 25th 2014, 6:24pm

onclick on container plugin/layer

Source code

1
<layer name="menuBar" keep="true" type="container" align="leftbottom" width="50" height="100%" x="0" y="0" bgalpha="0.7" bgcolor="0xFFFFFF">	onclick="trace(LLL);"		</layer>



event onclick in code below dont fired

but if i am set url parametr on image event called

why is this happening?

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Thursday, September 25th 2014, 6:38pm

You have

Bgcolor="0xffffff"> onclick blabla

Should be

Bgcolor="0xffffff" onclick="trace(ilovekrpano);" />

Or just an > at the end in case of nesting layers

So, onclick inside the layer tag

Hope it helps

Tuur *thumbsup*

3

Friday, September 26th 2014, 5:05pm

I am make misprint when type start topic

Source code

1
<layer name="q1" type="container" align="lefttop" x="400" y="400" width="100" height="100" bgcolor="0x111111" bgalpha="1" onclick="trace(aaa);" />



in code above events dont fired - verified

Source code

1
<layer name="q1" type="container" url="thumbnail/panorama1_thumbnail.jpg" align="lefttop" x="400" y="400" width="100" height="100" bgcolor="0x111111" bgalpha="1" onclick="trace(aaa);" />



but if I am add url - all work properly

why this happens?

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Friday, September 26th 2014, 5:24pm

Hi!
container must be bgcapture=true for capture mouse events

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN