I have about 50 Kinetic.Image. I'm keeping them in an array. Many times I'm adding/removing (not destroying) to my layer, using in tweens and changing their name property (I never change their id's).
Sometimes, suddenly Kinetic.ids loses one of their id (or Kinetic.names loses one of their name), so that find method never work again. Then to understand this strange behaviour, I add manually again that image to the layer. And when I look to the children of the layer, there is the image.
However, since its id is lost in Kinetic.ids (and it never comes back with adding again to the layer), find method never works again for that image, because find method works based on Kinetic.ids (and Kinetic.names).
There is a problem with maintaining Kinetic.ids and Kinetic.names.
I had to re-write find method, which bypasses Kinetic.ids and Kinetic.names.
Suddenly, Kinetic.ids loses one of its node without reason.
When I add by hand again (ie. Kinetic.ids['ID'] = myNode), find method again works, but, that node does not listen to events. Somehow it becomes corrupted.
I have about 50 Kinetic.Image. I'm keeping them in an array. Many times I'm adding/removing (not destroying) to my layer, using in tweens and changing their name property (I never change their id's).
Sometimes, suddenly Kinetic.ids loses one of their id (or Kinetic.names loses one of their name), so that find method never work again. Then to understand this strange behaviour, I add manually again that image to the layer. And when I look to the children of the layer, there is the image.
However, since its id is lost in Kinetic.ids (and it never comes back with adding again to the layer), find method never works again for that image, because find method works based on Kinetic.ids (and Kinetic.names).
There is a problem with maintaining Kinetic.ids and Kinetic.names. I had to re-write find method, which bypasses Kinetic.ids and Kinetic.names.