I prepared the essence of this bug (component constructor ran once more). I really can't find a mistake in this short code, but maybe I just didn't code it properly for reflection or some other mechanism...
Here is the flashDevelop project:
http://gospoda.oz.pl/vidmo.rarIt traces:
1
2
0
but I only instantiate
new Vidmo(1)
new Vidmo(2)
And trace is only in Vidmo constructor, tracing the number argument.
Thank You in advance.
EDIT: oh, the "0" disappears when I comment out these lines in main command:
registerMediator(new VidmoMediator(shell.vidmo1));
registerMediator(new VidmoMediator(shell.vidmo2));
so it's like the problem is somewhere around, or inside, reflection mechanism.