Frame 1
function blink() {
head.blinking.play();
}
function eggDrop(eggo) {
_root.eggable = false;
var egg_handle = this.createEmptyMovieClip("egg_handle", 1000);
eggo._x = 140;
eggo._y = -110;
eggo.egg._rotation = 10;
ydrop = 50 + random(40);
momentum = (-ydrop) + (Math.random() * (ydrop * 2));
count = 0;
yspd = 0;
bunnypussy.gotoAndStop(count);
egg_handle.onEnterFrame = function () {
count++;
bunnypussy.gotoAndStop(count);
bunnysubpussy.gotoAndStop(count);
if (count <= 50) {
eggo._x = eggo._x - 0.1;
eggo._y = eggo._y + 0.1;
} else if ((eggo._y + yspd) < ydrop) {
yspd = yspd + (ydrop * 0.06);
eggo._y = eggo._y + yspd;
} else {
eggo._y = ydrop;
eggo.egg._rotation = eggo.egg._rotation + (momentum * 0.06);
eggo._x = eggo._x + (momentum * 0.1);
momentum = momentum * 0.9;
if (Math.abs(momentum) <= 2) {
momentum = 0;
count = 0;
bunnypussy.gotoAndStop(1);
bunnysubpussy.gotoAndStop(1);
_root.eggable = true;
_root.eyes_closed = false;
egg_handle.onEnterFrame = function () {
count++;
if (count >= 20) {
count = 0;
if (random(5) == 3) {
holder.layOne();
}
}
};
}
}
};
}
stop();
bunnypussy.stop();
bunnysubpussy.stop();
_root.eggable = true;
var blink_handle = this.createEmptyMovieClip("blink_handle", 1100);
blink_handle.blink_count = 0;
blink_handle.onEnterFrame = function () {
blink_count++;
if (blink_count >= 20) {
blink_count = 0;
if (random(8) == 3) {
blink();
}
}
};
Instance of Symbol 23 MovieClip "basketback" in Frame 1
onClipEvent (load) {
}
Instance of Symbol 33 MovieClip "holder" in Frame 1
onClipEvent (load) {
function popEgg() {
drawBackEgg(egg_array[9]);
egg_array[9].removeMovieClip();
egg_array[9] = null;
}
function layOne() {
if (_root.eggable) {
addEgg();
}
}
function drawBackEgg(eggy) {
var _local1 = new flash.geom.Matrix();
_local1.translate(eggy._x, eggy._y);
egg_bmp.draw(eggy, _local1);
}
function addEgg() {
var _local4 = random(10);
popEgg();
_root.eyes_closed = true;
_root.blink();
var _local3 = 9;
while (_local3 > _local4) {
egg_array[_local3] = egg_array[_local3 - 1];
egg_array[_local3 - 1] = null;
egg_array[_local3].swapDepths(((200 - (_local3 * 12)) + 6) + random(5));
_local3--;
}
egg_array[_local4].swapDepths(((200 - (_local3 * 12)) + 6) + random(5));
egg_array[_local4] = this.attachMovie("egg_sprite", (("egg_" + _local4) + "_") + Math.random(), (200 - (_local4 * 12)) + random(5));
_root.currentegg = egg_array[_local4];
_root.eggDrop(_root.currentegg);
}
egg_array = new Array(10);
var egg_bmp = (new flash.display.BitmapData(250, 150, true, 0));
var egg_bg = this.createEmptyMovieClip("egg_bg_bmp", 100);
egg_bg.attachBitmap(egg_bmp, 4);
_parent.basketfront.swapDepths(-100);
_parent.bunnypussy.swapDepths(-50);
}
onClipEvent (mouseDown) {
layOne();
}
onClipEvent (keyDown) {
layOne();
}
Instance of Symbol 17 MovieClip "egg" in Symbol 18 MovieClip [egg_sprite] Frame 1
onClipEvent (load) {
function colorSelect(bg) {
white = 0;
pastel = 4;
bright = 7;
primary = 10;
if (bg) {
white = 1;
pastel = 6;
bright = 8;
primary = 10;
}
colorOption = 1 + random(10);
colorSetting = "primary";
if (colorOption <= bright) {
colorSetting = "bright";
}
if (colorOption <= pastel) {
colorSetting = "pastel";
}
if (colorOption <= white) {
colorSetting = "white";
}
var _local4 = new flash.geom.ColorTransform();
var _local1 = 0;
var _local3 = 0;
var _local2 = 0;
switch (colorSetting) {
case "bright" :
case "primary" :
full = random(3);
empty = random(2);
if (empty == full) {
empty++;
}
_local1 = Math.random();
_local3 = Math.random();
_local2 = Math.random();
switch (full) {
case 0 :
_local1 = 1;
break;
case 1 :
_local3 = 1;
break;
case 2 :
_local2 = 1;
}
switch (empty) {
case 0 :
_local1 = 0;
break;
case 1 :
_local3 = 0;
break;
case 2 :
_local2 = 0;
}
break;
case "pastel" :
exclude = 7;
choice = random(3) + 1;
if (random(2)) {
secondchoice = random(3) + 1;
}
xor = 8 >> choice;
yor = 8 >> secondchoice;
exclude = exclude ^ xor;
if (xor != yor) {
exclude = exclude ^ yor;
}
_local1 = 0.5;
_local3 = 0.5;
_local2 = 0.5;
_rx = (Math.random() * 0.5) * Number(Boolean(exclude & 1));
_gx = (Math.random() * 0.5) * Number(Boolean(exclude & 2));
_bx = (Math.random() * 0.5) * Number(Boolean(exclude & 4));
_local1 = _local1 + _rx;
_local3 = _local3 + _gx;
_local2 = _local2 + _bx;
break;
case "white" :
default :
_local1 = 0.9;
_local3 = 0.9;
_local2 = 0.9;
_rando = Math.random() * 0.1;
_local1 = _local1 + _rando;
_local3 = _local3 + _rando;
_local2 = _local2 + _rando;
}
_r_hex = Math.round(_local1 * 255);
_g_hex = Math.round(_local3 * 255);
_b_hex = Math.round(_local2 * 255);
_clr_hex = ((_r_hex << 16) + (_g_hex << 8)) + _b_hex;
_local4.rgb = _clr_hex;
return(_local4);
}
function setColors() {
background_clr = colorSelect(true);
first_clr = colorSelect(false);
second_clr = colorSelect(false);
third_clr = colorSelect(false);
}
function colorize() {
setColors();
var _local3 = new flash.geom.Transform(bg_egg);
_local3.colorTransform = background_clr;
first_stripe.gotoAndStop(random(first_stripe._totalframes) + 1);
second_stripe.gotoAndStop(random(second_stripe._totalframes) + 1);
third_stripe.gotoAndStop(random(third_stripe._totalframes) + 1);
var _local1 = new flash.geom.Transform(first_stripe);
_local1.colorTransform = first_clr;
var _local2 = new flash.geom.Transform(second_stripe);
_local2.colorTransform = second_clr;
var _local4 = new flash.geom.Transform(third_stripe);
_local4.colorTransform = third_clr;
}
colorize();
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 60
stop();
Symbol 120 MovieClip Frame 1
stop();
stop();
Symbol 120 MovieClip Frame 14
if (!_root.eyes_closed) {
play();
}
Symbol 120 MovieClip Frame 15
if (_root.eyes_closed) {
gotoAndPlay (14);
}
Symbol 120 MovieClip Frame 16
if (_root.eyes_closed) {
gotoAndPlay (14);
}
Symbol 120 MovieClip Frame 24
stop();