I want to create some sort of lightbox effect. So I thought I create a container with a black bg, which holds a textfield or somesort. Now I want to hide the whole container when I click in the black area of the container. But it seems there's no interaciton possible with the container. I tried to enable it, capture, handcursor, but it won't work. Is this the architectecture of the container? I would hate to use an image to force interaction.
Code
<layer name="popup_container" type="container" width="100%" height="100%" scalechildren="false" align="center" alpha="0" autoalpha="true" keep="true" bgcolor="0x000000" bgalpha="0.5" zorder="100"
open="tween(layer[popup_container].alpha, 1);" close="tween(layer[popup_container].alpha, 0);" enabled="true" capture="true" handcursor="true" onclick="showlog(); trace('click'); layer[popup_container].close();" >
<layer name="link_63" type="container" bgcolor="0xbb1c21" bgalpha="1" align="lefttop" width="85" height="85" x="85" y="85" scalechildren="false" maskchildren="true" keep="true">
<layer name="map_btn" url="%SWFPATH%/skin/images/sprite.png" crop="85|0|85|85" onovercrop="85|85|85|85" />
</layer>
</layer>