You are not logged in.

1

Wednesday, October 17th 2012, 2:09pm

enabled="false" dont work if layer is parent of any layer?

Hi

i have this situation:

Source code

1
2
3
<layer name="a4_soba1" url="library/a4_soba1.jpg" keep="true" visible="false" alpha="0" align="center" onclick="close_popup(get(name));" >
			<layer name="krizec1" keep="true" enabled="false" url="skin/krizec.png" align="righttop" x="-12" y="-12" visible="true" handcursor="false" />
		</layer>


Layer 'a4_soba1' is one of many popup windows i use in tour and are called by a user (changing visible and alpha).

Problem is that the layer 'krizec1' isnt disabled. Onclick action on layer 'a4_soba1' doesnt work where layer 'krizec1' is visible. Handcursor of layer 'krizec1' also isnt disabled.

Is that normal or am i doing smth wrong?

I want to be layer 'krizec1' visible over layer 'a4_soba1' but mouse onclick action is defined with layer 'a4_soba1'

If i move 'krizec1' up one level so that it doesnt have parent, then the 'enabled' function is working properly

2

Thursday, October 18th 2012, 6:28pm

Hi,

with enabled=false that element itself is disabled for receiving events, but it will be still a graphical element of the parent element.
Try adding children=false to the parent element.

Best regards,
Klaus

3

Thursday, October 18th 2012, 10:16pm

it works, thanks!