I have a small problem I really don't understand and maybe you can help me :)
I designed a navigation bar with 3 links in the design tab. I added another layer around them to have an array of links. To go through the array I used following for-loop:
"for link, i in nav.childrenWithName("links").children"
"link" is the object in the array, "i" is the index and "nav.childrenWithName("links").children" is the array.
Now I want to work with the index in an event, but there the index is always "3". But it should be "0", "1" or "2" like before/after the event.
I added the layer structure and the code sample as an image.
Can someone explain me this odd behavior?
Thank you in advance,