ok... after loads of testing i answer my question myself :
<!-- setup -->
<layer name="x1" property="y1">
<layer name="x2" property="y2">
<action name="test">trace(%0, " ", name, " ", property);</action>
<!-- dynamically add action to multiple layers -->
set(layer[x1].onover, "test();");
set(layer[x2].onover, "test();");
<!-- behavior of actions when onover event is triggered -->
> INFO:test x1 y1
> INFO: test x1 y1
--> reading the layers properties works for layer events
--> like this it is possible to use generalized functions
--> which act on their layers information.
BUT
--> for custom functions added to layers
--> reading the layers properties is not possible
<!--example -->
set(layer[x2].customaction, "test();");
This post has been edited 3 times, last edit by "indexofrefraction" (Jun 13th 2016, 5:46pm)