Frame 1
function droste(movie) {
colorObject.ra = "0";
colorObject.ga = "0";
colorObject.ba = "0";
while (((colorObject.ra == "0") && (colorObject.ga == "0")) && (colorObject.ba == "0")) {
colorObject.ra = colorValues[random(colorValues.length)];
colorObject.ga = colorValues[random(colorValues.length)];
colorObject.ba = colorValues[random(colorValues.length)];
}
x = 0;
while (x < 4) {
depth++;
duplicateMovieClip (movie, "beest" add depth, depth);
target = eval ("beest" add depth);
target._width = target._width * scale;
target._height = target._height * scale;
xdiff = movie.width / 4;
ydiff = movie.height / 4;
target.width = movie.width * scale;
target.height = movie.height * scale;
if ((x % 2) == 0) {
target._x = target._x - xdiff;
} else {
target._x = target._x + xdiff;
}
if (x < 2) {
target._y = target._y - ydiff;
} else {
target._y = target._y + ydiff;
}
target.color = new Color(target);
target.color.setTransform(_root.colorObject);
x++;
}
removeMovieClip(movie);
}
duplicateMovieClip ("beest", "beest2", 2);
duplicateMovieClip ("beest", "beest3", 3);
beest2._x = 175;
beest3._x = 525;
beest2._y = (beest3._y = 175);
beest2.width = (beest3.width = 275);
beest2.height = (beest3.height = 330);
beest.stop();
beest._visible = false;
scale = 0.45;
colorObject = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
colorValues = ["0", "25", "50", "75", "100"];
depth = 3;
stop();
Frame 2
if (random(20) == 1) {
target = eval ("beest" add random(depth));
if (!target) {
}
droste(target);
}
Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 4 MovieClip Frame 1
Symbol 6 Button
on (release) {
_parent.droste(this);
}