Frame 1
function getLoaded() {
tkb = _root.getBytesTotal();
}
function checkLoad() {
p = Math.round((_root.getBytesLoaded() / tkb) * 100);
loaded = p + "%";
}
this.onLoad = getLoaded;
this.onEnterFrame = checkLoad;
Frame 13
if (p == 100) {
_root.gotoAndStop("start");
}
Frame 105
function go() {
p = Math.round((_root.getBytesLoaded() / tkb) * 100);
loaded = p + "%";
if ((p == 100) && (starter._currentframe == 1)) {
starter.play();
}
}
stop();
stagemov.setMask(stagemask);
this.onEnterFrame = go;
Frame 115
function skullMode() {
_root.gotoAndStop("skull");
jah.gotoAndPlay(2);
yellowbox.gotoAndStop(1);
skullbox.gotoAndStop(2);
bluebox.gotoAndStop(1);
greenbox.gotoAndStop(1);
}
function yellowMode() {
_root.gotoAndStop("yello");
jah.gotoAndPlay(2);
yellowbox.gotoAndStop(2);
skullbox.gotoAndStop(1);
bluebox.gotoAndStop(1);
greenbox.gotoAndStop(1);
}
function blueMode() {
_root.gotoAndStop("blue");
jah.gotoAndPlay(2);
yellowbox.gotoAndStop(1);
skullbox.gotoAndStop(1);
bluebox.gotoAndStop(2);
greenbox.gotoAndStop(1);
}
function greenMode() {
_root.gotoAndStop("green");
jah.gotoAndPlay(2);
yellowbox.gotoAndStop(1);
skullbox.gotoAndStop(1);
bluebox.gotoAndStop(1);
greenbox.gotoAndStop(2);
}
stop();
_root.gotoAndStop("yello");
yellowbox.gotoAndStop(2);
skullbox.onPress = skullMode;
yellowbox.onPress = yellowMode;
bluebox.onPress = blueMode;
greenbox.onPress = greenMode;
Symbol 3 MovieClip [flash4] Frame 8
removeMovieClip(this);
Symbol 4 MovieClip [flash3] Frame 8
removeMovieClip(this);
Symbol 7 MovieClip [star3] Frame 15
stop();
Symbol 8 MovieClip [star2] Frame 15
stop();
Symbol 13 MovieClip [blast2] Frame 12
this.removeMovieClip();
Symbol 17 MovieClip [blast] Frame 12
this.removeMovieClip();
Symbol 26 Button
on (press) {
_root.dragon.head._x = this._x - 50;
_root.dragon.head._y = this._y - 20;
_root.balls.attachMovie("blast", "blast1", 2000);
_root.balls.blast1._x = this._x;
_root.balls.blast1._y = this._y;
_root.bleeps.nextFrame();
}
Symbol 27 MovieClip Frame 6
stop();
Symbol 28 MovieClip [ball] Frame 5
stop();
Symbol 29 MovieClip [star] Frame 15
stop();
Symbol 78 MovieClip Frame 17
stop();
Symbol 86 MovieClip Frame 1
counter = 0;
onEnterFrame = function () {
counter = counter + 1;
if (counter == 1) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 2) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 3) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 4) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 5) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 6) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 7) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter == 8) {
ball = attachMovie("flash3", "b" + counter, counter);
ball._x = (Math.random() * 400) + 200;
ball._y = (Math.random() * 200) + 90;
ball._rotation = Math.random() * 360;
star = attachMovie("flash4", "s" + counter, counter + 10);
star._x = (Math.random() * 400) + 200;
star._y = (Math.random() * 200) + 90;
star._rotation = Math.random() * 360;
}
if (counter > 9) {
counter = 0;
}
};
Symbol 138 MovieClip Frame 12
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 5
stop();
Symbol 199 MovieClip Frame 8
gotoAndStop (1);
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 5
stop();
Symbol 209 MovieClip Frame 8
gotoAndStop (1);
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 5
stop();
Symbol 222 MovieClip Frame 8
gotoAndStop (1);
Symbol 253 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 5
stop();
Symbol 253 MovieClip Frame 8
gotoAndStop (1);
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 5
stop();
Symbol 263 MovieClip Frame 8
gotoAndStop (1);
Symbol 268 Button
on (press) {
_root.play();
this.play();
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 5
stop();
Symbol 269 MovieClip Frame 8
stop();
Symbol 277 Button
on (release) {
getURL ("http://www.alphaandomega.co.uk", "_blank");
stopAllSounds();
}
Symbol 287 MovieClip Frame 10
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 3
stop();
Symbol 313 MovieClip Frame 5
stop();
Symbol 318 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 3
stop();
Symbol 318 MovieClip Frame 5
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 3
stop();
Symbol 321 MovieClip Frame 5
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 6
gotoAndStop (2);
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 3
stop();
Symbol 332 MovieClip Frame 5
stop();
Symbol 341 Button
on (release) {
getURL ("http://www.bit-101.com", "_blank");
}
Symbol 342 Button
on (rollOver) {
_root.loop1.gotoAndPlay(2);
if (!(_root.loopStatus === 2)) {
_root.loop2.gotoAndStop(1);
}
if (!(_root.loopStatus === 3)) {
_root.loop3.gotoAndStop(1);
}
if (!(_root.loopStatus === 4)) {
_root.loop4.gotoAndStop(1);
}
if (!(_root.loopStatus === 5)) {
_root.loop5.gotoAndStop(1);
}
}
on (press) {
_root.loops.gotoAndStop(3);
_root.loopStatus = 1;
if (_root.loop2._currentframe == 5) {
_root.loop2.gotoAndPlay(5);
}
if (_root.loop3._currentframe == 5) {
_root.loop3.gotoAndPlay(5);
}
if (_root.loop4._currentframe == 5) {
_root.loop4.gotoAndPlay(5);
}
if (_root.loop5._currentframe == 5) {
_root.loop5.gotoAndPlay(5);
}
}
on (rollOut) {
if (!(_root.loopStatus === 1)) {
_root.loop1.gotoAndPlay(5);
}
}
Symbol 343 Button
on (rollOver) {
_root.loop2.gotoAndPlay(2);
if (!(_root.loopStatus === 1)) {
_root.loop1.gotoAndStop(1);
}
if (!(_root.loopStatus === 3)) {
_root.loop3.gotoAndStop(1);
}
if (!(_root.loopStatus === 4)) {
_root.loop4.gotoAndStop(1);
}
if (!(_root.loopStatus === 5)) {
_root.loop5.gotoAndStop(1);
}
}
on (press) {
_root.loops.gotoAndStop(4);
_root.loopStatus = 2;
if (_root.loop1._currentframe == 5) {
_root.loop1.gotoAndPlay(5);
}
if (_root.loop3._currentframe == 5) {
_root.loop3.gotoAndPlay(5);
}
if (_root.loop4._currentframe == 5) {
_root.loop4.gotoAndPlay(5);
}
if (_root.loop5._currentframe == 5) {
_root.loop5.gotoAndPlay(5);
}
}
on (rollOut) {
if (!(_root.loopStatus === 2)) {
_root.loop2.gotoAndPlay(5);
}
}
Symbol 344 Button
on (rollOver) {
_root.loop3.gotoAndPlay(2);
if (!(_root.loopStatus === 1)) {
_root.loop1.gotoAndStop(1);
}
if (!(_root.loopStatus === 2)) {
_root.loop2.gotoAndStop(1);
}
if (!(_root.loopStatus === 4)) {
_root.loop4.gotoAndStop(1);
}
if (!(_root.loopStatus === 5)) {
_root.loop5.gotoAndStop(1);
}
}
on (press) {
_root.loops.gotoAndStop(5);
_root.loopStatus = 3;
if (_root.loop1._currentframe == 5) {
_root.loop1.gotoAndPlay(5);
}
if (_root.loop2._currentframe == 5) {
_root.loop2.gotoAndPlay(5);
}
if (_root.loop4._currentframe == 5) {
_root.loop4.gotoAndPlay(5);
}
if (_root.loop5._currentframe == 5) {
_root.loop5.gotoAndPlay(5);
}
}
on (rollOut) {
if (!(_root.loopStatus === 3)) {
_root.loop3.gotoAndPlay(5);
}
}
Symbol 345 Button
on (rollOver) {
_root.loop4.gotoAndPlay(2);
if (!(_root.loopStatus === 1)) {
_root.loop1.gotoAndStop(1);
}
if (!(_root.loopStatus === 2)) {
_root.loop2.gotoAndStop(1);
}
if (!(_root.loopStatus === 3)) {
_root.loop3.gotoAndStop(1);
}
if (!(_root.loopStatus === 5)) {
_root.loop5.gotoAndStop(1);
}
}
on (press) {
_root.loops.gotoAndStop(6);
_root.loopStatus = 4;
if (_root.loop1._currentframe == 5) {
_root.loop1.gotoAndPlay(5);
}
if (_root.loop2._currentframe == 5) {
_root.loop2.gotoAndPlay(5);
}
if (_root.loop3._currentframe == 5) {
_root.loop3.gotoAndPlay(5);
}
if (_root.loop5._currentframe == 5) {
_root.loop5.gotoAndPlay(5);
}
}
on (rollOut) {
if (!(_root.loopStatus === 4)) {
_root.loop4.gotoAndPlay(5);
}
}
Symbol 346 Button
on (rollOver) {
_root.loop5.gotoAndPlay(2);
if (!(_root.loopStatus === 1)) {
_root.loop1.gotoAndStop(1);
}
if (!(_root.loopStatus === 2)) {
_root.loop2.gotoAndStop(1);
}
if (!(_root.loopStatus === 3)) {
_root.loop3.gotoAndStop(1);
}
if (!(_root.loopStatus === 4)) {
_root.loop4.gotoAndStop(1);
}
}
on (press) {
_root.loops.gotoAndStop(7);
_root.loopStatus = 5;
if (_root.loop1._currentframe == 5) {
_root.loop1.gotoAndPlay(5);
}
if (_root.loop2._currentframe == 5) {
_root.loop2.gotoAndPlay(5);
}
if (_root.loop3._currentframe == 5) {
_root.loop3.gotoAndPlay(5);
}
if (_root.loop4._currentframe == 5) {
_root.loop4.gotoAndPlay(5);
}
}
on (rollOut) {
if (!(_root.loopStatus === 5)) {
_root.loop5.gotoAndPlay(5);
}
}
Symbol 353 Button
on (press) {
_root.loops.gotoAndStop(2);
_root.loopStatus = 0;
if (_root.loop1._currentframe == 5) {
_root.loop1.gotoAndPlay(5);
}
if (_root.loop2._currentframe == 5) {
_root.loop2.gotoAndPlay(5);
}
if (_root.loop3._currentframe == 5) {
_root.loop3.gotoAndPlay(5);
}
if (_root.loop4._currentframe == 5) {
_root.loop4.gotoAndPlay(5);
}
if (_root.loop5._currentframe == 5) {
_root.loop5.gotoAndPlay(5);
}
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 15
stop();
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 6
stop();
Symbol 370 MovieClip Frame 1
function pointMove() {
this._x = this._x - direction;
if (this._x > (right - (this._width / 2))) {
this._x = right - (this._width / 2);
direction = speed;
} else if (this._x < (left + (this._width / 2))) {
this._x = left + (this._width / 2);
direction = -speed;
}
}
function starPlay() {
skullPlay = true;
star1.onEnterFrame = starMove1;
star2.onEnterFrame = starMove2;
}
function starMove1() {
this.vx = this.vx + ((point4._x - this._x) * 0.01);
this.vy = this.vy + ((point4._y - this._y) * 0.01);
this.vx = this.vx + ((Math.random() * 2) - 1);
this.vy = this.vy + ((Math.random() * 2) - 1);
this.vx = this.vx * dampStar;
this.vy = this.vy * dampStar;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this._rotation = this._rotation + this.vy;
this._alpha--;
if (this._alpha < 1) {
this.gotoAndPlay(2);
this._x = point1._x;
this._y = point1._y;
this._alpha = 100;
flash1.gotoAndPlay(2);
}
}
function starMove2() {
this.vx = this.vx + ((point4._x - this._x) * 0.01);
this.vy = this.vy + ((point4._y - this._y) * 0.01);
this.vx = this.vx + ((Math.random() * 2) - 1);
this.vy = this.vy + ((Math.random() * 2) - 1);
this.vx = this.vx * dampStar;
this.vy = this.vy * dampStar;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this._rotation = this._rotation + this.vy;
this._alpha--;
if (this._alpha < 1) {
this.gotoAndPlay(2);
this._x = point2._x;
this._y = point2._y;
this._alpha = 100;
flash2.gotoAndPlay(2);
}
}
function starDestroy1() {
_root.skullAction.attachMovie("blast", "blast1", 2000);
blast1._x = star1._x;
blast1._y = star1._y;
_root.skullhits.gotoAndPlay(2);
if (star1._x < skull._x) {
bone1._x = star1._x;
bone1._y = star1._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star1._x > skull._x) {
bone2._x = star1._x;
bone2._y = star1._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
star1.gotoAndPlay(2);
star1._x = point1._x;
star1._y = point1._y;
star1._alpha = 100;
flash1.gotoAndPlay(2);
}
function starDestroy2() {
_root.skullAction.attachMovie("blast", "blast2", 2001);
blast2._x = star2._x;
blast2._y = star2._y;
_root.skullhits.gotoAndPlay(4);
if (star2._x < skull._x) {
bone1._x = star2._x;
bone1._y = star2._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star2._x > skull._x) {
bone2._x = star2._x;
bone2._y = star2._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
star2.gotoAndPlay(2);
star2._x = point2._x;
star2._y = point2._y;
star2._alpha = 100;
flash2.gotoAndPlay(2);
}
function doDrag() {
this.startDrag();
this.dragging = true;
}
function noDrag() {
stopDrag();
this.dragging = false;
}
function bodySpring() {
bone3._x = skull._x - 50;
bone3._y = skull._y + 30;
bone4._x = skull._x + 50;
bone4._y = skull._y + 30;
if (!this.dragging) {
var dx = (this._x - point._x);
var dy = (this._y - point._y);
var angle = Math.atan2(dy, dx);
var targetX = point._x;
var targetY = point._y;
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function boneSpring() {
if (!this.hitting) {
var dx = (this._x - (point._x - 50));
var dy = (this._y - (point._y - 30));
var angle = Math.atan2(dy, dx);
var targetX = (point._x - 50);
var targetY = (point._y - 30);
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * dampBone;
this.vy = this.vy * dampBone;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function boneSpring2() {
if (!this.hitting) {
var dx = (this._x - (point._x + 50));
var dy = (this._y - (point._y - 30));
var angle = Math.atan2(dy, dx);
var targetX = (point._x + 50);
var targetY = (point._y - 30);
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * dampBone;
this.vy = this.vy * dampBone;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function createLimbs() {
if (!skullPlay) {
this._alpha = 0;
} else {
this._alpha = this._alpha + 25;
this.clear();
this.lineStyle(6, 16724940, 100);
this.moveTo(skull._x, skull._y);
this.lineTo(bone1._x, bone1._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone2._x, bone2._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone3._x, bone3._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone4._x, bone4._y);
this.lineStyle(1, 16751103, 100);
this.moveTo(skull._x, skull._y);
this.lineTo(bone1._x, bone1._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone2._x, bone2._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone3._x, bone3._y);
this.moveTo(skull._x, skull._y);
this.lineTo(bone4._x, bone4._y);
if (this._alpha > 100) {
this._alpha = 100;
}
}
}
dampStar = 0.99;
skullPlay = false;
amount = 1;
speed = 5;
direction = speed;
left = 350;
right = 470;
point4._visible = false;
point4.onEnterFrame = pointMove;
this.starPlay();
star1.onRollOver = starDestroy1;
star2.onRollOver = starDestroy2;
k = 0.2;
radius = 50;
damp = 0.9;
dampBone = 0.7;
skull.onpress = doDrag;
skull.onrelease = noDrag;
skull.onreleaseoutside = noDrag;
skull.onEnterFrame = bodySpring;
bone1.onEnterFrame = boneSpring;
bone2.onEnterFrame = boneSpring2;
this.onEnterFrame = createLimbs;
Symbol 377 MovieClip Frame 1
function bodyMove() {
if (!this.drag) {
i = 0;
while (i < 2) {
var foot = _root.creature["f" + i];
var dx = (this._x - foot._x);
var dy = (this._y - foot._y);
var angle = Math.atan2(dy, dx);
var tx = (foot._x + (Math.cos(angle) * leg));
var ty = (foot._y + (Math.sin(angle) * leg));
this.vx = this.vx + ((tx - this._x) * k);
this.vy = this.vy + ((ty - this._y) * k);
i++;
}
var dx = (this._x - head._x);
var dy = (this._y - head._y);
var angle = Math.atan2(dy, dx);
var tx = (head._x + (Math.cos(angle) * neck));
var ty = (head._y + (Math.sin(angle) * neck));
this.vx = this.vx + ((tx - this._x) * k);
this.vy = this.vy + ((ty - this._y) * k);
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x > (200 - (this._width / 2))) {
this._x = 200 - (this._width / 2);
this.vx = this.vx * bounce;
} else if (this._x < (lefttop + (this._width / 2))) {
this._x = lefttop + (this._width / 2);
this.vx = this.vx * bounce;
}
if (this._y > (bottom - (this._height / 2))) {
this._y = bottom - (this._height / 2);
this.vy = this.vy * bounce;
} else if (this._y < (lefttop + (this._height / 2))) {
this._y = lefttop + (this._height / 2);
this.vy = this.vy * bounce;
}
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function footMove() {
var tx = (body._x + (Math.cos(this.angle) * leg));
var ty = (body._y + (Math.sin(this.angle) * leg));
this.vx = this.vx + ((tx - this._x) * this.k);
this.vy = this.vy + ((ty - this._y) * this.k);
this.vy = this.vy + 1;
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x > (right - (this._width / 2))) {
this._x = right - (this._width / 2);
this.vx = this.vx * bounce;
} else if (this._x < (lefttop + (this._width / 2))) {
this._x = lefttop + (this._width / 2);
this.vx = this.vx * bounce;
}
if (this._y > (bottom - (this._height / 2))) {
this._y = bottom - (this._height / 2);
this.vy = this.vy * bounce;
} else if (this._y < (lefttop + (this._height / 2))) {
this._y = lefttop + (this._height / 2);
this.vy = this.vy * bounce;
}
}
function handMove0() {
var tx = (body._x + (Math.cos(this.angle) * leg));
var ty = (body._y + (Math.sin(this.angle) * leg));
this.vx = this.vx + ((tx - this._x) * this.k);
this.vy = this.vy + ((ty - this._y) * this.k);
this.vy = this.vy + 1;
this.vx = this.vx * dampHand;
this.vy = this.vy * dampHand;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x > (right - (this._width / 2))) {
this._x = right - (this._width / 2);
this.vx = this.vx * bounce;
} else if (this._x < (-50 + (this._width / 2))) {
this._x = -50 + (this._width / 2);
this.vx = this.vx * bounce;
}
if (this._y > (bottom - (this._height / 2))) {
this._y = bottom - (this._height / 2);
this.vy = this.vy * bounce;
} else if (this._y < (-50 + (this._height / 2))) {
this._y = -50 + (this._height / 2);
this.vy = this.vy * bounce;
}
}
function handMove() {
var tx = (body._x + (Math.cos(this.angle) * leg));
var ty = (body._y + (Math.sin(this.angle) * leg));
this.vx = this.vx + ((tx - this._x) * this.k);
this.vy = this.vy + ((ty - this._y) * this.k);
this.vy = this.vy + 1;
this.vx = this.vx * dampHand;
this.vy = this.vy * dampHand;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x > (right - (this._width / 2))) {
this._x = right - (this._width / 2);
this.vx = this.vx * bounce;
} else if (this._x < (lefttop + (this._width / 2))) {
this._x = lefttop + (this._width / 2);
this.vx = this.vx * bounce;
}
if (this._y > (bottom - (this._height / 2))) {
this._y = bottom - (this._height / 2);
this.vy = this.vy * bounce;
} else if (this._y < (lefttop + (this._height / 2))) {
this._y = lefttop + (this._height / 2);
this.vy = this.vy * bounce;
}
}
function headMove() {
var dx = (this._x - body._x);
var dy = (this._y - body._y);
var angle = Math.atan2(dy, dx);
var tx = (body._x + (6.12323399573677E-17 * neck));
var ty = (body._y + (-1 * neck));
this.vx = this.vx + ((tx - this._x) * k);
this.vy = this.vy + ((ty - this._y) * k);
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this.speed = (this.vx * this.vx) + (this.vy * this.vy);
if ((this.speed > 1) && (Math.abs(ty - this._y) > 1)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x > (right - (this._width / 2))) {
this._x = right - (this._width / 2);
this.vx = this.vx * bounce;
} else if (this._x < (lefttop + (this._width / 2))) {
this._x = lefttop + (this._width / 2);
this.vx = this.vx * bounce;
}
if (this._y > (bottom - (this._height / 2))) {
this._y = bottom - (this._height / 2);
this.vy = this.vy * bounce;
} else if (this._y < (lefttop + (this._height / 2))) {
this._y = lefttop + (this._height / 2);
this.vy = this.vy * bounce;
}
}
function doDrag() {
this.startDrag();
this.drag = true;
}
function noDrag() {
stopDrag();
this.drag = false;
}
right = 410;
lefttop = 20;
bottom = 360;
bounce = -0.1;
neck = 30;
leg = 80;
k = 0.1;
h0.k = 0.1;
h1.k = 0.2;
f0.k = 0.25;
f1.k = 0.15;
damp = 0.88;
dampHand = 0.7;
body.onPress = doDrag;
body.onRelease = noDrag;
body.onReleaseOutside = noDrag;
body.onEnterFrame = bodyMove;
h0.angle = -3.0707963267949;
h1.angle = -0.0707963267948966;
f0.angle = 1.0707963267949;
f1.angle = 2.0707963267949;
f0.onEnterFrame = footMove;
f1.onEnterFrame = footMove;
h0.onEnterFrame = handMove0;
h1.onEnterFrame = handMove;
head.onEnterFrame = headMove;
onEnterFrame = function () {
clear();
linestyle(7, 16750848, 100);
moveto(body._x, body._y + lefttop);
curveto(f0._x, f0._y - 50, f0._x - 5, f0._y);
moveto(body._x, body._y + lefttop);
curveto(f1._x, f1._y - 50, f1._x - 5, f1._y);
moveto(body._x, body._y - 25);
lineto(head._x, head._y);
moveto(body._x - 5, body._y - lefttop);
curveto(h0._x + 30, h0._y + 10, h0._x, h0._y);
moveto(body._x + 5, body._y - lefttop);
curveto(h1._x - 30, h1._y + 10, h1._x, h1._y);
linestyle(1, 13369344, 100);
moveto(body._x, body._y + lefttop);
curveto(f0._x, f0._y - 50, f0._x - 5, f0._y);
moveto(body._x, body._y + lefttop);
curveto(f1._x, f1._y - 50, f1._x - 5, f1._y);
moveto(body._x, body._y - 25);
lineto(head._x, head._y);
moveto(body._x - 5, body._y - lefttop);
curveto(h0._x + 30, h0._y + 10, h0._x, h0._y);
moveto(body._x + 5, body._y - lefttop);
curveto(h1._x - 30, h1._y + 10, h1._x, h1._y);
};
Symbol 383 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
bottomycenter = _root.markerbottom._y;
topycenter = _root.markertop._y;
masterxcenter = _root.center._x;
masterRadius = 70;
this.onEnterFrame = function () {
this.clear();
this.lineStyle(0, 16764159, 50);
this.moveTo(point1._x, point1._y);
this.lineTo(point2._x, point2._y);
this.lineTo(point3._x, point3._y);
this.lineTo(point4._x, point4._y);
this.lineTo(point1._x, point1._y);
this.lineTo(point._x, point._y - (point._height / 2));
this.lineTo(point2._x, point2._y);
this.moveTo(point._x, point._y - (point._height / 2));
this.lineTo(point3._x, point3._y);
this.moveTo(point._x, point._y - (point._height / 2));
this.lineTo(point4._x, point4._y);
this.masterspeed = (_root._xmouse - _root.center._x) / 30;
if ((this.masterspeed > 0) && (this.masterspeed < 2)) {
this.masterspeed = 2;
}
if ((this.masterspeed < 0) && (this.masterspeed > -2)) {
this.masterspeed = -2;
}
};
Instance of Symbol 379 MovieClip "point1" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 0;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point2" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 90;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point3" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 180;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point4" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 270;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 383 MovieClip "point" in Symbol 384 MovieClip Frame 1
onClipEvent (load) {
function doWobble() {
start++;
_x = (_x + 10);
_y = (_y - 5);
wobble = true;
}
function noWobble() {
wobble = false;
}
function spring() {
if (!wobble) {
var dx = (centerX - _x);
var dy = (centerY - _y);
vx = vx + (dx * k);
vy = vy + (dy * k);
vx = vx * damp;
vy = vy * damp;
_x = (_x + vx);
_y = (_y + vy);
} else {
vx = _x - oldx;
vy = _y - oldy;
oldx = _x;
oldy = _y;
if (start > 1) {
_root.yelloHits.gotoAndPlay(2);
_root.creature.h1._x = _x;
_root.creature.h1._y = _y;
_root.creature.body._x = _root.creature.body._x - 15;
_root.creature.body._y = _root.creature.body._y + 30;
_root.spin.attachMovie("blast", "blast1", 2000);
_root.spin.blast1._x = _root.spin.point._x;
_root.spin.blast1._y = _root.spin.point._y;
}
}
}
k = 0.2;
_x = _root.center._x;
damp = 0.93;
centerX = _x;
centerY = _y;
dx = _x;
dy = _y;
oldx = _x;
oldy = _y;
start = 0;
onPress = doWobble;
onRollOver = doWobble;
onRelease = noWobble;
onRollOut = noWobble;
onReleaseOutside = noWobble;
this.doWobble();
}
onClipEvent (enterFrame) {
spring();
wobble = false;
}
Symbol 389 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
topycenter = _root.markertop2._y;
masterxcenter = _root.center2._x;
masterRadius = 70;
this.onEnterFrame = function () {
this.clear();
this.lineStyle(0, 16764159, 50);
this.moveTo(point1._x, point1._y);
this.lineTo(point2._x, point2._y);
this.lineTo(point3._x, point3._y);
this.lineTo(point4._x, point4._y);
this.lineTo(point1._x, point1._y);
this.lineTo(point._x, point._y - (point._height / 2));
this.lineTo(point2._x, point2._y);
this.moveTo(point._x, point._y - (point._height / 2));
this.lineTo(point3._x, point3._y);
this.moveTo(point._x, point._y - (point._height / 2));
this.lineTo(point4._x, point4._y);
this.masterspeed = (_root._xmouse - _root.center2._x) / 30;
if ((this.masterspeed > 0) && (this.masterspeed < 2)) {
this.masterspeed = 2;
}
if ((this.masterspeed < 0) && (this.masterspeed > -2)) {
this.masterspeed = -2;
}
};
Instance of Symbol 379 MovieClip "point1" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 0;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point2" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 90;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point3" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 180;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 379 MovieClip "point4" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
y = -100;
radius = _parent.masterRadius;
xcenter = _parent.masterxcenter;
ycenter = _parent.topycenter;
zcenter = 100;
angle = 270;
fl = 150;
}
onClipEvent (enterFrame) {
speed = _parent.masterspeed;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 389 MovieClip "point" in Symbol 390 MovieClip Frame 1
onClipEvent (load) {
function doWobble() {
start++;
_x = (_x - 10);
_y = (_y - 5);
wobble = true;
}
function noWobble() {
wobble = false;
}
function spring() {
if (!wobble) {
var dx = (centerX - _x);
var dy = (centerY - _y);
vx = vx + (dx * k);
vy = vy + (dy * k);
vx = vx * damp;
vy = vy * damp;
_x = (_x + vx);
_y = (_y + vy);
} else {
vx = _x - oldx;
vy = _y - oldy;
oldx = _x;
oldy = _y;
if (start > 1) {
_root.yelloHits.gotoAndPlay(4);
_root.creature.h0._x = _x - 300;
_root.creature.h0._y = _y;
_root.creature.body._x = _root.creature.body._x - 15;
_root.creature.body._y = _root.creature.body._y + 30;
_root.spin2.attachMovie("blast", "blast2", 2001);
_root.spin2.blast2._x = _root.spin2.point._x;
_root.spin2.blast2._y = _root.spin2.point._y;
}
}
}
k = 0.2;
_x = _root.center2._x;
damp = 0.93;
centerX = _x;
centerY = _y;
dx = _x;
dy = _y;
oldx = _x;
oldy = _y;
start = 0;
onPress = doWobble;
onRollOver = doWobble;
onRelease = noWobble;
onRollOut = noWobble;
onReleaseOutside = noWobble;
this.doWobble();
}
onClipEvent (enterFrame) {
spring();
wobble = false;
}
Symbol 403 MovieClip Frame 1
function doDrag() {
this.startDrag();
this.dragging = true;
}
function noDrag() {
stopDrag();
this.dragging = false;
}
function bodySpring() {
if (!this.dragging) {
var dx = (this._x - point._x);
var dy = (this._y - point._y);
var angle = Math.atan2(dy, dx);
var targetX = point._x;
var targetY = point._y;
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
onEnterFrame = function () {
clear();
beginFill(52479, 100);
linestyle(3, 39423, 80);
moveto(join1._x, join1._y);
curveto(head._x - 20, head._y + 50, head._x, head._y);
lineto(head._x + 12, head._y);
curveto(head._x - 20, head._y + 50, join1._x, join1._y);
endFill();
};
k = 0.2;
radius = 50;
damp = 0.9;
head.onpress = doDrag;
head.onrelease = noDrag;
head.onreleaseoutside = noDrag;
head.onEnterFrame = bodySpring;
Symbol 404 MovieClip Frame 1
bounce = -0.99;
maxB = 6;
i = 0;
while (i < maxB) {
ball = attachMovie("ball", "b" + i, i);
ball._x = (Math.random() * 700) + 20;
ball._y = (Math.random() * 360) + 20;
ball.vx = Math.random() * 3;
ball.vy = Math.random() * 3;
i++;
}
onEnterFrame = function () {
i = 0;
while (i < maxB) {
ball = this["b" + i];
ball._x = ball._x + ball.vx;
ball._y = ball._y + ball.vy;
if (ball._x > 600) {
ball._x = 600;
ball.vx = ball.vx * bounce;
} else if (ball._x < 220) {
ball._x = 220;
ball.vx = ball.vx * bounce;
}
if (ball._y > 327) {
ball._y = 327;
ball.vy = ball.vy * bounce;
} else if (ball._y < 101) {
ball._y = 101;
ball.vy = ball.vy * bounce;
}
i++;
}
clear();
j = 0;
while (j < (maxB - 1)) {
ball2 = this["b" + j];
i = j + 1;
while (i < maxB) {
ball1 = this["b" + i];
dx = ball2._x - ball1._x;
dy = ball2._y - ball1._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
angle = Math.atan2(dy, dx);
if (dist < 100) {
lineStyle(1, 16776960, 100 - dist);
moveTo(ball1._x, ball1._y);
lineTo(ball2._x, ball2._y);
}
if (dist < 20) {
cosa = Math.cos(angle);
sina = Math.sin(angle);
vx2 = (ball1.vx * cosa) + (ball1.vy * sina);
vy1 = (ball1.vy * cosa) - (ball1.vx * sina);
vx1 = (ball2.vx * cosa) + (ball2.vy * sina);
vy2 = (ball2.vy * cosa) - (ball2.vx * sina);
vx1 = vx1 * (-bounce);
vx2 = vx2 * (-bounce);
ball1.vx = (vx1 * cosa) - (vy1 * sina);
ball1.vy = (vy1 * cosa) + (vx1 * sina);
ball2.vx = (vx2 * cosa) - (vy2 * sina);
ball2.vy = (vy2 * cosa) + (vx2 * sina);
midx = ball1._x + (dx / 2);
midy = ball1._y + (dy / 2);
cosa10 = cosa * 10;
sina10 = sina * 10;
ball1._x = midx - cosa10;
ball1._y = midy - sina10;
ball2._x = midx + cosa10;
ball2._y = midy + sina10;
} else {
force = 200 / (dist * dist);
cosaf = Math.cos(angle) * force;
sinaf = Math.sin(angle) * force;
ball1.vx = ball1.vx + cosaf;
ball1.vy = ball1.vy + sinaf;
ball2.vx = ball2.vx - cosaf;
ball2.vy = ball2.vy - sinaf;
}
i++;
}
j++;
}
};
Symbol 421 MovieClip Frame 1
function starDestroy1() {
_root.creature2.attachMovie("blast2", "blast1", 2000);
blast1._x = star1._x;
blast1._y = star1._y;
_root.greenHits.gotoAndPlay(2);
if (star1._x < skull._x) {
bone1._x = star1._x;
bone1._y = star1._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star1._x > skull._x) {
bone2._x = star1._x;
bone2._y = star1._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
}
function starDestroy2() {
_root.creature2.attachMovie("blast2", "blast1", 2000);
blast1._x = star2._x;
blast1._y = star2._y;
_root.greenHits.gotoAndPlay(4);
if (star2._x < skull._x) {
bone1._x = star2._x;
bone1._y = star2._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star2._x > skull._x) {
bone2._x = star2._x;
bone2._y = star2._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
}
function starDestroy3() {
_root.creature2.attachMovie("blast2", "blast1", 2000);
blast1._x = star3._x;
blast1._y = star3._y;
_root.greenHits.gotoAndPlay(2);
if (star3._x < skull._x) {
bone1._x = star3._x;
bone1._y = star3._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star3._x > skull._x) {
bone2._x = star3._x;
bone2._y = star3._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
}
function starDestroy4() {
_root.creature2.attachMovie("blast2", "blast1", 2000);
blast1._x = star4._x;
blast1._y = star4._y;
_root.greenHits.gotoAndPlay(4);
if (star4._x < skull._x) {
bone1._x = star4._x;
bone1._y = star4._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone2._x = (bone2._x - (math.random() * 20)) - -20;
bone2._y = (bone2._y - (math.random() * 20)) - -20;
this.hitting = true;
} else if (star4._x > skull._x) {
bone2._x = star4._x;
bone2._y = star4._y;
skull._x = (skull._x - (math.random() * 20)) - -20;
skull._y = (skull._y - (math.random() * 20)) - -20;
bone1._x = (bone1._x - (math.random() * 20)) - -20;
bone1._y = (bone1._y - (math.random() * 20)) - -20;
this.hitting = true;
}
}
function doDrag() {
this.startDrag();
this.dragging = true;
}
function noDrag() {
stopDrag();
this.dragging = false;
}
function bodySpring() {
if (!this.dragging) {
var dx = (this._x - point._x);
var dy = (this._y - point._y);
var angle = Math.atan2(dy, dx);
var targetX = point._x;
var targetY = point._y;
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * damp;
this.vy = this.vy * damp;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function boneSpring() {
if (!this.hitting) {
var dx = (this._x - (point._x - 120));
var dy = (this._y - (point._y - 30));
var angle = Math.atan2(dy, dx);
var targetX = (point._x - 120);
var targetY = (point._y - 30);
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * dampBone;
this.vy = this.vy * dampBone;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
function boneSpring2() {
if (!this.hitting) {
var dx = (this._x - (point._x + 70));
var dy = (this._y - (point._y + 30));
var angle = Math.atan2(dy, dx);
var targetX = (point._x + 70);
var targetY = (point._y + 30);
this.vx = this.vx + ((targetX - this._x) * k);
this.vy = this.vy + ((targetY - this._y) * k);
this.vx = this.vx * dampBone;
this.vy = this.vy * dampBone;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
} else {
this.vx = this._x - this.oldx;
this.vy = this._y - this.oldy;
this.oldx = this._x;
this.oldy = this._y;
}
}
star1.onPress = starDestroy1;
star1.onRollOver = starDestroy1;
star2.onPress = starDestroy2;
star2.onRollOver = starDestroy2;
star3.onPress = starDestroy3;
star3.onRollOver = starDestroy3;
star4.onPress = starDestroy4;
star4.onRollOver = starDestroy4;
k = 0.2;
radius = 50;
damp = 0.9;
dampBone = 0.7;
skull.onpress = doDrag;
skull.onrelease = noDrag;
skull.onreleaseoutside = noDrag;
skull.onEnterFrame = bodySpring;
bone1.onEnterFrame = boneSpring;
bone2.onEnterFrame = boneSpring2;
onEnterFrame = function () {
clear();
linestyle(7, 16750848, 100);
moveto(skull._x, skull._y);
curveto(foot1._x, foot1._y - 50, foot1._x - 5, foot1._y);
moveto(skull._x, skull._y);
curveto(foot2._x, foot2._y - 50, foot2._x - 5, foot2._y);
moveto(skull._x - 5, skull._y - 20);
curveto(bone1._x + 30, bone1._y - 10, bone1._x, bone1._y);
moveto(skull._x + 5, skull._y - 20);
curveto(bone2._x - 50, bone2._y - 50, bone2._x, bone2._y);
linestyle(1, 16711680, 100);
moveto(skull._x, skull._y);
curveto(foot1._x, foot1._y - 50, foot1._x - 5, foot1._y);
moveto(skull._x, skull._y);
curveto(foot2._x, foot2._y - 50, foot2._x - 5, foot2._y);
moveto(skull._x - 5, skull._y - 20);
curveto(bone1._x + 30, bone1._y - 10, bone1._x, bone1._y);
moveto(skull._x + 5, skull._y - 20);
curveto(bone2._x - 50, bone2._y - 50, bone2._x, bone2._y);
};
Instance of Symbol 416 MovieClip "star1" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
y = 40;
radius = 225;
xcenter = 140;
ycenter = 25;
zcenter = 100;
angle = 0;
fl = 150;
}
onClipEvent (enterFrame) {
speed = 2;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 416 MovieClip "star2" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
y = 40;
radius = 225;
xcenter = 140;
ycenter = 25;
zcenter = 100;
angle = 90;
fl = 150;
}
onClipEvent (enterFrame) {
speed = 2;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 416 MovieClip "star3" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
y = 40;
radius = 225;
xcenter = 140;
ycenter = 25;
zcenter = 100;
angle = 180;
fl = 150;
}
onClipEvent (enterFrame) {
speed = 2;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}
Instance of Symbol 416 MovieClip "star4" in Symbol 421 MovieClip Frame 1
onClipEvent (load) {
y = 40;
radius = 225;
xcenter = 140;
ycenter = 25;
zcenter = 100;
angle = 270;
fl = 150;
}
onClipEvent (enterFrame) {
speed = 2;
z = (Math.sin((angle * Math.PI) / 180) * radius) + zcenter;
scale = fl / (fl + z);
x = Math.cos((angle * Math.PI) / 180) * radius;
_x = ((x * scale) + xcenter);
_y = ((y * scale) + ycenter);
_yscale = (scale * 100);
_xscale = (scale * 100);
angle = angle + speed;
if (angle > 359) {
angle = angle - 360;
}
}