loveberry wrote in flashdev 😯confused

Listens: The Police - King of Pain

Weird bug ...

This is the snippet of code that contains the problem, I think. The issue is that each time you click to create a flower, the top middle petal is drawn more than once, and because these are all semi-transparent, it looks darker than the other petals. The previous flower looks correct as soon as a new flower is created, though.

Code:

count = 0;
while (count<18) {
duplicateMovieClip(_root.petal, "petal"+i, i);
setProperty("petal"+i, _rotation, i*20);
i++;
count++;
}

click here to view the file

And the source file is available by clicking here and then right clicking garden.fla and choosing to save or download.

Any ideas?