You are not logged in.

  • "nonchiedercilaparola" started this thread

Posts: 148

Location: Italy

Occupation: Freelance Fotographer

  • Send private message

1

Wednesday, March 12th 2014, 11:09am

removelayer doesn't work if there are child element?

hi, i notice that when i try to remove a layer that has child the removelayer action doesn't work.

example: if i have this element

<layer name="parent" ... >
<layer name="child1" ... />
<layer name="child2" ... />
</layer>

when i use this action:

removelayer(child1); --> work
removelayer(child2); --> work
removelayer(parent); --> doesn't work

This post has been edited 1 times, last edit by "nonchiedercilaparola" (Apr 4th 2014, 10:32am)


2

Tuesday, March 18th 2014, 2:37pm

Hi,

please note that removelayer will remove only the element itself, not the children elements.

That means after removing the parent element, the children elements will fall back to the stage.

Best regards,
Klaus

  • "nonchiedercilaparola" started this thread

Posts: 148

Location: Italy

Occupation: Freelance Fotographer

  • Send private message

3

Friday, April 4th 2014, 10:34am

so if i want remove all children i have to remove each of them. thanks