Hey.
I have four <layer> within on <layer type ="container">. When I assigned an action "onclick" to one of the <layer> it work fine. But when I assigned the very same action "onclick" on the root element <layer type="container">, then nothing happend. Why is it so ? How can I assign an action to the <layer type="container"> ?
Here is the code:
Code
<layer name="textExplication" url="plugins/textfield.swf" keep="true" visible="true" align="top" html="CLIQUEZ SANS RELACHER PUIS BOUGEZ LA SOURIS POUR NAVIGER DANS LA SPHERE.[br] VOUS POUVEZ AUSSI UTILISER LES FLECHES DU CLAVIER." css="font-family:myFontRegular; color:#ffffff;font-size:15px; text-align:center;" handcursor="false" background="false" scalechildren="true" y ="30"
/>
<!-- hotspots reaparaissent, et layer [explication] disparait -->
<layer name="cross" type="image" url="img/cross.png" keep="true" align="topright" scale="0.7" onclick="set(hotspot[spot1].visible, true); set(hotspot[spot2].visible, true); set(hotspot[spot3].visible, true); set(layer[explications].visible, false)"
/>
<layer name="arrows" type="image" url="img/arrows.png" keep="true" align="rightbottom" handcursor="false"
/>
<layer name="mause" type="image" url="img/mause.png" keep="true" visible="true" align="leftbottom" scale="0.9" handcursor="false" />
</layer>
Display More