Stuff
public text v1 · immutablecount = 0;
onMouseDown = function () {
newFlower = this.createEmptyMovieClip("whole"+count++, 10);
with (newFlower) {
var numPetals = (Math.ceil(Math.random()*10))+2;
trace(numPetals);
angle = 360/numPetals;
trace("angle="+angle);
var rotation = rotation+angle/2;
for (i=0; i<numPetals; i++) {
thisPetal = attachMovie("petal", "petal_mc"+i, i);
trace("petal="+i);
thisPetal._x = _xmouse;
thisPetal._y = _ymouse;
thisPetal._rotation = angle*i;
}
}
};