Combined Code
movieClip 2 cloud {
}
movieClip 5 gurl {
frame 1 {
onEnterFrame = function () {
if (this.hitTest(_parent.hero_mc)) {
_root.levelScore = 10000 - (int(_root.jumps) - 68) * 100;
if (_root.levelScore < 0) {
_root.levelScore = 0;
}
_root.score += _root.levelScore;
_root.gotoAndStop('levelComplete');
}
};
}
}
movieClip 11 {
}
movieClip 14 {
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 19 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance target_mc of movieClip 11 {
onClipEvent (load) {
var orgPos = _parent._parent._y + 50;
var range = 100;
var speed = 1;
var dir = -1;
var ypos = _parent._parent._y - range;
}
onClipEvent (enterFrame) {
_parent._parent._y += speed * dir;
if (_parent._parent._y <= ypos || _parent._parent._y >= orgPos) {
dir *= -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y += speed * dir;
}
}
}
}
frame 3 {
stop();
}
instance target_mc of movieClip 18 {
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 3;
var dir = -1;
var xpos = _parent._parent._x - range;
}
onClipEvent (enterFrame) {
_parent._parent._x += speed * dir;
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
}
}
movieClip 24 {
}
movieClip 26 {
}
movieClip 27 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance target_mc of movieClip 24 {
onClipEvent (load) {
var orgPos = _parent._parent._y + 50;
var range = 100;
var speed = 1;
var dir = -1;
var ypos = _parent._parent._y - range;
}
onClipEvent (enterFrame) {
_parent._parent._y += speed * dir;
if (_parent._parent._y <= ypos || _parent._parent._y >= orgPos) {
dir *= -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y += speed * dir;
}
}
}
}
frame 3 {
stop();
}
instance target_mc of movieClip 26 {
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 2;
var dir = -1;
var xpos = _parent._parent._x - range;
}
onClipEvent (enterFrame) {
_parent._parent._x += speed * dir;
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
}
}
movieClip 29 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 31 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 37 {
}
movieClip 44 {
}
movieClip 52 {
}
movieClip 53 {
frame 1 {
stop();
}
frame 2 {
stop();
}
instance target_mc of movieClip 37 {
onClipEvent (load) {
var orgPos = _parent._parent._y + 50;
var range = 100;
var speed = 1;
var dir = -1;
var ypos = _parent._parent._y - range;
}
onClipEvent (enterFrame) {
_parent._parent._y += speed * dir;
if (_parent._parent._y <= ypos || _parent._parent._y >= orgPos) {
dir *= -1;
}
if (this.hitTest(_parent._parent._parent._parent.hero_mc)) {
if (dir == 1) {
_parent._parent._parent._parent.hero_mc._y += speed * dir;
}
}
}
}
frame 3 {
stop();
}
instance target_mc of movieClip 52 {
onClipEvent (load) {
var orgPos = _parent._parent._x;
var range = 200;
var speed = 3;
var dir = -1;
var xpos = _parent._parent._x - range;
}
onClipEvent (enterFrame) {
_parent._parent._x += speed * dir;
if (_parent._parent._x < -100) {
_parent._parent._x = 900;
}
}
}
}
movieClip 57 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 58 platform {
frame 1 {
onEnterFrame = function () {
var v3 = new Object();
v3.x = this._x;
v3.y = this._y;
localToGlobal(v3);
if (v3.y > _root.vcam._y + 900) {
_root.deadFall = Math.abs(this._y) - 500;
if (_root.deadFall < 0) {
_root.deadFall = 0;
}
this.removeMovieClip();
}
};
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
frame 1 {
function gotoURL() {
var v4;
var v3;
var v2;
v4 = 'getURL';
v3 = 'http://www.funfastgame.com';
v2 = '_blank';
this[v4](v3, v2);
}
function randomRange(min, max) {
var v1 = Math.floor(Math.random() * (max - min + 1)) + min;
return v1;
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
this.menu = newMenu;
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.levelArray = ['lblgame', 'level2', 'level3', 'level4', 'win'];
_root.level = 1;
_root.isEasy = false;
_root.playIntroSound = true;
_root.playerId = 1;
_root.isOver = false;
}
frame 3 {
function playAgain() {
_root.score = 0;
_root.gotoAndStop('lblgame');
}
var Sscore = 0;
System.security.allowDomain('shockwave.com', 'intranet.shockwave.com', 'games2win.com', 'gameblast.shockwave.com', 'www.shockwave.com', 'dev.shockwave.com', 'stage.shockwave.com', 'agstage.shockwave.com');
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = 'view';
_level0.swHighScoreObject.gameId = 'womanontop';
_level0.swHighScoreObject.gameTitle = 'Woman on Top';
_level0.swHighScoreObject.screenWidth = 783;
_level0.swHighScoreObject.screenHeight = 595;
_level0.swHighScoreObject.scoreDescriptor = 'points';
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = 'http://www.shockwave.com/content/highscores/scorez-2002.swf';
}
frame 6 {
stop();
}
movieClip 63 {
}
button 67 {
on (release) {
_parent.gotoAndStop('lblloader');
}
}
movieClip 69 {
}
movieClip 72 {
}
button 76 {
on (release) {
getURL('http://www.funfastgame.com/', '');
}
}
button 77 {
on (release) {
_parent.gotoAndStop('lblloader');
}
}
movieClip 78 {
frame 185 {
_parent.gotoAndStop('lblloader');
}
}
frame 7 {
stop();
stopAllSounds();
}
movieClip 84 {
frame 15 {
stop();
}
}
movieClip 85 {
}
movieClip 88 {
}
button 91 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
movieClip 92 {
frame 1 {
stop();
var loaded = 0;
onEnterFrame = function () {
loaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
mask_mc._yscale = loaded;
if (loaded >= 100) {
_root.gotoAndStop('lblgameintro');
}
};
}
}
frame 8 {
stopAllSounds();
}
button 94 {
on (rollOver) {
bb.useHandCursor = false;
}
}
movieClip 114 {
}
movieClip 115 {
}
button 116 {
on (release) {
getURL('http://www.addictinggames.com', '_blank');
}
}
movieClip 120 {
}
movieClip 121 {
}
movieClip 124 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 134 {
}
movieClip 136 {
}
movieClip 138 {
}
movieClip 139 {
}
movieClip 142 {
}
movieClip 144 {
}
movieClip 146 {
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 152 {
}
movieClip 153 {
}
movieClip 155 {
}
movieClip 157 {
}
movieClip 159 {
}
movieClip 161 {
}
movieClip 163 {
}
movieClip 166 {
}
movieClip 168 {
}
movieClip 169 {
}
movieClip 171 {
}
movieClip 173 {
}
movieClip 174 {
}
movieClip 175 {
}
movieClip 177 {
}
movieClip 178 {
}
movieClip 179 {
}
movieClip 180 {
}
movieClip 181 {
}
movieClip 182 {
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 186 {
}
movieClip 187 {
}
movieClip 188 {
frame 97 {
stop();
}
}
movieClip 192 {
}
movieClip 198 {
}
button 199 {
on (release) {
_parent.gotoAndStop(1);
}
}
movieClip 200 {
frame 1 {
stop();
}
instance of movieClip 124 {
onClipEvent (release) {
getURL('http://www.games2win.com/?utm_campaign=ag&utm_source=woman_on_top&medium=game', '_blank');
}
}
frame 40 {
stop();
}
instance of movieClip 188 {
onClipEvent (release) {
getURL('http://www.games2win.com/?utm_campaign=ag&utm_source=woman_on_top&medium=game', '_blank');
}
}
}
movieClip 201 {
frame 1 {
stop();
}
frame 18 {
stop();
G2W_CREDIT.gotoAndPlay(2);
}
}
frame 9 {
stop();
yg2wlogo = g2wlogo._y;
}
movieClip 205 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 210 {
}
movieClip 216 {
}
movieClip 222 {
}
button 227 {
on (press) {
getURL('http://www.funfastgame.com/', '');
}
}
movieClip 228 {
frame 1 {
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
}
frame 136 {
stop();
story_btn.onRelease = function () {
_root.gotoAndStop('story');
};
instructions_btn.onRelease = function () {
_root.gotoAndStop('instructions');
};
start_btn.onRelease = function () {
_root.gotoAndStop('lblgame');
};
credit_btn.onRelease = function () {
_root.credit_mc.gotoAndPlay(2);
};
}
}
frame 10 {
stop();
}
movieClip 229 {
frame 35 {
stop();
start_btn.onRelease = function () {
_root.gotoAndStop('lblgame');
};
back_btn.onRelease = function () {
_root.gotoAndStop('lblgameintro');
};
}
}
frame 11 {
stop();
}
movieClip 233 {
}
movieClip 236 {
}
movieClip 241 {
}
movieClip 243 {
frame 35 {
stop();
start_btn.onRelease = function () {
_root.gotoAndStop('lblgame');
};
back_btn.onRelease = function () {
_root.gotoAndStop('lblgameintro');
};
}
}
frame 13 {
stop();
stopAllSounds();
}
movieClip 250 {
frame 1 {
gotoAndStop(_root.level);
onEnterFrame = function () {
this._y = _root.vcam._y;
};
}
}
movieClip 258 {
}
movieClip 260 {
frame 1 {
var prevX = 8;
var signArray = [-1, 1];
var randomX = 0;
var prevNo = 1;
var levelArray = [40, 53, 68, 68, 68, 68, 68, 68];
i = 1;
while (i < levelArray[int(_root.level) - 1]) {
var myBlock = this.attachMovie('platform', 'platform' + this.getNextHighestDepth(), this.getNextHighestDepth());
myBlock.gotoAndStop(_root.level);
var ranNo = _root.randomRange(1, Math.round(i / 23));
if (prevNo == 3) {
ranNo = 1;
}
var prevNo = ranNo;
myBlock.target_mc.gotoAndStop(ranNo);
if (i > 66) {
myBlock.target_mc.gotoAndStop(1);
}
var randomY = _root.randomRange(2, 2);
myBlock._y = -150 * i;
_parent.cloud_mc.spawnCloud(i);
if (_root.randomRange(1, 3) == 1) {
randomX = _root.randomRange(-2, -4);
if (prevX + randomX <= 0) {
randomX = _root.randomRange(2, 4);
}
} else {
randomX = _root.randomRange(2, 4);
if (prevX + randomX >= 14) {
randomX = _root.randomRange(-2, -4);
}
}
myBlock._x = (prevX + randomX) * 40;
prevX += randomX;
++i;
}
var myBlock = this.attachMovie('platform', 'platform' + this.getNextHighestDepth(), this.getNextHighestDepth());
myBlock.gotoAndStop(_root.level);
myBlock._y = -150 * int(levelArray[int(_root.level) - 1]);
if (_root.randomRange(1, 3) == 1) {
randomX = _root.randomRange(-4, -4);
if (prevX + randomX <= 0) {
randomX = _root.randomRange(4, 4);
}
} else {
randomX = _root.randomRange(4, 4);
if (prevX + randomX >= 14) {
randomX = _root.randomRange(-4, -4);
}
}
myBlock._x = (prevX + randomX) * 40;
prevX += randomX;
var gurl = _parent.attachMovie('gurl', 'gurl' + this.getNextHighestDepth(), this.getNextHighestDepth());
gurl._yscale = 23;
gurl._xscale = 23;
gurl._y = myBlock._y + 600;
gurl._x = myBlock._x;
gotoAndStop(_root.level);
}
}
movieClip 273 {
}
movieClip 275 {
}
movieClip 276 {
}
movieClip 277 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 295 {
}
movieClip 297 {
}
movieClip 300 {
}
movieClip 301 {
frame 1 {
var dir = -1;
var speed = 5;
onEnterFrame = function () {
this._x += speed * dir;
if (this._x < -100 || this._x > 900) {
if (this._x < -100) {
this._x = -100;
}
if (this._x > 900) {
this._x = 900;
}
dir *= -1;
this._xscale *= -1;
this._y = _root.vcam._y + 5 * speed * _root.randomRange(-10, -6);
if (_root.climb > 400 && _currentframe != 2 && _root.level > 2) {
gotoAndStop(2);
speed = 5;
}
if (_root.climb > 600 && _currentframe != 3 && _root.level > 1) {
gotoAndStop(3);
speed = 5;
}
if (_root.climb > 800 && _currentframe != 4 && _root.level > 3) {
gotoAndStop(4);
speed = 6;
}
if (_root.climb > 900 && _currentframe != 5 && _root.level > 4) {
gotoAndStop(5);
speed = 8;
}
}
if (this.hitTest(_parent.hero_mc)) {
_parent.hero_mc._x += 10 * dir;
}
};
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 304 {
instance hero_mc of movieClip 277 {
onClipEvent (load) {
function checkCollision(mc2, mc1, tolerance, scope) {
var v1 = CollisionDetection.checkForCollision(mc1, mc2, 120);
return v1;
}
var scope = _parent;
var tolerance = 120;
var xpos = 0;
var highest = 0;
var ypos = 0;
var yposb = 0;
var dir = 1;
var speed = 8;
var onGround = false;
var isJumping = false;
var highest = 0;
_root.climb = 0;
_root.jumps = 0;
var maxY = 15;
var offset = 1;
var blspeed = 5;
var jump = 19.5;
_root.deadFall = -100;
}
onClipEvent (enterFrame) {
if (_root.climb > 100) {
_root.vcam._y = _y;
} else {
_root.vcam._y = _y - 200 + _root.climb * 2;
}
if (_x <= 0) {
_x = +(_width / 2);
}
if (_x >= 800) {
_x = 800 - _width / 2;
}
if (0 < _x - _width / 2 + xpos && _x + _width / 2 + xpos < 800) {
_x = _x + xpos;
}
_y = _y + ypos;
_y = _y + yposb;
xpos *= 0.8;
xpos = int(xpos * 10) / 10;
yposb *= 0.9;
yposb = int(yposb * 10) / 10;
if (_parent.ground_mc.hitTest(_x, _y + _height / 2, true)) {
onGround = true;
} else {
ypos += 1.3;
onGround = false;
}
if (xpos > speed) {
xpos = speed;
}
if (xpos < -speed) {
xpos = -speed;
}
if (ypos > maxY) {
ypos = maxY;
}
while (_parent.ground_mc.hitTest(_x, _y + (_height / 2 - offset - 1), true)) {
_y = _y - 1;
ypos = 0;
}
while (_parent.ground_mc.hitTest(_x, _y - (_height / 2 - offset), true)) {
_y = _y + 1;
ypos = blspeed + 2;
}
_root.climb = int((-_y + 306.9) / 10) + 18;
if (_root.climb * 10 <= _root.deadFall) {
_root.gotoAndStop('gameOver');
}
if (_root.climb > highest) {
highest = _root.climb;
}
if (Key.isDown(38) && !isJumping && onGround) {
++_root.jumps;
_y = _y + 1.5;
isJumping = true;
ypos = -jump;
xpos *= 0.5;
}
if (!Key.isDown(38)) {
isJumping = false;
}
if (onGround) {
if (dir == 1) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
} else {
if (dir == 1) {
gotoAndStop(4);
} else {
gotoAndStop(3);
}
}
if (Key.isDown(37)) {
xpos -= 2.25;
dir = 1;
}
if (Key.isDown(39)) {
xpos += 2.25;
dir = -1;
}
_parent._xmouse > this._x;
}
}
}
movieClip 305 {
frame 1 {
gotoAndStop(_root.level);
onEnterFrame = function () {
this._y = _parent.vcam._y;
};
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 308 {
}
// unknown tag 88 length 61
movieClip 311 {
frame 1 {
var levelArray = [40, 53, 68, 68, 68, 68, 68, 68];
onEnterFrame = function () {
this._y = 70 - _root.climb * 145 / levelArray[int(_root.level) - 1] * 15;
height_txt.text = _root.climb + ' ft';
};
}
}
movieClip 314 {
}
movieClip 317 {
}
movieClip 319 {
}
movieClip 323 {
}
movieClip 328 {
}
movieClip 329 {
}
movieClip 330 {
frame 15 {
stop();
}
}
movieClip 331 {
}
movieClip 332 {
frame 1 {
stop();
var levelArray = [300, 400, 500, 500, 500, 500];
var startPlay = true;
onEnterFrame = function () {
if (startPlay && _root.climb > levelArray[int(_root.level) - 1]) {
gotoAndPlay(2);
startPlay = false;
}
};
}
frame 126 {
stop();
}
}
movieClip 333 {
frame 1 {
function camControl() {
var v3 = sX / 800;
var v4 = sY / 600;
_parent._x = cX - this._x * v3;
_parent._y = cY - this._y * v4;
_parent._xscale = 100 * v3;
_parent._yscale = 100 * v4;
}
function resetStage() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
next_btn.onRelease = function () {
_root.gotoAndStop('levelComplete');
};
}
}
instance vcam of movieClip 333 {
onClipEvent (enterFrame) {
swapDepths(_root.char.getNextHighestDepth());
}
}
movieClip 335 {
frame 2 {
stop();
}
}
frame 14 {
stop();
g2wlogo._y = yg2wlogo;
}
// unknown tag 88 length 63
movieClip 341 {
}
movieClip 343 {
}
button 348 {
on (release) {
_root.swHighScoreObject.showTab = 'submit';
docount = true;
loadMovie(_root.HSHubURL, '_level2');
}
}
movieClip 349 {
frame 1 {
trace('SCORE : ' + _root.score);
if (_root.score <= 10) {
_root.score = 10;
} else {
_root.score = _root.score;
}
_level0.swHighScoreObject.player1Score = _root.score;
trace('_level0.swHighScoreObject.player1Score ' + _level0.swHighScoreObject.player1Score);
_root.object = '';
}
}
movieClip 350 {
frame 1 {
stop();
playAgain_btn.onRelease = function () {
_root.playAgain();
};
credit_btn.onRelease = function () {
_root.credit_mc.gotoAndPlay(2);
};
}
instance of movieClip 349 {
onClipEvent (release) {
getURL('http://www.funfastgame.com/', '');
}
}
}
movieClip 351 {
frame 57 {
stop();
stop();
submit_btn.onRelease = function () {
_root.gotoAndStop('highScores');
};
}
}
frame 15 {
stop();
stopAllSounds();
g2wlogo._y = yg2wlogo;
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 358 {
}
movieClip 359 {
}
movieClip 360 {
frame 40 {
stop();
}
}
frame 16 {
stop();
nextFrame();
}
movieClip 363 {
}
frame 17 {
stop();
}
movieClip 364 {
frame 35 {
stop();
playAgain_btn.onRelease = function () {
_root.level = 1;
_root.score = 0;
_root.playIntro = true;
_root.playIntroSound = true;
_root.gotoAndStop('lblgameintro');
};
}
}
frame 18 {
stop();
}
movieClip 368 {
}
movieClip 374 {
}
movieClip 376 {
}
movieClip 378 {
}
movieClip 379 {
frame 55 {
stop();
next_btn.onRelease = function () {
++_root.level;
_root.gotoAndStop('lblgame');
};
}
}
movieClip 383 {
frame 55 {
stop();
next_btn.onRelease = function () {
++_root.level;
_root.gotoAndStop('lblgame');
};
}
}
movieClip 387 {
frame 55 {
stop();
next_btn.onRelease = function () {
++_root.level;
_root.gotoAndStop('lblgame');
};
}
}
movieClip 390 {
frame 55 {
stop();
next_btn.onRelease = function () {
++_root.level;
_root.gotoAndStop('lblgame');
};
}
}
movieClip 394 {
frame 55 {
stop();
next_btn.onRelease = function () {
++_root.level;
_root.gotoAndStop('lblgame');
};
}
}
movieClip 398 {
frame 55 {
stop();
next_btn.onRelease = function () {
_root.gotoAndStop('win');
};
}
}
movieClip 399 {
frame 1 {
gotoAndStop(_root.level);
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 400 {
}