Hi, my solution is to set a property for all elements inside scrollarea, example group=scrollingobj
Then, adapting a solution from this forum, remove all layers whith group=scrollingobj
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
<action name="loop_all_layers">
sub(i,layer.count,1);
loop_all_layers_next(get(i));
</action>
<action name="loop_all_layers_next">
if(layer[%1].grupo == scrollingobj,
removelayer(%1, true);
);
dec(i);
if(i GE 0, loop_all_layers_next(get(i)) );
</action>
|