1) if I create items in a for loop, is
correct to add a new eventListener for
each item ? Or should I add only 1
eventListener to the parent ? and call
the event through ID ?
It depends. If the items are listening for something, add it to them. If the parent is listening, add it to the parent. If you add it only to the parent, set the useCapture arg to true in the addEventListener method. It can get confusing in Flash because there is no difference between an event listener and an event handler: the handler actually points to the class that contains the handler.
2) if I want to scale my item, (a
LinkButton with icon image), I noticed
that the icon is sometimes resized
with delay, so I have a bit of
flickering when I trigger the event.
Should I not use icons, and set the
image in another way ? How can I fix
this ?
Without knowing how exactly you are doing this, I can't offer concrete solutions. Are you using a Resize effect? Are you scaling using overrides on scaleX and scaleY properties? Does this handle on mouseover or via some other event? All I can tell you is that you may be better off not using the LinkButton, or may want to change the skin instead of resizing. Show your code if you want more informed answers.