Combined Code
frame 1 {
bobbing_range = 30;
nodding_range = 30;
bobbing_hit = 0.7;
nodding_hit = 1.2;
bobbing_damp = 0.99;
nodding_damp = 0.985;
bobbing_angle = 0;
nodding_angle = 0;
bobbing_force = 0;
nodding_force = 0;
head_origin = head._y;
head.onEnterFrame = function () {
if (bobbing_force) {
this._y = head_origin + Math.sin(bobbing_angle) * bobbing_force * bobbing_range / 2;
bobbing_angle += bobbing_hit * bobbing_force;
bobbing_force *= bobbing_damp;
}
if (nodding_force) {
this._rotation = Math.sin(nodding_angle) * nodding_force * nodding_range / 2;
nodding_angle += nodding_hit * nodding_force;
nodding_force *= nodding_damp;
}
};
head.onPress = function () {
nodding_angle = 0;
bobbing_angle = 0;
nodding_force = 1;
bobbing_force = 1;
};
}
// unknown tag 88 length 100
movieClip 6 {
}
movieClip 10 {
}
button 19 {
on (press) {
tellTarget ('_root') {
nextFrame();
}
}
}
button 20 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 21 {
instance of movieClip 10 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
movieClip 25 {
}
button 28 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 34 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 35 {
}
movieClip 36 {
frame 1 {
function startAd(ngad_url) {
trace('opening ' + ngad_url);
System.security.allowDomain('70.87.128.99');
System.security.allowInsecureDomain('70.87.128.99');
System.security.allowDomain('ads.shizmoo.com');
System.security.allowInsecureDomain('ads.shizmoo.com');
System.security.allowDomain('www.cpmstar.com');
System.security.allowInsecureDomain('www.cpmstar.com');
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!');
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), 'GET');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 52 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 30 {
stop();
}
frame 31 {
play();
}
frame 60 {
gotoAndStop(1);
}
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 58 {
}
movieClip 60 {
frame 1 {
stop();
}
}
movieClip 62 {
}
movieClip 65 {
}
movieClip 68 {
}
movieClip 77 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 30 {
_global.armor = 2;
stop();
}
frame 31 {
play();
}
frame 60 {
_global.armor = 1;
gotoAndStop(1);
}
}
movieClip 79 {
}
movieClip 81 {
}
movieClip 85 {
frame 1 {
play();
}
frame 107 {
gotoAndPlay(1);
}
}
movieClip 87 {
}
movieClip 93 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 30 {
stop();
}
frame 31 {
play();
}
frame 60 {
gotoAndStop(1);
}
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 98 {
}
movieClip 101 {
}
movieClip 104 {
}
movieClip 106 {
}
movieClip 108 {
}
movieClip 110 {
}
movieClip 112 {
}
movieClip 114 {
}
movieClip 116 {
}
movieClip 118 {
}
movieClip 120 {
}
movieClip 121 {
}
movieClip 122 {
}
movieClip 140 {
}
movieClip 142 {
}
movieClip 144 {
}
movieClip 146 {
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 151 {
frame 20 {
stop();
}
}
movieClip 152 {
frame 20 {
stop();
}
}
button 156 {
on (release) {
this.gotoAndPlay(81);
}
}
button 157 {
on (release) {
this.gotoAndPlay(94);
}
}
button 158 {
on (release) {
this.gotoAndPlay(1);
}
}
button 178 {
on (release) {
this.gotoAndPlay(194);
}
}
movieClip 181 {
}
movieClip 185 {
frame 80 {
gotoAndPlay(52);
}
frame 93 {
gotoAndPlay(81);
}
frame 193 {
stop();
}
frame 250 {
gotoAndPlay(221);
}
}
movieClip 186 {
frame 396 {
stop();
}
frame 457 {
stop();
}
}
movieClip 187 {
frame 220 {
stop();
}
instance of movieClip 186 {
}
}
movieClip 189 {
}
movieClip 191 {
frame 118 {
stop();
}
}
frame 262 {
stop();
}