Frame 2
stop();
Instance of Symbol 7 MovieClip in Frame 2
onClipEvent (load) {
barSpeed = 0.3;
}
onClipEvent (enterFrame) {
perload = (_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100;
this.bar._xscale = this.bar._xscale + ((perload - this.bar._xscale) * barSpeed);
if (perload >= 100) {
_parent.gotoAndPlay("intro");
}
}
Instance of Symbol 13 MovieClip in Frame 2
onClipEvent (load) {
this.swapDepths(10000);
}
Frame 31
stop();
Frame 32
i = 1;
while (i < 80) {
removeMovieClip(this["flower" + i]);
i++;
}
stop();
Frame 42
finalScore = 0;
windDirect = 1;
stop();
function damage() {
dmg = 15 + Math.ceil(Math.random() * 5);
if ((this.blood.bar._xscale - dmg) < 0) {
this.blood.newScale = 0;
finalScore = this.dragon.score;
gotoAndPlay ("end");
} else {
this.blood.newScale = this.blood.newScale - dmg;
}
}
Instance of Symbol 31 MovieClip "movingBg" in Frame 42
onClipEvent (load) {
grassSpeed = 3;
}
onClipEvent (enterFrame) {
this.grass._x = this.grass._x + grassSpeed;
if ((this.grass._x + grassSpeed) > 1240) {
this.grass._x = 0;
} else if ((this.grass._x - grassSpeed) < -1240) {
this.grass._x = 0;
}
}
Instance of Symbol 76 MovieClip "glow" in Frame 42
onClipEvent (load) {
gotoAndStop (30);
}
Instance of Symbol 79 MovieClip "pts" in Frame 42
onClipEvent (load) {
gotoAndStop (65);
}
Instance of Symbol 82 MovieClip "bloodGlow" in Frame 42
onClipEvent (load) {
this.gotoAndStop(90);
}
Instance of Symbol 93 MovieClip "dragon" in Frame 42
onClipEvent (load) {
speed = 0.15;
score = 0;
}
onClipEvent (enterFrame) {
_x = (_x + ((newX - _x) * speed));
_y = (_y + ((newY - _y) * speed));
this._parent.glow._x = _x;
this._parent.glow._y = _y;
this._parent.bubble._x = _x;
this._parent.bubble._y = _y - 5;
this._parent.pts._x = _x + 20;
this._parent.pts._y = _y - 10;
newX = _root._xmouse;
newY = _root._ymouse;
if (_root._xmouse > this._x) {
this._xscale = 100;
_parent.movingBg.grassSpeed = -1.5;
} else {
this._xscale = -100;
_parent.movingBg.grassSpeed = 1.5;
}
rollValue = (2 * Math.abs(newY - _y)) / 10;
if (newY > _y) {
_rotation = rollValue;
} else {
_rotation = (-rollValue);
}
if (this._x <= 50) {
this._x = 50;
} else if (this._x >= 580) {
this._x = 580;
}
if (this._y >= 240) {
this._y = 240;
} else if (this._y <= 40) {
this._y = 40;
}
this._parent.score.text = score;
}
Instance of Symbol 94 MovieClip "power" in Frame 42
onClipEvent (load) {
dropSpeed = 1;
}
onClipEvent (enterFrame) {
this._y = this._y + dropSpeed;
if (this._y >= 300) {
dropSpeed = 0;
this._x = 50 + (Math.random() * 520);
this._y = -30;
this.poewerHit = false;
}
if (this.poewerHit != true) {
if (this.hitAreaPower.hitTest(this._parent.dragon)) {
this.poewerHit = true;
this._parent.glow._x = this._parent.dragon._x;
this._parent.glow._y = this._parent.dragon._y;
this._parent.glow.gotoAndPlay(1);
if (this._currentframe == 2) {
this._parent.bloodGlow.gotoAndPlay(1);
if ((this._parent.blood.newScale + 30) > 100) {
this._parent.blood.newScale = 100;
} else {
this._parent.blood.newScale = this._parent.blood.newScale + 30;
}
} else if (this._currentframe == 1) {
this._parent.pts.gotoAndPlay(1);
_parent.dragon.score = _parent.dragon.score + 100;
} else if (this._currentframe == 3) {
_parent.dragon.gotoAndStop("shield");
this._parent.bubble.gotoAndPlay("startShield");
}
dropSpeed = 0;
this._x = 50 + (Math.random() * 520);
this._y = -30;
this.poewerHit = false;
}
}
}
Instance of Symbol 100 MovieClip "blood" in Frame 42
onClipEvent (load) {
newScale = 100;
scaleSpeed = 0.1;
}
onClipEvent (enterFrame) {
this.bar._xscale = this.bar._xscale + ((newScale - this.bar._xscale) * scaleSpeed);
if (this.bar._xscale < 18) {
this.bar.play();
}
}
Instance of Symbol 102 MovieClip "timer" in Frame 42
onClipEvent (load) {
function restart() {
countdown = getTimer() + (1000 * seconds);
running = true;
time = seconds;
}
seconds = 40;
time = seconds;
running = false;
this.displayTime.text = time;
}
onClipEvent (enterFrame) {
if (running) {
if (time == 0) {
running = false;
_parent.levelDisplay.gotoAndPlay(3);
} else {
time = Math.round((countdown - getTimer()) / 1000);
if (time < 10) {
this.displayTime.text = "0" + time;
} else {
this.displayTime.text = time;
}
}
}
}
Instance of Symbol 108 MovieClip "levelDisplay" in Frame 42
onClipEvent (load) {
levelVar = 0;
}
Instance of Symbol 110 MovieClip "controller" in Frame 42
onClipEvent (load) {
this._parent.dragon.hitA._visible = false;
i = 1;
while (i < 80) {
duplicateMovieClip (_parent.flower, "flower" + i, i);
_parent["flower" + i].inner._x = 100 + (Math.random() * 800);
_parent["flower" + i].inner._y = Math.random() * 350;
_parent["flower" + i].inner.flowSpeed = 1 + (Math.random() * 2);
_parent["flower" + i].inner.windSpeed = 1 + (Math.random() * 1.2);
_parent["flower" + i].inner._xscale = (_parent["flower" + i].inner._yscale = 30 + (Math.random() * 70));
_parent["flower" + i].inner._alpha = _parent["flower" + i].inner._xscale + 10;
_parent["flower" + i].inner.gotoAndPlay(Math.ceil(Math.random() * 50));
_parent["flower" + i].inner.hit = false;
i++;
}
}
Instance of Symbol 113 MovieClip in Frame 42
onClipEvent (load) {
this.maxSpeed = 1;
}
Frame 82
_root.dragonflyLoadScore = 0;
finalResult.text = finalScore;
stop();
Frame 90
if (_root.dragonflyLoadScore == 1) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 97
playerName1.text = "";
playerName2.text = "";
playerName3.text = "";
playerName4.text = "";
playerName5.text = "";
playerName6.text = "";
playerName7.text = "";
playerName8.text = "";
playerName9.text = "";
playerName10.text = "";
playerScore1.text = "";
playerScore2.text = "";
playerScore3.text = "";
playerScore4.text = "";
playerScore5.text = "";
playerScore6.text = "";
playerScore7.text = "";
playerScore8.text = "";
playerScore9.text = "";
playerScore10.text = "";
_root.dragonflyLoad = 0;
random2 = Math.ceil(Math.random() * 1000000);
loadVariablesNum ("view.php?reload=" + random2, 0, "POST");
Frame 103
if (_root.dragonflyLoad == 1) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Frame 110
playerName1.text = uName1;
playerName2.text = uName2;
playerName3.text = uName3;
playerName4.text = uName4;
playerName5.text = uName5;
playerName6.text = uName6;
playerName7.text = uName7;
playerName8.text = uName8;
playerName9.text = uName9;
playerName10.text = uName10;
playerScore1.text = uScore1;
playerScore2.text = uScore2;
playerScore3.text = uScore3;
playerScore4.text = uScore4;
playerScore5.text = uScore5;
playerScore6.text = uScore6;
playerScore7.text = uScore7;
playerScore8.text = uScore8;
playerScore9.text = uScore9;
playerScore10.text = uScore10;
stop();
Instance of Symbol 26 MovieClip "cloud" in Symbol 31 MovieClip Frame 1
onClipEvent (load) {
cloudSpeed = 0.5;
}
onClipEvent (enterFrame) {
_x = (_x - cloudSpeed);
if (_x <= -955) {
_x = 0;
}
}
Symbol 36 Button
on (release) {
gotoAndStop ("demo");
}
Symbol 42 Button
on (release) {
getURL ("http://www.dreamance.com", "_blank");
}
Instance of Symbol 11 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 90));
}
Instance of Symbol 11 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 90));
}
Instance of Symbol 11 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 90));
}
Instance of Symbol 11 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 90));
}
Instance of Symbol 11 MovieClip in Symbol 70 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(Math.ceil(Math.random() * 90));
}
Symbol 72 Button
on (release) {
gotoAndStop ("game");
}
Symbol 76 MovieClip Frame 30
stop();
Symbol 79 MovieClip Frame 65
stop();
Symbol 82 MovieClip Frame 84
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 450
_parent.dragon.gotoAndStop(1);
gotoAndStop (1);
Instance of Symbol 88 MovieClip "inner" in Symbol 89 MovieClip Frame 1
onClipEvent (load) {
this.hitAreaB._visible = false;
finalWind = windSpeed;
}
onClipEvent (enterFrame) {
this._y = this._y - flowSpeed;
if (_parent._parent.windDirect == 1) {
changeWind = -1 * windSpeed;
} else if (_parent._parent.windDirect == 2) {
changeWind = windSpeed;
} else if (_parent._parent.windDirect == 3) {
changeWind = windSpeed / 3;
} else if (_parent._parent.windDirect == 4) {
changeWind = windSpeed / 2;
} else if (_parent._parent.windDirect == 5) {
changeWind = (-1 * windSpeed) / 3;
} else if (_parent._parent.windDirect == 6) {
changeWind = (-1 * windSpeed) / 2;
}
finalWind = finalWind + ((changeWind - finalWind) * 0.05);
this._x = this._x + finalWind;
if (((this._y < -320) || (this._x < -200)) || (this._x > 820)) {
this._y = Math.random() * 250;
this._x = -200 + (Math.random() * 1020);
this._xscale = (this._yscale = 30 + (Math.random() * 70));
this._alpha = this._xscale + 10;
this.flowSpeed = 1 + (Math.random() * 2);
this.windSpeed = 1 + (Math.random() * 1.2);
this.hit = false;
}
if (this.hit != true) {
if (this.hitAreaB.hitTest(this._parent._parent.dragon.hitA)) {
this._parent._parent.damage();
this._parent._parent.dragon.gotoAndPlay(10);
this.hit = true;
}
}
}
Symbol 93 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hitA" in Symbol 93 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 93 MovieClip Frame 59
gotoAndStop (1);
Symbol 93 MovieClip Frame 65
stop();
Symbol 94 MovieClip Frame 1
stop();
Instance of Symbol 87 MovieClip "hitAreaPower" in Symbol 94 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 5
levelVar = levelVar + 1;
if (levelVar < 10) {
levelInner.display.text = "Level 0" + levelVar;
} else {
levelInner.display.text = "Level " + levelVar;
}
Symbol 108 MovieClip Frame 17
if ((this._parent.blood.newScale + 10) > 100) {
this._parent.blood.newScale = 100;
} else {
this._parent.blood.newScale = this._parent.blood.newScale + 10;
}
_parent.timer.restart();
Symbol 108 MovieClip Frame 45
stop();
Symbol 112 MovieClip Frame 57
if ((_parent.blood.bar._xscale - 1) < 0) {
_parent.blood.newScale = 0;
_parent.finalScore = this._parent.dragon.score;
_parent.gotoAndPlay("end");
} else {
_parent.blood.newScale = _parent.blood.newScale - 1;
_parent.dragon.score = _parent.dragon.score + 10;
}
Symbol 113 MovieClip Frame 400
chance = Math.ceil(Math.random() * 3);
if (chance == 1) {
this._parent.power.gotoAndStop(1);
} else if (chance == 2) {
this._parent.power.gotoAndStop(2);
} else if (chance == 3) {
this._parent.power.gotoAndStop(3);
}
this._parent.power.dropSpeed = maxSpeed + (Math.random() * 2);
if (maxSpeed > 7) {
maxSpeed = 7;
} else {
maxSpeed = maxSpeed + 0.05;
}
Symbol 115 MovieClip Frame 107
comingWind = Math.ceil(Math.random() * 6);
_parent.windDirect = comingWind;
Symbol 126 Button
on (release) {
rScore = _parent.finalScore;
if (playerName.text == "") {
rName = "Player";
} else {
rName = playerName.text;
}
random1 = Math.ceil(Math.random() * 1000000);
loadVariablesNum ("sign.php?reload=" + random1, 0, "POST");
_parent.gotoAndPlay("echoScore");
}
Symbol 131 Button
on (release) {
_parent.gotoAndPlay("demo");
}
Symbol 134 MovieClip Frame 1
Selection.setFocus("playerName");
stop();
Symbol 160 Button
on (release) {
gotoAndStop ("demo");
}