Frame 2
stop();
Instance of Symbol 38 MovieClip in Frame 2
//component parameters
onClipEvent (initialize) {
seconds = 70;
}
Frame 4
gotoAndStop (2);
Symbol 6 Button
on (release) {
gotoAndStop (3);
}
Symbol 8 Button
on (release) {
gotoAndStop (2);
}
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 3
stop();
Symbol 21 MovieClip Frame 10
gotoAndPlay (1);
Symbol 22 MovieClip Frame 20
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
play();
Symbol 35 MovieClip Frame 3
stop();
Symbol 35 MovieClip Frame 5
stop();
Symbol 35 MovieClip Frame 14
stop();
Symbol 35 MovieClip Frame 30
stop();
Symbol 35 MovieClip Frame 36
stop();
Symbol 35 MovieClip Frame 42
stop();
Symbol 35 MovieClip Frame 48
stop();
Symbol 35 MovieClip Frame 54
stop();
Symbol 35 MovieClip Frame 63
stop();
Symbol 35 MovieClip Frame 70
stop();
Symbol 35 MovieClip Frame 78
stop();
Symbol 36 MovieClip Frame 2
birdEntrance = math.round((math.random() * 400) - 200);
setProperty("bird", _x , birdEntrance);
bird.gotoAndPlay("fly in");
Symbol 36 MovieClip Frame 22
bird.gotoAndPlay("idle");
birdScale = 100;
Symbol 36 MovieClip Frame 23
birdX = bird._x;
birdY = bird._y;
whichDirection = math.round((math.random() * 3) + 1);
birdAction = math.round((math.random() * 14) + 1);
actionReadout.birdAction = birdAction;
if (birdAction >= 6) {
if (whichDirection == 1) {
bird.gotoAndPlay("up");
birdScale = birdScale - 15;
setProperty("bird", _y , birdY - 15);
setProperty("bird", _xscale , birdScale);
setProperty("bird", _yscale , birdScale);
play();
}
if (whichDirection == 2) {
bird.gotoAndPlay("down");
setProperty("bird", _y , birdY + 15);
birdScale = birdScale + 15;
setProperty("bird", _xscale , birdScale);
setProperty("bird", _yscale , birdScale);
play();
}
if (whichDirection == 4) {
bird.gotoAndPlay("right");
setProperty("bird", _x , birdX + 15);
play();
}
if (whichDirection == 3) {
bird.gotoAndPlay("left");
setProperty("bird", _x , birdX - 15);
play();
}
}
if (birdAction == 4) {
birdWillFly = math.round((math.random() * 4) + 1);
if (birdWillFly == 1) {
bird.gotoAndPlay("chirp");
play();
}
if (birdWillFly == 2) {
bird.gotoAndPlay("flyAway");
gotoAndPlay ("Fly Away");
}
if (birdWillFly == 3) {
bird.gotoAndPlay("idle");
play();
}
if (birdWillFly == 4) {
bird.gotoAndPlay("idle");
play();
}
if (birdWillFly == 5) {
bird.gotoAndPlay("idle");
play();
}
}
if (birdAction == 3) {
bird.gotoAndPlay("tilt");
play();
}
if (birdAction == 2) {
bird.gotoAndPlay("peck");
play();
}
if (birdAction == 5) {
bird.gotoAndPlay("idle");
play();
}
if (birdAction <= 1) {
bird.gotoAndPlay("idle");
play();
}
Symbol 36 MovieClip Frame 29
stop();
waitLength = math.round((math.random() * 22) + 50);
willItWait = math.random();
if (willItWait >= 0.5) {
gotoAndPlay(waitLength);
}
if (willItWait < 0.5) {
gotoAndPlay ("waitLoopEnd");
}
Symbol 36 MovieClip Frame 81
gotoAndStop ("action");
Symbol 36 MovieClip Frame 95
stop();
Symbol 37 MovieClip Frame 1
sparrownumber = 1;
sparrowdepth = 1;
Symbol 37 MovieClip Frame 10
randomX = math.round(math.random() * 500);
randomY = math.round((math.random() * 100) + 100);
randomScale = math.round((math.random() * 140) + 10);
duplicateMovieClip ("singleBird", "singleBird" + sparrownumber, sparrowdepth);
setProperty("singleBird", _xscale , randomScale);
setProperty("singleBird", _yscale , randomScale);
sparrownumber = sparrownumber + 1;
sparrowdepth = sparrowdepth + 1;
if (sparrownumber >= 20) {
stop();
}
Symbol 37 MovieClip Frame 17
gotoAndPlay ("sparrow loop");
Symbol 38 MovieClip Frame 1
currentFrame = _parent._currentframe;
_parent.gotoAndStop(currentFrame);
pauseFor = seconds * 1000;
originalTime = getTimer();
targetTime = originalTime + pauseFor;
Symbol 38 MovieClip Frame 2
originalTime = getTimer();
Symbol 38 MovieClip Frame 3
if (originalTime > targetTime) {
_parent.gotoAndPlay(currentFrame + 1);
stop();
} else {
gotoAndPlay ("timer");
}
Symbol 44 Button
on (release) {
gotoAndPlay (3);
}