Frame 1
stop();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(new com.manifesto.gamestate.PreloadState());
_root.DEBUG = false;
Frame 2
stop();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 82
stop();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Instance of Symbol 1040 MovieClip in Frame 83
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 106
stop();
Instance of Symbol 1040 MovieClip in Frame 107
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 111
stop();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Instance of Symbol 1058 MovieClip "btnCharacter3" in Frame 111
on (rollOver) {
_parent.mcEscolha.gotoAndStop(4);
}
on (rollOut) {
_parent.mcEscolha.gotoAndStop(1);
}
Instance of Symbol 1058 MovieClip "btnCharacter0" in Frame 111
on (rollOver) {
_parent.mcEscolha.gotoAndStop(2);
}
on (rollOut) {
_parent.mcEscolha.gotoAndStop(1);
}
Instance of Symbol 1058 MovieClip "btnCharacter2" in Frame 111
on (rollOver) {
_parent.mcEscolha.gotoAndStop(3);
}
on (rollOut) {
_parent.mcEscolha.gotoAndStop(1);
}
Instance of Symbol 1058 MovieClip "btnCharacter1" in Frame 111
on (rollOver) {
_parent.mcEscolha.gotoAndStop(5);
}
on (rollOut) {
_parent.mcEscolha.gotoAndStop(1);
}
Instance of Symbol 1040 MovieClip in Frame 112
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 115
stop();
Instance of Symbol 1040 MovieClip in Frame 116
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 117
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 120
stop();
Instance of Symbol 1040 MovieClip in Frame 121
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 124
stop();
Frame 125
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 129
stop();
Frame 133
stop();
Frame 134
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 146
stop();
Frame 159
stop();
Frame 161
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 219
stop();
Frame 249
stop();
Frame 254
stop();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Instance of Symbol 1040 MovieClip in Frame 255
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 258
stop();
Instance of Symbol 1040 MovieClip in Frame 259
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 262
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().onLoad();
Frame 271
stop();
Instance of Symbol 1040 MovieClip in Frame 272
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Frame 281
stop();
Symbol 17 MovieClip [mcUltimate3] Frame 44
stop();
this.endAnimation();
Symbol 22 MovieClip Frame 1
function setProgress(p) {
this.mcBar._x = (-this.mcBar._width) + ((p * this.mcBar._width) / 100);
}
stop();
Symbol 33 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Symbol 34 MovieClip Frame 1
function nielsen(movieClip) {
scCI = "us-ugo";
scCG = "ugoplayer_flashgames";
scSI = escape(movieClip);
loadMovieNum ((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + scCI) + "&cg=") + scCG) + "&si=") + scSI) + "&rnd=") + Math.ceil(Math.random() * 100000000), 100);
}
nielsen("game_intro");
Symbol 34 MovieClip Frame 62
stop();
Symbol 1248 MovieClip [__Packages.com.manifesto.engine.gamestate.MGameState] Frame 0
interface com.manifesto.engine.gamestate.MGameState
{
}
Symbol 1249 MovieClip [__Packages.com.manifesto.gamestate.PreloadState] Frame 0
class com.manifesto.gamestate.PreloadState implements com.manifesto.engine.gamestate.MGameState
{
var mTimeLeft, mLoaded;
function PreloadState () {
mTimeLeft = 4000;
}
function onLoad() {
mTimeLeft = 4000;
mLoaded = false;
com.manifesto.engine.MEngine.init();
com.manifesto.game.SciFighters.getInstance().loadGame("data/DATA.xml");
com.manifesto.engine.preload.MPreloader.getInstance().setProgressBar(new com.manifesto.preload.ProgressBar());
com.manifesto.engine.preload.MPreloader.getInstance().onLoad = mx.utils.Delegate.create(this, callback);
}
function update(time) {
mTimeLeft = mTimeLeft - time;
if ((mTimeLeft < 0) && (mLoaded)) {
var _local2 = new com.manifesto.gamestate.MainMenuState();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(_local2);
}
com.manifesto.engine.preload.MPreloader.getInstance().update();
}
function render() {
}
function callback() {
mLoaded = true;
}
var STATE_NAME = "Preload";
}
Symbol 1250 MovieClip [__Packages.com.manifesto.engine.MEngine] Frame 0
class com.manifesto.engine.MEngine
{
static var instance;
var timeElapsed;
function MEngine () {
timeElapsed = 0;
com.manifesto.engine.collision.MCollisionSystem.getInstance();
com.manifesto.engine.input.MInputSystem.getInstance();
com.manifesto.engine.sound.MSoundSystem.getInstance();
_root.onEnterFrame = mx.utils.Delegate.create(this, update);
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.MEngine();
}
return(instance);
}
static function init() {
instance = null;
getInstance();
}
function update() {
var _local2 = getTimer();
var _local3 = _local2 - timeElapsed;
timeElapsed = _local2;
com.manifesto.engine.input.MInputSystem.getInstance().update();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().update(_local3);
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().render();
com.manifesto.engine.collision.MCollisionSystem.getInstance().update();
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().render();
}
}
Symbol 1251 MovieClip [__Packages.com.manifesto.engine.collision.MCollisionSystem] Frame 0
class com.manifesto.engine.collision.MCollisionSystem
{
static var instance;
var objects, mCollisionListener;
function MCollisionSystem () {
objects = new Array();
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.collision.MCollisionSystem();
}
return(instance);
}
function add(object) {
var _local2 = 0;
while (_local2 < objects.length) {
if (objects[_local2] == object) {
return(undefined);
}
_local2++;
}
objects.push(object);
}
function remove(object) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < objects.length) {
if (objects[_local2] == object) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 != -1) {
objects.splice(_local3, 1);
}
}
function setCollisionListener(listener) {
mCollisionListener = listener;
}
function update() {
if (mCollisionListener == null) {
return(undefined);
}
var _local4 = new Array();
var _local3 = 0;
while (_local3 < objects.length) {
var _local2 = _local3;
while (_local2 < objects.length) {
if (_local3 == _local2) {
} else if (objects[_local3].checkCollision(objects[_local2])) {
_local4.push(new com.manifesto.engine.collision.MCollision(objects[_local3], objects[_local2]));
}
_local2++;
}
_local3++;
}
if (_local4.length > 0) {
mCollisionListener.processCollision(_local4);
}
}
}
Symbol 1252 MovieClip [__Packages.com.manifesto.engine.observer.MSubject] Frame 0
class com.manifesto.engine.observer.MSubject
{
var mObservers;
function MSubject () {
mObservers = new Array();
}
function addObserver(o) {
mObservers.push(o);
}
function removeObserver(o) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < mObservers.length) {
if (mObservers[_local2] == o) {
_local3 = _local2;
break;
}
_local2++;
}
if (_local3 != -1) {
mObservers.splice(_local3, 1);
}
}
function notifyAll() {
var _local2 = 0;
while (_local2 < mObservers.length) {
com.manifesto.engine.observer.MObserver(mObservers[_local2]).subjectNotify(this);
_local2++;
}
}
}
Symbol 1253 MovieClip [__Packages.com.manifesto.engine.observer.MObserver] Frame 0
class com.manifesto.engine.observer.MObserver
{
function MObserver () {
}
function subjectNotify(m) {
}
}
Symbol 1254 MovieClip [__Packages.com.manifesto.engine.collision.MCollisionListener] Frame 0
class com.manifesto.engine.collision.MCollisionListener extends com.manifesto.engine.observer.MSubject
{
function MCollisionListener () {
super();
}
function processCollision(collisions) {
}
}
Symbol 1255 MovieClip [__Packages.com.manifesto.engine.collision.MCollidable] Frame 0
class com.manifesto.engine.collision.MCollidable extends com.manifesto.engine.observer.MSubject
{
var bodies;
function MCollidable () {
super();
bodies = new Array();
}
function addBody(body) {
var _local2 = 0;
while (_local2 < bodies.length) {
if (bodies[_local2] == body) {
return(undefined);
}
_local2++;
}
bodies.push(body);
}
function checkCollision(object) {
var _local3 = 0;
while (_local3 < bodies.length) {
var _local2 = 0;
while (_local2 < object.bodies.length) {
if (bodies[_local3].hitTest(object.bodies[_local2])) {
return(true);
}
_local2++;
}
_local3++;
}
return(false);
}
function processCollision(object) {
}
}
Symbol 1256 MovieClip [__Packages.com.manifesto.engine.collision.MCollision] Frame 0
class com.manifesto.engine.collision.MCollision
{
var mCollidables;
function MCollision (c1, c2) {
mCollidables = new Array();
mCollidables.push(c1);
mCollidables.push(c2);
}
function getCollidables() {
return(mCollidables);
}
function getCollidable(index) {
return(com.manifesto.engine.collision.MCollidable(mCollidables[index]));
}
}
Symbol 1257 MovieClip [__Packages.com.manifesto.engine.input.MInputSystem] Frame 0
class com.manifesto.engine.input.MInputSystem
{
static var instance;
var events, mKeyLocked;
function MInputSystem () {
events = new Array();
mKeyLocked = new Array();
var _local2 = new Object();
_local2.onKeyDown = mx.utils.Delegate.create(this, processKeyPress);
_local2.onKeyUp = mx.utils.Delegate.create(this, processKeyRelease);
Key.addListener(_local2);
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.input.MInputSystem();
}
return(instance);
}
function getEvents() {
var _local2 = events;
events = new Array();
return(_local2);
}
function processKeyRelease() {
var _local2 = Key.getCode();
if (((((_local2 == 65) || (_local2 == 83)) || (_local2 == 68)) || (_local2 == 38)) || (_local2 == 32)) {
mKeyLocked[_local2] = false;
}
}
function processKeyPress() {
var _local2 = Key.getCode();
if (((((_local2 == 65) || (_local2 == 83)) || (_local2 == 68)) || (_local2 == 38)) || (_local2 == 32)) {
if (!mKeyLocked[_local2]) {
events.push(_local2);
mKeyLocked[_local2] = true;
}
}
}
function update() {
if (Key.isDown(37)) {
events.push(37);
}
if (Key.isDown(39)) {
events.push(39);
}
}
}
Symbol 1258 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1259 MovieClip [__Packages.com.manifesto.engine.sound.MSoundSystem] Frame 0
class com.manifesto.engine.sound.MSoundSystem
{
static var instance;
var sounds, mcContainer;
function MSoundSystem () {
sounds = new Array();
mcContainer = _root.createEmptyMovieClip("mcSoundSystem", _root.getNextHighestDepth());
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.sound.MSoundSystem();
}
return(instance);
}
function load(id) {
var _local3 = mcContainer.createEmptyMovieClip(id, mcContainer.getNextHighestDepth());
var _local2 = new com.manifesto.engine.sound.MSound(id, _local3);
sounds.push(_local2);
return(_local2);
}
function get(soundId) {
var _local3 = null;
var _local2 = 0;
while (_local2 < sounds.length) {
if (sounds[_local2].getId() == soundId) {
_local3 = sounds[_local2];
break;
}
_local2++;
}
if (_local3 == null) {
_local3 = load(soundId);
}
return(_local3);
}
function stopAll() {
var _local2 = 0;
while (_local2 < sounds.length) {
sounds[_local2].stop();
_local2++;
}
}
}
Symbol 1260 MovieClip [__Packages.com.manifesto.engine.sound.MSound] Frame 0
class com.manifesto.engine.sound.MSound extends Sound
{
var id, mcContainer, alreadyLooping;
function MSound (id, container) {
super(container);
super.attachSound(id);
this.id = id;
mcContainer = container;
alreadyLooping = false;
}
function start(loop) {
return(undefined);
}
function stop() {
alreadyLooping = false;
super.stop(id);
}
function getId() {
return(id);
}
}
Symbol 1261 MovieClip [__Packages.com.manifesto.engine.gamestate.MGameStateMachine] Frame 0
class com.manifesto.engine.gamestate.MGameStateMachine
{
static var instance;
var state;
function MGameStateMachine () {
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.gamestate.MGameStateMachine();
}
return(instance);
}
function update(time) {
if (state != null) {
state.update(time);
}
}
function render() {
if (state != null) {
state.render();
}
}
function onLoad() {
if (state != null) {
state.onLoad();
}
}
function setState(state) {
this.state = state;
com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
_root.gotoAndPlay(state.STATE_NAME);
}
}
Symbol 1262 MovieClip [__Packages.com.manifesto.game.SciFighters] Frame 0
class com.manifesto.game.SciFighters
{
static var mInstance;
var mBattleground, mFighters, mSpecials, mCollisionListener, mDifficult, mGameWin, mLevelEnded, mPreFightTime, mFightTime, mDifficultLevel, mLevel, mOpponents, mFighterScore, mPlayerFighter;
function SciFighters () {
mBattleground = new com.manifesto.game.Battleground();
mFighters = new Array();
mSpecials = new Array();
mCollisionListener = new com.manifesto.game.MCollisionHandler();
mCollisionListener.addObserver(com.manifesto.game.SoundPlayer.getInstance());
mDifficult = new Array();
mGameWin = false;
mLevelEnded = false;
}
static function getInstance() {
if (mInstance == null) {
mInstance = new com.manifesto.game.SciFighters();
}
return(mInstance);
}
function setGameWin(b) {
mGameWin = b;
}
function getGameWin() {
return(mGameWin);
}
function loadGame(url) {
var _local2 = new com.manifesto.game.persistence.GameParser(this, mFighters, mSpecials);
_local2.onLoad(true);
com.manifesto.engine.collision.MCollisionSystem.getInstance().setCollisionListener(mCollisionListener);
}
function getNumOfFighters() {
return(mFighters.size());
}
function getPreFightTime() {
return(mPreFightTime);
}
function setPreFightTime(n) {
mPreFightTime = n;
}
function getFightTime() {
return(mFightTime);
}
function setFightTime(n) {
mFightTime = n;
}
function addDifficult(i, n) {
mDifficult[i] = n;
}
function getFighter(name, away) {
var _local3 = com.manifesto.game.Fighter(mFighters[name]);
var _local2;
if (away) {
_local2 = new com.manifesto.game.FighterPlayer();
} else {
_local2 = new com.manifesto.engine.ai.MFighterAgent();
}
_local2.setID(_local3.getID());
_local2.setName(_local3.getName());
_local2.setHealth(_local3.getHealth());
_local2.setMaxHealth(_local3.getMaxHealth());
_local2.setKickDamage(_local3.getKickDamage());
_local2.setPunchDamage(_local3.getPunchDamage());
_local2.setVelocity(_local3.getVelocity());
_local2.setBackVelocity(_local3.getBackVelocity());
_local2.setMaxNumSpecials(_local3.getMaxNumSpecials());
_local2.setTalk(_local3.getTalk());
return(_local2);
}
function getSpecialMove(heroName) {
var _local3 = com.manifesto.game.SpecialMove(mSpecials[heroName]);
var _local2 = new com.manifesto.game.SpecialMove();
_local2.setDamage(_local3.getDamage());
_local2.setID(_local3.getID());
_local2.setSpecialHeight(_local3.getSpecialHeight());
_local2.setSpecialX(_local3.getSpecialX());
_local2.setVelocity(_local3.getVelocity());
return(_local2);
}
function setDifficultLevel(n) {
mDifficultLevel = n;
}
function setupFight(homeFighterName, awayFighterName) {
var _local2 = getFighter(homeFighterName, false);
var _local3 = getFighter(awayFighterName, true);
_local2.setDifficultLevel(mDifficult[mDifficultLevel]);
_local3.setDifficultLevel(mDifficult[mDifficultLevel]);
var _local5 = getSpecialMove(homeFighterName);
var _local4 = getSpecialMove(awayFighterName);
mBattleground.setupFight(_local2, _local3, _local5, _local4);
mCollisionListener.setHomeFighter(_local2);
mCollisionListener.setAwayFighter(_local3);
}
function newGame(playerFighter) {
setPlayerFighter(playerFighter);
mLevel = 0;
mGameWin = false;
mOpponents = new Array();
for (var _local3 in mFighters) {
if (_local3 != playerFighter) {
mOpponents.push(_local3);
}
}
mOpponents.sort(function (a, b) {
if (Math.random() < 0.5) {
return(-1);
}
return(1);
});
mFighterScore = new com.manifesto.game.FighterScore();
createLevel();
}
function createLevel() {
mLevelEnded = false;
if (mOpponents.length <= 0) {
return(false);
}
var _local2 = String(mOpponents.pop());
setDifficultLevel(mLevel);
setupFight(_local2, getPlayerFighter());
mLevel++;
return(true);
}
function endLevel() {
if (mLevelEnded) {
return(undefined);
}
com.manifesto.game.SoundPlayer.getInstance().stopAllSounds();
var _local3 = "ultimate_" + mBattleground.getHomeFighter().getID();
var _local4 = "winning_" + mBattleground.getHomeFighter().getID();
var _local2 = "lose";
if (mBattleground.getHomeFighter().getHealth() < mBattleground.getAwayFighter().getHealth()) {
_local3 = "ultimate_" + mBattleground.getAwayFighter().getID();
_local4 = "winning_" + mBattleground.getAwayFighter().getID();
_local2 = "win";
}
com.manifesto.game.SoundPlayer.getInstance().playSound(_local2, false);
com.manifesto.game.SoundPlayer.getInstance().playSound(_local3, false);
com.manifesto.game.SoundPlayer.getInstance().playSound(_local4, false);
mLevelEnded = true;
}
function getLevel() {
return(mLevel);
}
function setPlayerFighter(fighter) {
mPlayerFighter = fighter;
}
function getPlayerFighter() {
return(mPlayerFighter);
}
function update(time) {
mBattleground.update(time);
}
function getFighters() {
return(mFighters);
}
function getBattleground() {
return(mBattleground);
}
function getFighterScore() {
return(mFighterScore);
}
}
Symbol 1263 MovieClip [__Packages.com.manifesto.game.Battleground] Frame 0
class com.manifesto.game.Battleground
{
var mPaused, mFightOver, m_pHomeFighter, m_pAwayFighter, m_pHomeSpecial, m_pAwaySpecial, isAwayLeft;
function Battleground () {
mPaused = false;
mFightOver = false;
}
function setupFight(homeFighter, awayFighter, homeSpecial, awaySpecial) {
m_pHomeFighter = homeFighter;
m_pAwayFighter = awayFighter;
var _local2 = 1 + (0.7 / m_pHomeFighter.getDifficultLevel());
m_pHomeFighter.setKickDamage(m_pHomeFighter.getKickDamage() * _local2);
m_pHomeFighter.setPunchDamage(m_pHomeFighter.getPunchDamage() * _local2);
m_pHomeSpecial = homeSpecial;
m_pAwaySpecial = awaySpecial;
m_pHomeSpecial.setDamage(m_pHomeSpecial.getDamage() * _local2);
homeSpecial.setID(m_pHomeFighter.getID());
awaySpecial.setID(m_pAwayFighter.getID());
m_pHomeFighter.setSpecialMove(m_pHomeSpecial);
m_pAwayFighter.setSpecialMove(m_pAwaySpecial);
mFightOver = false;
}
function endFight() {
mFightOver = true;
var _local2 = Math.abs(m_pHomeFighter.getPosition().x - m_pAwayFighter.getPosition().x);
if (_local2 < ULTIMATE_RANGE) {
var _local4 = ULTIMATE_RANGE - _local2;
var _local3 = m_pHomeFighter;
if (Math.abs(m_pHomeFighter.getPosition().x) > Math.abs(m_pAwayFighter.getPosition().x)) {
_local3 = m_pAwayFighter;
}
var _local5 = ((_local3.getBackVelocity() > 0) ? 1 : -1);
_local3.translate(_local5 * _local4, 0);
} else if (_local2 > ULTIMATE_RANGE) {
var _local4 = _local2 - ULTIMATE_RANGE;
var _local3 = m_pHomeFighter;
if (Math.abs(m_pHomeFighter.getPosition().x) < Math.abs(m_pAwayFighter.getPosition().x)) {
_local3 = m_pAwayFighter;
}
var _local5 = ((_local3.getVelocity() > 0) ? 1 : -1);
_local3.translate(_local5 * _local4, 0);
}
}
function setPause(b) {
mPaused = b;
}
function update(time) {
if (mPaused) {
return(undefined);
}
m_pHomeFighter.update(time);
m_pAwayFighter.update(time);
if (mFightOver) {
m_pHomeFighter.setState(com.manifesto.game.FightState.STATE_STAND_STILL);
m_pAwayFighter.setState(com.manifesto.game.FightState.STATE_STAND_STILL);
m_pHomeSpecial.endMove();
m_pAwaySpecial.endMove();
return(undefined);
}
m_pHomeSpecial.update();
m_pAwaySpecial.update();
var _local3 = new com.manifesto.game.FightState();
var _local2 = new com.manifesto.game.FightState();
var _local9 = m_pHomeFighter.getPosition();
var _local8 = m_pAwayFighter.getPosition();
_local3.mEnemyState = m_pAwayFighter.getState();
_local3.mHealth = m_pAwayFighter.getHealth();
_local2.mEnemyState = m_pHomeFighter.getState();
_local2.mHealth = m_pHomeFighter.getHealth();
_local3.mEnemyPosition = com.manifesto.game.FightState.ENEMY_NOT_IN_RANGE;
_local2.mEnemyPosition = com.manifesto.game.FightState.ENEMY_NOT_IN_RANGE;
if (Math.abs(_local9.x - _local8.x) < ATACK_MEDIUM_RANGE) {
if (Math.abs(_local9.x - _local8.x) < ATACK_RANGE) {
_local3.mEnemyPosition = com.manifesto.game.FightState.ENEMY_IN_RANGE;
_local2.mEnemyPosition = com.manifesto.game.FightState.ENEMY_IN_RANGE;
} else {
_local3.mEnemyPosition = com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE;
_local2.mEnemyPosition = com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE;
}
}
_local3.mSpecialAttack = m_pAwaySpecial;
var _local5 = m_pHomeFighter.getNextAction(_local3);
if ((((_local5.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL) || (_local5.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL2)) || (_local5.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL3)) && (m_pHomeFighter.canDoSpecial())) {
m_pHomeFighter.doneSpecial();
if (isAwayLeft) {
m_pHomeSpecial.setDirection(-1);
} else {
m_pHomeSpecial.setDirection(1);
}
m_pHomeSpecial.setPosition2(m_pHomeFighter.getPosition().x, m_pHomeFighter.getPosition().y);
}
if (_local5.mStand == com.manifesto.game.FighterAction.STAND_JUMP) {
m_pHomeFighter.jump();
}
var _local7 = false;
switch (_local5.mMove) {
case com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY :
m_pHomeFighter.translate(m_pHomeFighter.getBackVelocity(), 0);
_local7 = true;
break;
case com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY :
m_pHomeFighter.translate(m_pHomeFighter.getVelocity(), 0);
break;
case com.manifesto.game.FighterAction.MOVE_LEFT :
if (isAwayLeft) {
m_pHomeFighter.translate(m_pHomeFighter.getVelocity(), 0);
} else {
m_pHomeFighter.translate(m_pHomeFighter.getBackVelocity(), 0);
_local7 = true;
}
break;
case com.manifesto.game.FighterAction.MOVE_RIGHT :
if (isAwayLeft) {
m_pHomeFighter.translate(m_pHomeFighter.getBackVelocity(), 0);
_local7 = true;
} else {
m_pHomeFighter.translate(m_pHomeFighter.getVelocity(), 0);
}
break;
case com.manifesto.game.FighterAction.MOVE_NONE :
m_pHomeFighter.translate(0, 0);
}
_local2.mSpecialAttack = m_pHomeSpecial;
var _local4 = m_pAwayFighter.getNextAction(_local2);
if ((((_local4.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL) || (_local4.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL2)) || (_local4.mAttack == com.manifesto.game.FighterAction.ATTACK_SPECIAL3)) && (m_pAwayFighter.canDoSpecial())) {
m_pAwayFighter.doneSpecial();
if (!isAwayLeft) {
m_pAwaySpecial.setDirection(-1);
} else {
m_pAwaySpecial.setDirection(1);
}
m_pAwaySpecial.setPosition2(m_pAwayFighter.getPosition().x, m_pAwayFighter.getPosition().y);
}
if (_local4.mStand == com.manifesto.game.FighterAction.STAND_JUMP) {
m_pAwayFighter.jump();
}
var _local6 = false;
switch (_local4.mMove) {
case com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY :
m_pAwayFighter.translate(m_pAwayFighter.getBackVelocity(), 0);
_local6 = true;
break;
case com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY :
m_pAwayFighter.translate(m_pAwayFighter.getVelocity(), 0);
break;
case com.manifesto.game.FighterAction.MOVE_LEFT :
if (!isAwayLeft) {
m_pAwayFighter.translate(m_pAwayFighter.getVelocity(), 0);
} else {
m_pAwayFighter.translate(m_pAwayFighter.getBackVelocity(), 0);
_local6 = true;
}
break;
case com.manifesto.game.FighterAction.MOVE_RIGHT :
if (!isAwayLeft) {
m_pAwayFighter.translate(m_pAwayFighter.getBackVelocity(), 0);
_local6 = true;
} else {
m_pAwayFighter.translate(m_pAwayFighter.getVelocity(), 0);
}
break;
case com.manifesto.game.FighterAction.MOVE_NONE :
m_pAwayFighter.translate(0, 0);
}
if ((_local6 && (((_local2.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE) || (_local2.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_RANGE)) || (flash.geom.Point.distance(_local2.mSpecialAttack.getPosition(), m_pAwayFighter.getPosition()) < com.manifesto.game.FightState.ENEMY_IN_RANGE))) && ((_local5.mAttack == com.manifesto.game.FighterAction.ATTACK_KICK) || (_local5.mAttack == com.manifesto.game.FighterAction.ATTACK_PUNCH))) {
m_pAwayFighter.setState(com.manifesto.game.FightState.STATE_BLOCK);
}
if ((_local7 && (((_local3.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE) || (_local3.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_RANGE)) || (flash.geom.Point.distance(_local3.mSpecialAttack.getPosition(), m_pHomeFighter.getPosition()) < com.manifesto.game.FightState.ENEMY_IN_RANGE))) && ((_local4.mAttack == com.manifesto.game.FighterAction.ATTACK_KICK) || (_local4.mAttack == com.manifesto.game.FighterAction.ATTACK_PUNCH))) {
m_pHomeFighter.setState(com.manifesto.game.FightState.STATE_BLOCK);
}
}
function getHomeFighter() {
return(m_pHomeFighter);
}
function getAwayFighter() {
return(m_pAwayFighter);
}
function getHomeSpecial() {
return(m_pHomeSpecial);
}
function getAwaySpecial() {
return(m_pAwaySpecial);
}
function setAwayLeft(left) {
isAwayLeft = left;
}
static var ATACK_RANGE = 50;
static var ATACK_MEDIUM_RANGE = 150;
static var ULTIMATE_RANGE = 250;
}
Symbol 1264 MovieClip [__Packages.com.manifesto.game.Fighter] Frame 0
class com.manifesto.game.Fighter extends com.manifesto.engine.collision.MCollidable
{
var m_pPosition, mState, mGravity, mJumpVelocity, mJumping, mJumpInitY, mLastTranslation, mDifficultLevel, mNumSpecials, mMaxNumSpecials, mSpecialTimer, mID, mMaxHealth, mName, mVelocity, mBackVelocity, mPunchDamage, mKickDamage, m_pSpecialMove, mHealth, notifyAll, mTalk;
function Fighter () {
super();
m_pPosition = new flash.geom.Point();
mState = com.manifesto.game.FightState.STATE_STAND_STILL;
mGravity = 1000;
mJumpVelocity = 0;
mJumping = false;
mJumpInitY = 0;
mLastTranslation = new flash.geom.Point();
mDifficultLevel = 0;
mNumSpecials = 0;
mMaxNumSpecials = 0;
mSpecialTimer = 100;
}
function getID() {
return(mID);
}
function getNumSpecials() {
return(mNumSpecials);
}
function setMaxNumSpecials(n) {
mMaxNumSpecials = n;
}
function getMaxNumSpecials() {
return(mMaxNumSpecials);
}
function setNumSpecials(n) {
mNumSpecials = n;
}
function getMaxHealth() {
return(mMaxHealth);
}
function setMaxHealth(n) {
mMaxHealth = n;
}
function isJumping() {
return(mJumping);
}
function setID(n) {
mID = n;
}
function getName() {
return(mName);
}
function setName(n) {
mName = n;
}
function getVelocity() {
return(mVelocity);
}
function setVelocity(n) {
mVelocity = n;
}
function getBackVelocity() {
return(mBackVelocity);
}
function setBackVelocity(n) {
mBackVelocity = n;
}
function getPunchDamage() {
return(mPunchDamage);
}
function setPunchDamage(n) {
mPunchDamage = n;
}
function getKickDamage() {
return(mKickDamage);
}
function setKickDamage(n) {
mKickDamage = n;
}
function setSpecialMove(sm) {
m_pSpecialMove = sm;
}
function getJumpVelocity() {
return(mJumpVelocity);
}
function setJumpVelocity(n) {
mJumpVelocity = n;
}
function getState() {
return(mState);
}
function getPosition() {
return(m_pPosition);
}
function setPosition(pPoint) {
m_pPosition = pPoint;
}
function setPosition2(x, y) {
m_pPosition.x = x;
m_pPosition.y = y;
}
function getHealth() {
return(mHealth);
}
function getLastTranslation() {
return(mLastTranslation);
}
function setHealth(n) {
if (n < 0) {
n = 0;
}
mHealth = n;
}
function getNextAction(fState) {
var _local1;
return(_local1);
}
function flip() {
mVelocity = mVelocity * -1;
mBackVelocity = mBackVelocity * -1;
}
function endMove() {
if (mJumping) {
mState = com.manifesto.game.FightState.STATE_JUMPING;
} else {
mState = com.manifesto.game.FightState.STATE_STAND_STILL;
notifyAll();
}
}
function setState(state) {
var _local2 = true;
_local2 = (mState == com.manifesto.game.FightState.STATE_MOVING) || (mState == com.manifesto.game.FightState.STATE_STAND_STILL);
_local2 = _local2 || (mJumping && (((state == com.manifesto.game.FightState.STATE_KICK_JUMP) || (state == com.manifesto.game.FightState.STATE_PUNCH_JUMP)) || (state == com.manifesto.game.FightState.STATE_SPECIAL_MOVE_JUMP)));
_local2 = _local2 || (state == com.manifesto.game.FightState.STATE_BEATEN);
if (_local2 && (state != mState)) {
mState = state;
notifyAll();
}
return(_local2);
}
function jump() {
if (!mJumping) {
mJumping = true;
mJumpInitY = m_pPosition.y;
mJumpVelocity = -730;
}
}
function update(time) {
mLastTranslation.x = 0;
mSpecialTimer = mSpecialTimer + 1;
if (mJumping) {
var _local2 = time / 1000;
mLastTranslation.y = (mJumpVelocity * _local2) + (((mGravity * _local2) * _local2) * 0.5);
m_pPosition.y = m_pPosition.y + mLastTranslation.y;
mJumpVelocity = mJumpVelocity + (mGravity * _local2);
if (m_pPosition.y >= mJumpInitY) {
m_pPosition.y = mJumpInitY;
mJumping = false;
endMove();
}
}
}
function setDifficultLevel(n) {
mDifficultLevel = n;
}
function getDifficultLevel() {
return(mDifficultLevel);
}
function canMove() {
return(((((mState == com.manifesto.game.FightState.STATE_MOVING) || (mState == com.manifesto.game.FightState.STATE_JUMPING)) || (mState == com.manifesto.game.FightState.STATE_PUNCH_JUMP)) || (mState == com.manifesto.game.FightState.STATE_KICK_JUMP)) || (mState == com.manifesto.game.FightState.STATE_STAND_STILL));
}
function translate(x, y) {
m_pPosition.x = m_pPosition.x + x;
m_pPosition.y = m_pPosition.y + y;
mLastTranslation.x = x;
}
function processCollision(object) {
if (object instanceof com.manifesto.game.SpecialMove) {
var _local7 = ((mLastTranslation.x > 0) && (getBackVelocity() > 0)) || ((mLastTranslation.x < 0) && (getBackVelocity() < 0));
if (com.manifesto.game.SpecialMove(object).getID() != getID()) {
var _local4 = com.manifesto.game.SpecialMove(object).getDamage();
if ((!isJumping()) && ((mState == com.manifesto.game.FightState.STATE_BLOCK) || (_local7))) {
setHealth(getHealth() - (0.2 * _local4));
translate(mBackVelocity, 0);
setState(com.manifesto.game.FightState.STATE_BLOCK);
} else if (mState != com.manifesto.game.FightState.STATE_BEATEN) {
setHealth(getHealth() - _local4);
setState(com.manifesto.game.FightState.STATE_BEATEN);
translate(mBackVelocity, 0);
}
}
} else if (object instanceof com.manifesto.game.Fighter) {
var _local2 = com.manifesto.game.Fighter(object);
var _local8 = _local2.getState();
var _local5 = _local2.getPunchDamage();
var _local6 = _local2.getKickDamage();
switch (_local8) {
case com.manifesto.game.FightState.STATE_STAND_STILL :
case com.manifesto.game.FightState.STATE_JUMPING :
case com.manifesto.game.FightState.STATE_BOWED :
case com.manifesto.game.FightState.STATE_MOVING :
break;
case com.manifesto.game.FightState.STATE_PUNCHING :
case com.manifesto.game.FightState.STATE_PUNCH_JUMP :
case com.manifesto.game.FightState.STATE_PUNCH_BOW :
if (((mState != com.manifesto.game.FightState.STATE_BLOCK) && (mState != com.manifesto.game.FightState.STATE_BLOCK_BOW)) && (mState != com.manifesto.game.FightState.STATE_BEATEN)) {
setHealth(getHealth() - _local5);
setState(com.manifesto.game.FightState.STATE_BEATEN);
translate(2 * mBackVelocity, 0);
}
break;
case com.manifesto.game.FightState.STATE_KICKING :
case com.manifesto.game.FightState.STATE_KICK_JUMP :
case com.manifesto.game.FightState.STATE_KICK_BOW :
if (((mState != com.manifesto.game.FightState.STATE_BLOCK) && (mState != com.manifesto.game.FightState.STATE_BLOCK_BOW)) && (mState != com.manifesto.game.FightState.STATE_BEATEN)) {
setHealth(getHealth() - _local6);
setState(com.manifesto.game.FightState.STATE_BEATEN);
translate(2 * mBackVelocity, 0);
}
break;
case com.manifesto.game.FightState.STATE_BLOCK :
case com.manifesto.game.FightState.STATE_BLOCK_BOW :
}
}
}
function canDoSpecial() {
var _local2 = !m_pSpecialMove.isValid();
_local2 = _local2 && ((mMaxNumSpecials == -1) || (mNumSpecials < mMaxNumSpecials));
_local2 = _local2 && (mSpecialTimer > 90);
return(_local2);
}
function doneSpecial() {
if (mSpecialTimer > 90) {
mSpecialTimer = 0;
}
mNumSpecials = mNumSpecials + 1;
}
function setStateByAction(fAction) {
var _local2 = com.manifesto.game.FighterAction.STAND_STILL;
var _local4 = true;
if (fAction.mStand != com.manifesto.game.FighterAction.STAND_STILL) {
fAction.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
_local2 = com.manifesto.game.FightState.STATE_JUMPING;
} else if ((fAction.mMove != com.manifesto.game.FighterAction.MOVE_NONE) && (fAction.mAttack == com.manifesto.game.FighterAction.ATTACK_NONE)) {
_local2 = com.manifesto.game.FightState.STATE_MOVING;
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_JUMPING;
}
} else if (fAction.mAttack != com.manifesto.game.FighterAction.ATTACK_NONE) {
fAction.mMove = com.manifesto.game.FighterAction.MOVE_NONE;
fAction.mStand = com.manifesto.game.FighterAction.STAND_STILL;
switch (fAction.mAttack) {
case com.manifesto.game.FighterAction.ATTACK_BLOCK :
fAction.mMove = com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY;
if (!isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_BLOCK;
}
case com.manifesto.game.FighterAction.ATTACK_PUNCH :
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_PUNCH_JUMP;
} else {
_local2 = com.manifesto.game.FightState.STATE_PUNCHING;
}
break;
case com.manifesto.game.FighterAction.ATTACK_KICK :
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_KICK_JUMP;
} else {
_local2 = com.manifesto.game.FightState.STATE_KICKING;
}
break;
case com.manifesto.game.FighterAction.ATTACK_SPECIAL :
if (canDoSpecial()) {
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE_JUMP;
} else {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE;
}
} else {
fAction.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
}
break;
case com.manifesto.game.FighterAction.ATTACK_SPECIAL2 :
if (canDoSpecial()) {
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE2_JUMP;
} else {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE2;
}
} else {
fAction.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
}
break;
case com.manifesto.game.FighterAction.ATTACK_SPECIAL3 :
if (canDoSpecial()) {
if (isJumping()) {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE3_JUMP;
} else {
_local2 = com.manifesto.game.FightState.STATE_SPECIAL_MOVE3;
}
} else {
fAction.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
}
}
}
setState(_local2);
return(_local4);
}
function getTalk() {
return(mTalk);
}
function setTalk(talk) {
mTalk = talk;
}
}
Symbol 1265 MovieClip [__Packages.com.manifesto.game.SpecialMove] Frame 0
class com.manifesto.game.SpecialMove extends com.manifesto.engine.collision.MCollidable
{
var mPosition, mDirection, mVelocity, mDamage, mSpecialHeight, mSpecialX, mId;
function SpecialMove () {
super();
mPosition = new flash.geom.Point();
mPosition.x = 0;
mPosition.y = 1;
mDirection = 1;
}
function update() {
if (mPosition.y < 0) {
mPosition.x = mPosition.x + (mVelocity * mDirection);
}
}
function getDamage() {
return(mDamage);
}
function setDamage(n) {
mDamage = n;
}
function getDirection() {
return(mDirection);
}
function setDirection(n) {
mDirection = n;
}
function getVelocity() {
return(mVelocity);
}
function setVelocity(n) {
mVelocity = n;
}
function getPosition() {
return(mPosition);
}
function setSpecialHeight(n) {
mSpecialHeight = n;
}
function setSpecialX(n) {
mSpecialX = n;
}
function getSpecialHeight() {
return(mSpecialHeight);
}
function getSpecialX() {
return(mSpecialX);
}
function setPosition(x) {
mPosition.x = x;
mPosition.y = mSpecialHeight;
}
function setPosition2(x, y) {
mPosition.x = x + (getSpecialX() * mDirection);
mPosition.y = y - getSpecialHeight();
}
function endMove() {
mPosition.y = 1;
}
function isValid() {
return(mPosition.y != 1);
}
function getID() {
return(mId);
}
function setID(id) {
mId = id;
}
function processCollision(object) {
if (object instanceof com.manifesto.game.Fighter) {
var _local3 = com.manifesto.game.Fighter(object).getID();
var _local4 = getID();
if (_local3 != getID()) {
mPosition.y = 1;
}
} else if (object instanceof com.manifesto.engine.collision.MBounder) {
mPosition.y = 1;
} else if (object instanceof com.manifesto.game.SpecialMove) {
mPosition.y = 1;
}
}
}
Symbol 1266 MovieClip [__Packages.com.manifesto.engine.collision.MBounder] Frame 0
class com.manifesto.engine.collision.MBounder extends com.manifesto.engine.collision.MCollidable
{
var mMovieClip, mDirection, addBody;
function MBounder (mc, x, y) {
super();
mMovieClip = mc;
mDirection = new flash.geom.Point(x, y);
addBody(mc);
com.manifesto.engine.collision.MCollisionSystem.getInstance().add(this);
}
function getPosition() {
return(new flash.geom.Point(mMovieClip._x, mMovieClip._y));
}
function getGlobalPosition() {
var _local2 = {x:mMovieClip._x, y:mMovieClip._y};
mMovieClip._parent.localToGlobal(_local2);
return(new flash.geom.Point(_local2.x, _local2.y));
}
function getDirection() {
return(mDirection);
}
}
Symbol 1267 MovieClip [__Packages.com.manifesto.game.FightState] Frame 0
class com.manifesto.game.FightState
{
function FightState () {
}
static var ENEMY_IN_RANGE = 0;
static var ENEMY_NOT_IN_RANGE = 1;
static var ENEMY_IN_MEDIUM_RANGE = 2;
static var STATE_STAND_STILL = 0;
static var STATE_MOVING = 1;
static var STATE_JUMPING = 2;
static var STATE_BOWED = 3;
static var STATE_PUNCHING = 4;
static var STATE_PUNCH_JUMP = 6;
static var STATE_PUNCH_BOW = 8;
static var STATE_KICKING = 5;
static var STATE_KICK_JUMP = 7;
static var STATE_KICK_BOW = 9;
static var STATE_BLOCK = 10;
static var STATE_BLOCK_BOW = 11;
static var STATE_BEATEN = 12;
static var STATE_SPECIAL_MOVE = 13;
static var STATE_SPECIAL_MOVE_JUMP = 14;
static var STATE_SPECIAL_MOVE2 = 15;
static var STATE_SPECIAL_MOVE2_JUMP = 16;
static var STATE_SPECIAL_MOVE3 = 17;
static var STATE_SPECIAL_MOVE3_JUMP = 18;
}
Symbol 1268 MovieClip [__Packages.com.manifesto.game.FighterAction] Frame 0
class com.manifesto.game.FighterAction
{
var mMove, mAttack, mStand;
function FighterAction () {
mMove = 0;
mAttack = 0;
mStand = 0;
}
static var MOVE_NONE = 0;
static var MOVE_TOWARD_ENEMY = 1;
static var MOVE_AWAY_ENEMY = 2;
static var MOVE_RIGHT = 3;
static var MOVE_LEFT = 4;
static var ATTACK_NONE = 0;
static var ATTACK_PUNCH = 1;
static var ATTACK_KICK = 2;
static var ATTACK_BLOCK = 3;
static var ATTACK_SPECIAL = 4;
static var ATTACK_SPECIAL2 = 5;
static var ATTACK_SPECIAL3 = 6;
static var STAND_STILL = 0;
static var STAND_BOW = 1;
static var STAND_JUMP = 2;
}
Symbol 1269 MovieClip [__Packages.com.manifesto.game.MCollisionHandler] Frame 0
class com.manifesto.game.MCollisionHandler extends com.manifesto.engine.collision.MCollisionListener
{
var mHomeFighter, mAwayFighter, mHomeAccVelocity, mAwayAccVelocity, mBounderCollision, mFighterCollision, mHomeBounder, mAwayBounder, notifyAll;
function MCollisionHandler () {
super();
}
function setHomeFighter(f) {
mHomeFighter = f;
}
function setAwayFighter(f) {
mAwayFighter = f;
}
function getHomeFighter() {
return(mHomeFighter);
}
function getAwayFighter() {
return(mAwayFighter);
}
function processCollision(collisions) {
mHomeAccVelocity = 0;
mAwayAccVelocity = 0;
mBounderCollision = 0;
mFighterCollision = false;
var _local5 = 0;
while (_local5 < collisions.length) {
var _local6 = com.manifesto.engine.collision.MCollision(collisions[_local5]);
var _local3 = _local6.getCollidable(0);
var _local2 = _local6.getCollidable(1);
_local3.processCollision(_local2);
_local2.processCollision(_local3);
if (_local3 instanceof com.manifesto.game.Fighter) {
var _local4 = com.manifesto.game.Fighter(_local3);
if (_local2 instanceof com.manifesto.game.Fighter) {
mFighterCollision = true;
var _local8 = com.manifesto.game.Fighter(_local2);
} else if (_local2 instanceof com.manifesto.engine.collision.MBounder) {
if (_local4 == mHomeFighter) {
mHomeBounder = com.manifesto.engine.collision.MBounder(_local2);
} else {
mAwayBounder = com.manifesto.engine.collision.MBounder(_local2);
}
if (mBounderCollision != 0) {
mBounderCollision = 3;
} else {
mBounderCollision = ((_local4 == mHomeFighter) ? 1 : 2);
}
}
}
if (_local2 instanceof com.manifesto.game.Fighter) {
var _local8 = com.manifesto.game.Fighter(_local2);
if (_local3 instanceof com.manifesto.engine.collision.MBounder) {
if (_local4 == mHomeFighter) {
mHomeBounder = com.manifesto.engine.collision.MBounder(_local3);
} else {
mAwayBounder = com.manifesto.engine.collision.MBounder(_local3);
}
if (mBounderCollision != 0) {
mBounderCollision = 3;
} else {
mBounderCollision = ((_local4 == mHomeFighter) ? 1 : 2);
}
}
}
_local5++;
}
if (mFighterCollision) {
var _local9 = processFighterFighterCollision();
mHomeAccVelocity = _local9[0];
mAwayAccVelocity = _local9[1];
notifyAll();
}
if (mBounderCollision == 1) {
mHomeAccVelocity = processFighterBounderCollision(mHomeFighter, mHomeBounder).x;
} else if (mBounderCollision == 2) {
mAwayAccVelocity = processFighterBounderCollision(mAwayFighter, mAwayBounder).x;
} else if (mBounderCollision == 3) {
mHomeAccVelocity = processFighterBounderCollision(mHomeFighter, mHomeBounder).x;
mAwayAccVelocity = processFighterBounderCollision(mAwayFighter, mAwayBounder).x;
}
mAwayFighter.setPosition2(mAwayFighter.getPosition().x + mAwayAccVelocity, mAwayFighter.getPosition().y);
mHomeFighter.setPosition2(mHomeFighter.getPosition().x + mHomeAccVelocity, mHomeFighter.getPosition().y);
}
function processFighterBounderCollision(fighter, bounder) {
var _local6 = _root.mcFight.mcFighterAway.mcCharacter.mcBody0.getBounds(_root);
var _local7 = _root.mcFight.mcFighterHome.mcCharacter.mcBody0.getBounds(_root);
var _local3 = new flash.geom.Point();
_local3.x = -fighter.getLastTranslation().x;
_local3.y = 0;
if (mFighterCollision) {
var _local10 = ((fighter.getVelocity() > 0) && (bounder.getDirection().x < 0)) || ((fighter.getVelocity() < 0) && (bounder.getDirection().x > 0));
if (fighter.isJumping() && (_local10)) {
var _local11 = ((_local6.xMax - _local6.xMin) / 2) + ((_local7.xMax - _local7.xMin) / 2);
var _local9 = Math.abs(mHomeFighter.getPosition().x - mAwayFighter.getPosition().x);
var _local4 = _local11 - _local9;
_local4 = ((_local4 < 0.3) ? 0.3 : (_local4));
_local3.x = ((_local3.x > 0) ? (_local3.x + (_local4 / 3)) : (_local3.x - (_local4 / 3)));
}
}
if (((bounder.getDirection().x > 0) && (_local3.x < 0)) || ((bounder.getDirection().x < 0) && (_local3.x > 0))) {
_local3.x = _local3.x * -1;
}
return(_local3);
}
function processFighterFighterCollision() {
var _local5 = _root.mcFight.mcFighterAway.mcCharacter.mcBody0.getBounds(_root);
var _local6 = _root.mcFight.mcFighterHome.mcCharacter.mcBody0.getBounds(_root);
var _local10 = ((_local5.xMax - _local5.xMin) / 2) + ((_local6.xMax - _local6.xMin) / 2);
var _local3 = new Array();
_local3[0] = 0;
_local3[1] = 0;
var _local8 = mHomeFighter.getLastTranslation().x;
var _local7 = mAwayFighter.getLastTranslation().x;
var _local9 = Math.abs(mHomeFighter.getPosition().x - mAwayFighter.getPosition().x);
var _local4 = _local10 - _local9;
_local4 = ((_local4 < 0.3) ? 0.3 : (_local4));
_local3[0] = (_local7 / 2) - (_local8 / 2);
_local3[1] = -1 * _local3[0];
if (mBounderCollision == 1) {
_local3[1] = -_local7;
} else if (mBounderCollision == 2) {
_local3[0] = -_local8;
}
if ((_local4 > 0) && (Math.abs(_local3[0] + _local3[1]) < _local4)) {
_local3[0] = ((mHomeFighter.getBackVelocity() >= 0) ? (_local4 / 2) : (-1 * (_local4 / 2)));
_local3[1] = -1 * _local3[0];
if (((mHomeFighter.getState() == com.manifesto.game.FightState.STATE_BEATEN) || (mHomeFighter.getState() == com.manifesto.game.FightState.STATE_STAND_STILL)) || (mHomeFighter.isJumping())) {
_local3[0] = ((_local3[0] >= 0) ? (_local4 / 3) : (-(_local4 / 3)));
}
if (((mAwayFighter.getState() == com.manifesto.game.FightState.STATE_BEATEN) || (mAwayFighter.getState() == com.manifesto.game.FightState.STATE_STAND_STILL)) || (mAwayFighter.isJumping())) {
_local3[1] = ((_local3[1] >= 0) ? (_local4 / 3) : (-(_local4 / 3)));
}
}
return(_local3);
}
}
Symbol 1270 MovieClip [__Packages.com.manifesto.engine.ranking.Score] Frame 0
class com.manifesto.engine.ranking.Score
{
function Score () {
}
function calculateTotalScore() {
return(0);
}
function getTotalTime() {
return(0);
}
}
Symbol 1271 MovieClip [__Packages.com.manifesto.game.FighterScore] Frame 0
class com.manifesto.game.FighterScore extends com.manifesto.engine.ranking.Score
{
var playTime, totalScore;
function FighterScore () {
super();
playTime = 0;
totalScore = 0;
}
function addTime(time) {
playTime = playTime + time;
}
function addScore(score) {
totalScore = totalScore + score;
}
function calculateTotalScore() {
return(totalScore);
}
function getTotalTime() {
return(playTime);
}
}
Symbol 1272 MovieClip [__Packages.com.manifesto.game.SoundPlayer] Frame 0
class com.manifesto.game.SoundPlayer extends com.manifesto.engine.observer.MObserver
{
static var mInstance;
var mSoundSystem, mLoopSounds, mLockedFighter, mSoundId, mLoop;
function SoundPlayer () {
super();
mSoundSystem = com.manifesto.engine.sound.MSoundSystem.getInstance();
mLoopSounds = new Array();
mLockedFighter = new Array();
}
static function getInstance() {
if (mInstance == null) {
mInstance = new com.manifesto.game.SoundPlayer();
}
return(mInstance);
}
function playSound(sID, bLoop) {
if ((sID != "") && (sID != null)) {
mSoundSystem.get(sID).start(bLoop);
if (bLoop) {
mLoopSounds.push(sID);
}
}
}
function stopSound(sID) {
if ((sID != "") && (sID != null)) {
mSoundSystem.get(sID).stop();
}
}
function stopAllSounds() {
var _local2 = 0;
while (_local2 < mLoopSounds.length) {
mSoundSystem.get(String(mLoopSounds[_local2])).stop();
_local2++;
}
mLoopSounds = new Array();
}
function unLockFighter(f) {
mLockedFighter[f.getName()] = false;
}
function subjectNotify(m) {
mSoundId = "";
mLoop = false;
if (m instanceof com.manifesto.game.Fighter) {
treatFighter(com.manifesto.game.Fighter(m));
if (mSoundId != "") {
mSoundSystem.get(mSoundId).start(mLoop);
}
} else if (m instanceof com.manifesto.game.MCollisionHandler) {
var _local3 = com.manifesto.game.MCollisionHandler(m).getHomeFighter();
var _local2 = com.manifesto.game.MCollisionHandler(m).getAwayFighter();
if ((!mLockedFighter[_local3.getName()]) && (treatFighterCollision(_local3, _local2))) {
mLockedFighter[_local3.getName()] = true;
mSoundSystem.get(mSoundId).start(mLoop);
}
if ((!mLockedFighter[_local2.getName()]) && (treatFighterCollision(_local2, _local3))) {
mLockedFighter[_local2.getName()] = true;
mSoundSystem.get(mSoundId).start(mLoop);
}
}
}
function treatFighter(f) {
switch (f.getState()) {
case com.manifesto.game.FightState.STATE_JUMPING :
mSoundId = "jump";
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE_JUMP :
mSoundId = "special_" + f.getID();
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE2 :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE2_JUMP :
case com.manifesto.game.FightState.STATE_PUNCHING :
case com.manifesto.game.FightState.STATE_PUNCH_JUMP :
case com.manifesto.game.FightState.STATE_PUNCH_BOW :
mSoundId = "special2_" + f.getID();
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE3 :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE3_JUMP :
case com.manifesto.game.FightState.STATE_KICKING :
case com.manifesto.game.FightState.STATE_KICK_JUMP :
case com.manifesto.game.FightState.STATE_KICK_BOW :
mSoundId = "special3_" + f.getID();
break;
case com.manifesto.game.FightState.STATE_BEATEN :
mSoundId = "beaten";
}
}
function treatFighterCollision(fighterA, fighterB) {
var _local2 = false;
var _local3 = fighterB.getState() == com.manifesto.game.FightState.STATE_BLOCK;
switch (fighterA.getState()) {
case com.manifesto.game.FightState.STATE_BLOCK :
case com.manifesto.game.FightState.STATE_BLOCK_BOW :
break;
case com.manifesto.game.FightState.STATE_BEATEN :
mSoundId = "beaten";
_local2 = true;
}
return(_local2);
}
}
Symbol 1273 MovieClip [__Packages.com.manifesto.game.persistence.GameParser] Frame 0
class com.manifesto.game.persistence.GameParser extends XML
{
var mGame, mFighters, mSpecials;
function GameParser (game, fighters, specials) {
super();
mGame = game;
mFighters = fighters;
mSpecials = specials;
}
function onLoad(success) {
if (success) {
parse();
} else {
trace("Error loading/parsing LoadVars.");
}
}
function parse() {
mGame.setPreFightTime(7000);
mGame.setFightTime(120000);
mGame.addDifficult(0, 7);
mGame.addDifficult(1, 4);
mGame.addDifficult(2, 2);
mGame.setDifficultLevel(0);
var _local2;
var _local3;
var _local4;
var _local9;
var _local13;
var _local10;
var _local5;
var _local8;
var _local12;
var _local7;
var _local6;
var _local11;
var _local15 = new Array();
_local3 = 0;
_local2 = "Leonardo Da Vinci";
_local4 = 350;
_local9 = 10;
_local13 = 8;
_local10 = 15;
_local5 = 10;
_local8 = -1;
_local12 = 7;
_local7 = 20;
_local6 = 110;
_local11 = 50;
mFighters[_local2] = new com.manifesto.game.Fighter();
com.manifesto.game.Fighter(mFighters[_local2]).setID(_local3);
com.manifesto.game.Fighter(mFighters[_local2]).setName(_local2);
com.manifesto.game.Fighter(mFighters[_local2]).setHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setKickDamage(_local9);
com.manifesto.game.Fighter(mFighters[_local2]).setPunchDamage(_local13);
com.manifesto.game.Fighter(mFighters[_local2]).setVelocity(_local10 * -1);
com.manifesto.game.Fighter(mFighters[_local2]).setBackVelocity(_local5);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxNumSpecials(_local8);
com.manifesto.game.Fighter(mFighters[_local2]).setTalk(_local15);
var _local14 = new com.manifesto.game.SpecialMove();
_local14.setVelocity(_local12);
_local14.setDamage(_local7);
_local14.setSpecialHeight(_local6);
_local14.setSpecialX(_local11);
_local14.setID(_local3);
mSpecials[_local2] = _local14;
_local3 = 1;
_local2 = "Albert Einstein";
_local4 = 350;
_local9 = 10;
_local13 = 8;
_local10 = 10;
_local5 = 7;
_local8 = -1;
_local12 = 12;
_local7 = 20;
_local6 = 110;
_local11 = 50;
mFighters[_local2] = new com.manifesto.game.Fighter();
com.manifesto.game.Fighter(mFighters[_local2]).setID(_local3);
com.manifesto.game.Fighter(mFighters[_local2]).setName(_local2);
com.manifesto.game.Fighter(mFighters[_local2]).setHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setKickDamage(_local9);
com.manifesto.game.Fighter(mFighters[_local2]).setPunchDamage(_local13);
com.manifesto.game.Fighter(mFighters[_local2]).setVelocity(_local10 * -1);
com.manifesto.game.Fighter(mFighters[_local2]).setBackVelocity(_local5);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxNumSpecials(_local8);
com.manifesto.game.Fighter(mFighters[_local2]).setTalk(_local15);
_local14 = new com.manifesto.game.SpecialMove();
_local14.setVelocity(_local12);
_local14.setDamage(_local7);
_local14.setSpecialHeight(_local6);
_local14.setSpecialX(_local11);
_local14.setID(_local3);
mSpecials[_local2] = _local14;
_local3 = 2;
_local2 = "Isaac Newton";
_local4 = 350;
_local9 = 10;
_local13 = 8;
_local10 = 10;
_local5 = 7;
_local8 = -1;
_local12 = 12;
_local7 = 20;
_local6 = 110;
_local11 = 50;
mFighters[_local2] = new com.manifesto.game.Fighter();
com.manifesto.game.Fighter(mFighters[_local2]).setID(_local3);
com.manifesto.game.Fighter(mFighters[_local2]).setName(_local2);
com.manifesto.game.Fighter(mFighters[_local2]).setHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setKickDamage(_local9);
com.manifesto.game.Fighter(mFighters[_local2]).setPunchDamage(_local13);
com.manifesto.game.Fighter(mFighters[_local2]).setVelocity(_local10 * -1);
com.manifesto.game.Fighter(mFighters[_local2]).setBackVelocity(_local5);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxNumSpecials(_local8);
com.manifesto.game.Fighter(mFighters[_local2]).setTalk(_local15);
_local14 = new com.manifesto.game.SpecialMove();
_local14.setVelocity(_local12);
_local14.setDamage(_local7);
_local14.setSpecialHeight(_local6);
_local14.setSpecialX(_local11);
_local14.setID(_local3);
mSpecials[_local2] = _local14;
_local3 = 3;
_local2 = "Santos Dumont";
_local4 = 350;
_local9 = 10;
_local13 = 8;
_local10 = 10;
_local5 = 7;
_local8 = -1;
_local12 = 12;
_local7 = 20;
_local6 = 110;
_local11 = 50;
mFighters[_local2] = new com.manifesto.game.Fighter();
com.manifesto.game.Fighter(mFighters[_local2]).setID(_local3);
com.manifesto.game.Fighter(mFighters[_local2]).setName(_local2);
com.manifesto.game.Fighter(mFighters[_local2]).setHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxHealth(_local4);
com.manifesto.game.Fighter(mFighters[_local2]).setKickDamage(_local9);
com.manifesto.game.Fighter(mFighters[_local2]).setPunchDamage(_local13);
com.manifesto.game.Fighter(mFighters[_local2]).setVelocity(_local10 * -1);
com.manifesto.game.Fighter(mFighters[_local2]).setBackVelocity(_local5);
com.manifesto.game.Fighter(mFighters[_local2]).setMaxNumSpecials(_local8);
com.manifesto.game.Fighter(mFighters[_local2]).setTalk(_local15);
_local14 = new com.manifesto.game.SpecialMove();
_local14.setVelocity(_local12);
_local14.setDamage(_local7);
_local14.setSpecialHeight(_local6);
_local14.setSpecialX(_local11);
_local14.setID(_local3);
mSpecials[_local2] = _local14;
}
}
Symbol 1274 MovieClip [__Packages.com.manifesto.game.FighterPlayer] Frame 0
class com.manifesto.game.FighterPlayer extends com.manifesto.game.Fighter
{
var canMove, setStateByAction;
function FighterPlayer () {
super();
}
function getNextAction(fState) {
var _local3 = new com.manifesto.game.FighterAction();
_local3.mMove = 0;
_local3.mStand = 0;
_local3.mAttack = 0;
var _local4 = 0;
var _local6 = 0;
var _local9 = 0;
var _local7 = 0;
var _local8 = 0;
var _local10 = 0;
var _local11 = 0;
var _local5 = com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
var _local2 = 0;
while (_local2 < _local5.length) {
switch (_local5[_local2]) {
case 65 :
_local9++;
break;
case 83 :
_local7++;
break;
case 68 :
_local8++;
break;
case 70 :
_local10++;
break;
case 71 :
_local11++;
break;
case 37 :
_local4--;
break;
case 39 :
_local4++;
break;
case 38 :
_local6++;
break;
case 40 :
}
_local2++;
}
if ((_local4 <= -1) && (canMove())) {
_local3.mMove = com.manifesto.game.FighterAction.MOVE_LEFT;
} else if ((_local4 >= 1) && (canMove())) {
_local3.mMove = com.manifesto.game.FighterAction.MOVE_RIGHT;
}
if ((_local6 <= -1) && (canMove())) {
_local3.mStand = com.manifesto.game.FighterAction.STAND_BOW;
_local3.mMove = com.manifesto.game.FighterAction.STAND_STILL;
} else if ((_local6 >= 1) && (canMove())) {
_local3.mStand = com.manifesto.game.FighterAction.STAND_JUMP;
}
var _local12 = new Array();
_local12[0] = _local9;
_local12[1] = _local7;
_local12[2] = _local8;
_local12[3] = _local10;
_local12[4] = _local11;
_local12.sort(Array.DESCENDING);
var _local13 = _local12[0];
if (_local13 > 0) {
if (_local13 == _local9) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_PUNCH;
} else if (_local13 == _local7) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_KICK;
} else if (_local13 == _local8) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL;
} else if (_local13 == _local10) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL2;
} else if (_local13 == _local11) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL3;
}
}
setStateByAction(_local3);
return(_local3);
}
}
Symbol 1275 MovieClip [__Packages.com.manifesto.engine.ai.MFighterAgent] Frame 0
class com.manifesto.engine.ai.MFighterAgent extends com.manifesto.game.Fighter
{
var mAgressiveTime, mAgressive, mDelay, mDoSpecial, mSpecialTimer, mMaxAgressiveTimer, mLastAction, canDoSpecial, setStateByAction, getDifficultLevel, mState, m_pPosition;
function MFighterAgent () {
super();
mAgressiveTime = 0;
mAgressive = false;
mDelay = 0;
mDoSpecial = false;
mSpecialTimer = 0;
mMaxAgressiveTimer = Math.random() * 3;
mLastAction = new com.manifesto.game.FighterAction();
}
function update(time) {
super.update(time);
mAgressiveTime = mAgressiveTime + time;
if (mAgressiveTime > mMaxAgressiveTimer) {
if (mAgressive) {
mMaxAgressiveTimer = 500 + ((Math.random() * 10000) % 1000);
} else {
mMaxAgressiveTimer = 1500 + ((Math.random() * 10000) % 3500);
}
mAgressiveTime = 0;
mAgressive = !mAgressive;
}
if (mSpecialTimer > 3000) {
mDoSpecial = canDoSpecial();
mSpecialTimer = 0;
} else {
mDoSpecial = false;
mSpecialTimer = mSpecialTimer + time;
}
}
function getNextAction(fState) {
var _local3 = new com.manifesto.game.FighterAction();
if (_root.DEBUG) {
_local3.mMove = ((Math.random() > 0.9) ? (com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY) : (com.manifesto.game.FighterAction.MOVE_NONE));
_local3.mAttack = ((Math.random() > 0.01) ? (com.manifesto.game.FighterAction.ATTACK_NONE) : (com.manifesto.game.FighterAction.ATTACK_PUNCH));
setStateByAction(_local3);
return(_local3);
}
if (mDelay < getDifficultLevel()) {
mDelay = mDelay + 1;
if (mLastAction.mMove != com.manifesto.game.FighterAction.MOVE_NONE) {
_local3.mMove = mLastAction.mMove;
}
} else {
mDelay = 0;
if (fState.mEnemyState == com.manifesto.game.FightState.STATE_BEATEN) {
_local3.mAttack = mLastAction.mAttack;
} else if (mAgressive) {
if (fState.mEnemyPosition == com.manifesto.game.FightState.ENEMY_NOT_IN_RANGE) {
if (mDoSpecial) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL;
} else {
_local3.mMove = com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY;
}
} else if (fState.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE) {
if (((fState.mEnemyState == com.manifesto.game.FightState.STATE_KICKING) || (fState.mEnemyState == com.manifesto.game.FightState.STATE_PUNCHING)) || (mState == com.manifesto.game.FightState.STATE_BEATEN)) {
_local3.mAttack = com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY;
_local3.mMove = com.manifesto.game.FighterAction.ATTACK_BLOCK;
_local3.mStand = com.manifesto.game.FighterAction.STAND_JUMP;
} else {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_KICK;
_local3.mMove = com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY;
_local3.mStand = ((Math.random() < 0.35) ? (com.manifesto.game.FighterAction.STAND_JUMP) : (com.manifesto.game.FighterAction.STAND_STILL));
}
} else if (((fState.mEnemyState == com.manifesto.game.FightState.STATE_KICKING) || (fState.mEnemyState == com.manifesto.game.FightState.STATE_PUNCHING)) || (mState == com.manifesto.game.FightState.STATE_BEATEN)) {
_local3.mMove = com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY;
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_BLOCK;
} else {
_local3.mAttack = ((Math.random() > 0.4) ? (com.manifesto.game.FighterAction.ATTACK_KICK) : (com.manifesto.game.FighterAction.ATTACK_PUNCH));
}
} else if (fState.mEnemyPosition == com.manifesto.game.FightState.ENEMY_NOT_IN_RANGE) {
if (mDoSpecial) {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL;
}
} else if (fState.mEnemyPosition == com.manifesto.game.FightState.ENEMY_IN_MEDIUM_RANGE) {
_local3.mAttack = ((Math.random() > 0.4) ? (com.manifesto.game.FighterAction.ATTACK_KICK) : (com.manifesto.game.FighterAction.ATTACK_PUNCH));
_local3.mStand = ((Math.random() > 0.4) ? (com.manifesto.game.FighterAction.STAND_STILL) : (com.manifesto.game.FighterAction.STAND_JUMP));
} else {
_local3.mAttack = com.manifesto.game.FighterAction.ATTACK_BLOCK;
_local3.mMove = com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY;
}
}
if (fState.mSpecialAttack.isValid()) {
_local3 = treatSpecial(fState);
}
setStateByAction(_local3);
mDoSpecial = mDoSpecial && (_local3.mAttack != com.manifesto.game.FighterAction.ATTACK_SPECIAL);
mLastAction = _local3;
return(_local3);
}
function treatSpecial(fState) {
var _local2 = new com.manifesto.game.FighterAction();
var _local4 = fState.mSpecialAttack.getPosition();
if (fState.mEnemyPosition != com.manifesto.game.FightState.ENEMY_IN_RANGE) {
if (flash.geom.Point.distance(m_pPosition, fState.mSpecialAttack.getPosition()) < com.manifesto.game.FightState.ENEMY_IN_RANGE) {
_local2.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL;
_local2.mMove = com.manifesto.game.FighterAction.MOVE_AWAY_ENEMY;
_local2.mStand = com.manifesto.game.FighterAction.STAND_STILL;
} else if (fState.mSpecialAttack.getPosition().y < -295) {
if (mDoSpecial) {
_local2.mAttack = com.manifesto.game.FighterAction.ATTACK_SPECIAL;
} else {
_local2.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
}
_local2.mMove = com.manifesto.game.FighterAction.MOVE_NONE;
_local2.mStand = com.manifesto.game.FighterAction.STAND_STILL;
} else {
_local2.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
_local2.mMove = com.manifesto.game.FighterAction.MOVE_NONE;
_local2.mStand = com.manifesto.game.FighterAction.STAND_JUMP;
}
} else {
_local2.mAttack = com.manifesto.game.FighterAction.ATTACK_NONE;
_local2.mMove = com.manifesto.game.FighterAction.MOVE_TOWARD_ENEMY;
_local2.mStand = com.manifesto.game.FighterAction.STAND_STILL;
if (fState.mSpecialAttack.getPosition().y > -300) {
_local2.mStand = com.manifesto.game.FighterAction.STAND_JUMP;
}
}
return(_local2);
}
}
Symbol 1276 MovieClip [__Packages.com.manifesto.engine.preload.MPreloader] Frame 0
class com.manifesto.engine.preload.MPreloader
{
static var instance;
var progressBar, onLoad;
function MPreloader () {
}
static function getInstance() {
if (instance == null) {
instance = new com.manifesto.engine.preload.MPreloader();
}
return(instance);
}
function setProgressBar(pb) {
progressBar = pb;
}
function update() {
var _local3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
progressBar.setProgress(_local3);
if (_local3 >= 100) {
progressBar.finalize();
onLoad.call();
}
}
}
Symbol 1277 MovieClip [__Packages.com.manifesto.engine.preload.MProgressBar] Frame 0
interface com.manifesto.engine.preload.MProgressBar
{
}
Symbol 1278 MovieClip [__Packages.com.manifesto.preload.ProgressBar] Frame 0
class com.manifesto.preload.ProgressBar implements com.manifesto.engine.preload.MProgressBar
{
var movie;
function ProgressBar () {
movie = _root.mcProgress;
}
function finalize() {
}
function setProgress(value) {
movie.setProgress(value);
}
}
Symbol 1279 MovieClip [__Packages.com.manifesto.gamestate.MainMenuState] Frame 0
class com.manifesto.gamestate.MainMenuState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mNextState;
function MainMenuState () {
mLastFrame = -1;
}
function onLoad() {
_root.btnPlay.onRelease = mx.utils.Delegate.create(this, btnPlay);
_root.btnRanking.onRelease = mx.utils.Delegate.create(this, btnRanking);
_root.btnInvite.onRelease = mx.utils.Delegate.create(this, btnInvite);
_root.btnPlay.enabled = true;
_root.btnRanking.enabled = true;
_root.btnInvite.enabled = true;
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnPlay() {
_root.btnPlay.enabled = false;
_root.btnRanking.enabled = false;
_root.btnInvite.enabled = false;
mNextState = new com.manifesto.gamestate.CharacterState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnRanking() {
_root.btnPlay.enabled = false;
_root.btnRanking.enabled = false;
_root.btnInvite.enabled = false;
mNextState = new com.manifesto.gamestate.RankingState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnInvite() {
_root.btnPlay.enabled = false;
_root.btnRanking.enabled = false;
_root.btnInvite.enabled = false;
mNextState = new com.manifesto.gamestate.InviteState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
var STATE_NAME = "MainMenu";
}
Symbol 1280 MovieClip [__Packages.com.manifesto.gamestate.CharacterState] Frame 0
class com.manifesto.gamestate.CharacterState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mNextState;
function CharacterState () {
mLastFrame = -1;
}
function onLoad() {
var _local5 = com.manifesto.game.SciFighters.getInstance().getFighters();
var _local3;
for (var name in _local5) {
var _local4 = com.manifesto.game.Fighter(_local5[name]).getID();
_local3 = _root["btnCharacter" + _local4];
_local3.name = name;
_local3.parent = this;
_local3.onRelease = function () {
this.parent.btnCharacter(this.name);
};
}
_root.btnCancel.onRelease = mx.utils.Delegate.create(this, btnCancel);
_root.btnCancel.enabled = true;
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnCancel() {
_root.btnCancel.enabled = false;
mNextState = new com.manifesto.gamestate.MainMenuState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnCharacter(fighter) {
_root.btnCancel.enabled = false;
mNextState = new com.manifesto.gamestate.CharacterDetailState(fighter);
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
var STATE_NAME = "Character";
}
Symbol 1281 MovieClip [__Packages.com.manifesto.gamestate.CharacterDetailState] Frame 0
class com.manifesto.gamestate.CharacterDetailState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mFighter, mNextState;
function CharacterDetailState (fighter) {
mLastFrame = -1;
mFighter = fighter;
}
function onLoad() {
_root.mcCharacterDetail.showFighter(mFighter);
_root.btnOk.onRelease = mx.utils.Delegate.create(this, btnOk);
_root.btnCancel.onRelease = mx.utils.Delegate.create(this, btnCancel);
_root.btnOk.enabled = true;
_root.btnCancel.enabled = true;
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnOk() {
_root.btnOk.enabled = false;
_root.btnCancel.enabled = false;
com.manifesto.game.SciFighters.getInstance().newGame(mFighter);
mNextState = new com.manifesto.gamestate.PreFightState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
_root.mcCharacterDetail.end();
}
function btnCancel() {
_root.btnOk.enabled = false;
_root.btnCancel.enabled = false;
mNextState = new com.manifesto.gamestate.CharacterState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
_root.mcCharacterDetail.end();
}
var STATE_NAME = "CharacterDetail";
}
Symbol 1282 MovieClip [__Packages.com.manifesto.gamestate.PreFightState] Frame 0
class com.manifesto.gamestate.PreFightState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, fighterAway, fighterHome, mNextState;
function PreFightState () {
mLastFrame = -1;
}
function onLoad() {
com.manifesto.game.SoundPlayer.getInstance().stopAllSounds();
fighterAway = com.manifesto.game.SciFighters.getInstance().getBattleground().getAwayFighter();
fighterHome = com.manifesto.game.SciFighters.getInstance().getBattleground().getHomeFighter();
var _local3;
_local3 = _root.mcFighterAway;
_local3.gotoAndStop(fighterAway.getName());
_local3 = _root.mcFighterHome;
_local3.gotoAndStop(fighterHome.getName());
_root.mcLevel.txtLevel.text = "Fase " + com.manifesto.game.SciFighters.getInstance().getLevel();
com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
var _local3 = com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
for (var _local4 in _local3) {
if (_local3[_local4] == 32) {
mNextState = new com.manifesto.gamestate.FightState();
_root.play();
}
}
}
function render() {
}
var STATE_NAME = "PreFight";
}
Symbol 1283 MovieClip [__Packages.com.manifesto.gamestate.FightState] Frame 0
class com.manifesto.gamestate.FightState extends com.manifesto.engine.observer.MObserver implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, m_pBattleground, m_pFighterAway, m_pFighterHome, m_mcFighterAway, m_mcFighterHome, m_SlowEffect, m_mcShadowAway, m_mcShadowHome, m_pSpecialAway, m_pSpecialHome, m_mcSpecialAway, m_mcSpecialHome, m_pScenery, m_pBounderRight, m_pBounderLeft, m_fTimeRemaining, m_fTimeCountdown, m_bPause, m_bFightOver, m_bMoved, m_bEndFight, m_bHelpVisible, m_bEndAnimation, m_bWaitingToEnd, mTimeToEndFight, m_bPlayerLeft, mNextState;
function FightState () {
super();
mLastFrame = -1;
}
function onLoad() {
m_pBattleground = com.manifesto.game.SciFighters.getInstance().getBattleground();
m_pFighterAway = m_pBattleground.getAwayFighter();
m_pFighterHome = m_pBattleground.getHomeFighter();
m_mcFighterAway = _root.mcFight.mcFighterAway;
m_mcFighterHome = _root.mcFight.mcFighterHome;
m_SlowEffect = new com.manifesto.engine.effects.MSlowMotion();
m_SlowEffect.prepareMC(m_mcFighterHome);
m_SlowEffect.prepareMC(m_mcFighterAway);
m_mcFighterHome.onEnterFrame = mx.utils.Delegate.create(m_mcFighterHome, m_SlowEffect.update);
m_mcFighterAway.onEnterFrame = mx.utils.Delegate.create(m_mcFighterAway, m_SlowEffect.update);
m_mcShadowAway = _root.mcFight.attachMovie("mcShadow", "mcShadowAway", _root.mcFight.getNextHighestDepth());
m_mcShadowHome = _root.mcFight.attachMovie("mcShadow", "mcShadowHome", _root.mcFight.getNextHighestDepth());
m_pSpecialAway = m_pBattleground.getAwaySpecial();
m_pSpecialHome = m_pBattleground.getHomeSpecial();
m_mcSpecialAway = _root.mcFight.mcSpecialAway;
m_mcSpecialHome = _root.mcFight.mcSpecialHome;
loadFighter(m_pFighterAway, m_mcFighterAway, m_mcShadowAway, m_pSpecialAway, m_mcSpecialAway);
loadFighter(m_pFighterHome, m_mcFighterHome, m_mcShadowHome, m_pSpecialHome, m_mcSpecialHome);
m_pScenery = com.manifesto.gamestate.scenery.Scenery.create(m_pFighterHome.getID());
m_pBounderRight = new com.manifesto.engine.collision.MBounder(_root.mcBounderRight, -1, 0);
m_pBounderLeft = new com.manifesto.engine.collision.MBounder(_root.mcBounderLeft, 1, 0);
m_fTimeRemaining = com.manifesto.game.SciFighters.getInstance().getFightTime();
m_fTimeCountdown = com.manifesto.game.SciFighters.getInstance().getPreFightTime();
m_bPause = false;
m_bFightOver = false;
m_bMoved = false;
m_bEndFight = false;
m_bHelpVisible = false;
m_bEndAnimation = false;
m_bWaitingToEnd = false;
mTimeToEndFight = 3000;
m_bPlayerLeft = true;
m_mcFighterAway._xscale = m_mcFighterAway._xscale * -1;
m_pFighterAway.flip();
m_pBattleground.setAwayLeft(m_bPlayerLeft);
update(0);
}
function loadFighter(pFighter, mcFighter, mcShadow, pSpecial, mcSpecial) {
pFighter.addObserver(this);
pFighter.addObserver(com.manifesto.game.SoundPlayer.getInstance());
com.manifesto.game.SoundPlayer.getInstance().unLockFighter(pFighter);
mcFighter.attachMovie("mcCharacter" + pFighter.getID(), "mcCharacter", mcFighter.getNextHighestDepth());
var _local2 = 0;
while (mcFighter.mcCharacter["mcBody" + _local2] != null) {
pFighter.addBody(mcFighter.mcCharacter["mcBody" + _local2]);
_local2++;
}
com.manifesto.engine.collision.MCollisionSystem.getInstance().add(pFighter);
mcFighter.endAnimation = mx.utils.Delegate.create(this, function () {
this.endMove(pFighter, mcFighter);
});
mcSpecial.attachMovie("mcSpecial" + pFighter.getID(), "mcSpecial", mcSpecial.getNextHighestDepth());
pSpecial.addBody(mcSpecial.mcSpecial.mcBody);
com.manifesto.engine.collision.MCollisionSystem.getInstance().add(pSpecial);
pFighter.setPosition2(mcFighter._x, mcFighter._y);
mcShadow._x = mcFighter._x;
mcShadow._y = mcFighter._y;
}
function update(time) {
if (!m_mcFighterAway.mSlowOn) {
m_pBattleground.setPause(false);
}
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
m_fTimeCountdown = m_fTimeCountdown - time;
if (m_fTimeCountdown > 0) {
return(undefined);
}
m_fTimeRemaining = m_fTimeRemaining - time;
if (m_fTimeRemaining <= 0) {
m_fTimeRemaining = 0;
}
if (!m_bEndFight) {
if (((m_fTimeRemaining == 0) || (m_pFighterAway.getHealth() <= 0)) || (m_pFighterHome.getHealth() <= 0)) {
m_bEndFight = true;
m_pBattleground.endFight();
}
} else if (((!m_bEndAnimation) && (!m_pFighterAway.isJumping())) && (!m_pFighterHome.isJumping())) {
showEndAnimation();
com.manifesto.game.SciFighters.getInstance().endLevel();
} else if (m_bWaitingToEnd) {
mTimeToEndFight = mTimeToEndFight - time;
if (mTimeToEndFight <= 0) {
endFight();
}
}
if (m_bFightOver) {
var _local3 = com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
for (var _local4 in _local3) {
if ((_local3[_local4] == 32) && (mNextState == null)) {
if (m_pFighterAway.getHealth() > m_pFighterHome.getHealth()) {
if (com.manifesto.game.SciFighters.getInstance().createLevel()) {
mNextState = new com.manifesto.gamestate.CharacterTalkState(true, true);
_root.mcScore.play();
_root.play();
} else {
mNextState = new com.manifesto.gamestate.CharacterTalkState(false, true);
_root.mcScore.play();
_root.play();
_root.gameWin = true;
}
} else {
mNextState = new com.manifesto.gamestate.CharacterTalkState(false, false);
_root.mcScore.play();
_root.play();
_root.gameWin = false;
}
}
}
return(undefined);
}
com.manifesto.game.SciFighters.getInstance().update(time);
if (canFlip()) {
m_bPlayerLeft = !m_bPlayerLeft;
m_mcFighterAway._xscale = m_mcFighterAway._xscale * -1;
m_mcFighterHome._xscale = m_mcFighterHome._xscale * -1;
m_pFighterAway.flip();
m_pFighterHome.flip();
com.manifesto.game.SciFighters.getInstance().getBattleground().setAwayLeft(m_bPlayerLeft);
}
if (m_pSpecialAway.getDirection() > 0) {
if (m_mcSpecialAway._xscale > 0) {
m_mcSpecialAway._xscale = m_mcSpecialAway._xscale * -1;
}
} else if (m_mcSpecialAway._xscale < 0) {
m_mcSpecialAway._xscale = m_mcSpecialAway._xscale * -1;
}
if (m_pSpecialHome.getDirection() > 0) {
if (m_mcSpecialHome._xscale > 0) {
m_mcSpecialHome._xscale = m_mcSpecialHome._xscale * -1;
}
} else if (m_mcSpecialHome._xscale < 0) {
m_mcSpecialHome._xscale = m_mcSpecialHome._xscale * -1;
}
}
function canFlip() {
var _local2 = m_mcFighterAway.mcCharacter.mcBody0._width / 2;
var _local3 = m_mcFighterHome.mcCharacter.mcBody0._width / 2;
return((((m_pFighterAway.getPosition().x - _local2) >= (m_pFighterHome.getPosition().x + _local3)) && (m_bPlayerLeft)) || (((m_pFighterAway.getPosition().x + _local2) <= (m_pFighterHome.getPosition().x - _local3)) && (!m_bPlayerLeft)));
}
function render() {
if (m_bFightOver) {
return(undefined);
}
if ((!m_bMoved) && (com.manifesto.game.SciFighters.getInstance().getLevel() == 1)) {
if (!m_bHelpVisible) {
m_bHelpVisible = true;
_root.mcHelp.play();
}
} else if (m_bHelpVisible) {
m_bHelpVisible = false;
_root.mcHelp.gotoAndPlay(16);
}
var _local3 = Math.floor(m_fTimeCountdown / 1000);
if (m_fTimeCountdown < 0) {
_root.mcCountdown._visible = false;
}
_root.mcHud.txtTime.text = Math.floor(m_fTimeRemaining / 1000);
m_mcFighterAway._x = m_pFighterAway.getPosition().x;
m_mcFighterAway._y = m_pFighterAway.getPosition().y;
m_mcFighterHome._x = m_pFighterHome.getPosition().x;
m_mcFighterHome._y = m_pFighterHome.getPosition().y;
m_mcShadowAway._x = m_mcFighterAway._x;
m_mcShadowHome._x = m_mcFighterHome._x;
m_mcSpecialAway._x = m_pSpecialAway.getPosition().x;
m_mcSpecialAway._y = m_pSpecialAway.getPosition().y;
m_mcSpecialHome._x = m_pSpecialHome.getPosition().x;
m_mcSpecialHome._y = m_pSpecialHome.getPosition().y;
if (m_pSpecialAway.isValid()) {
m_mcSpecialAway._visible = true;
} else {
m_mcSpecialAway._visible = false;
}
if (m_pSpecialHome.isValid()) {
m_mcSpecialHome._visible = true;
} else {
m_mcSpecialHome._visible = false;
}
m_pScenery.render(m_mcFighterAway, m_mcFighterHome);
_root.mcHud.mcHealthAway.setProgress((100 * m_pFighterAway.getHealth()) / m_pFighterAway.getMaxHealth());
_root.mcHud.mcHealthHome.setProgress((100 * m_pFighterHome.getHealth()) / m_pFighterHome.getMaxHealth());
_root.mcHud.txtNameAway.text = getFighterName(m_pFighterAway.getName());
_root.mcHud.txtNameHome.text = getFighterName(m_pFighterHome.getName());
}
function getFighterName(fighter) {
var _local1 = "";
switch (fighter) {
case "Leonardo Da Vinci" :
_local1 = "Nomi";
break;
case "Santos Dumont" :
_local1 = "Carmi";
break;
case "Albert Einstein" :
_local1 = "Madison";
break;
case "Isaac Newton" :
_local1 = "Brenda";
}
return(_local1);
}
function showEndAnimation() {
if (m_bEndAnimation) {
return(undefined);
}
m_bEndAnimation = true;
var _local4;
var _local7;
var _local5;
var _local6;
if (m_pFighterAway.getHealth() > m_pFighterHome.getHealth()) {
_local4 = m_mcFighterAway;
_local7 = m_pFighterAway;
_local5 = m_mcFighterHome;
_local6 = m_pFighterHome;
} else {
_local4 = m_mcFighterHome;
_local7 = m_pFighterHome;
_local5 = m_mcFighterAway;
_local6 = m_pFighterAway;
}
_local4.mcCharacter.gotoAndPlay("win");
var _local3 = _root.mcFight.attachMovie("mcUltimate" + _local7.getID(), "mcUltimate", _root.mcFight.getNextHighestDepth() + 10);
_local4.swapDepths(_local3.getDepth() + 1);
_local3.endAnimation = mx.utils.Delegate.create(this, function () {
this.endMove();
});
if (_local6.getVelocity() < 0) {
}
_local3._x = _local5._x;
_local3._y = _local5._y;
}
function endFight() {
if (m_bFightOver) {
return(undefined);
}
m_bFightOver = true;
var _local6 = Math.round(m_pFighterAway.getHealth());
var _local4 = Math.floor(m_fTimeRemaining / 1000);
var _local3 = _local6 + _local4;
var _local5 = com.manifesto.game.SciFighters.getInstance().getFighterScore();
_local5.addScore(_local3);
_local5.addTime(Math.round((com.manifesto.game.SciFighters.getInstance().getFightTime() - m_fTimeRemaining) / 1000));
if (m_pFighterAway.getHealth() > m_pFighterHome.getHealth()) {
_root.mcScore.mcScore.txtResult.text = "You Win!";
} else {
_root.mcScore.mcScore.txtResult.text = "You Lose!";
}
_root.mcScore.mcScore.txtTime.text = _local4;
_root.mcScore.mcScore.txtHealth.text = _local6;
_root.mcScore.mcScore.txtScore.text = _local3;
_root.mcScore.play();
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pFighterAway);
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pFighterHome);
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pSpecialAway);
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pSpecialHome);
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pBounderLeft);
com.manifesto.engine.collision.MCollisionSystem.getInstance().remove(m_pBounderRight);
}
function subjectNotify(m) {
var _local3 = com.manifesto.game.Fighter(m);
var _local7;
var _local5;
var _local6;
var _local4;
if (_local3 == m_pFighterAway) {
_local5 = m_mcFighterAway;
_local6 = m_mcShadowAway;
_local7 = m_pSpecialAway;
_local4 = m_mcSpecialAway;
} else {
_local5 = m_mcFighterHome;
_local6 = m_mcShadowHome;
_local7 = m_pSpecialHome;
_local4 = m_mcSpecialHome;
}
var _local2 = "";
switch (_local3.getState()) {
case com.manifesto.game.FightState.STATE_STAND_STILL :
_local2 = "stand";
break;
case com.manifesto.game.FightState.STATE_MOVING :
_local2 = "move";
break;
case com.manifesto.game.FightState.STATE_JUMPING :
_local2 = "jump";
_local6.gotoAndPlay(2);
break;
case com.manifesto.game.FightState.STATE_BOWED :
_local2 = "bow";
break;
case com.manifesto.game.FightState.STATE_PUNCHING :
case com.manifesto.game.FightState.STATE_PUNCH_JUMP :
if (_local3 == m_pFighterAway) {
m_bMoved = true;
}
_local2 = "punch";
break;
case com.manifesto.game.FightState.STATE_KICKING :
case com.manifesto.game.FightState.STATE_KICK_JUMP :
if (_local3 == m_pFighterAway) {
m_bMoved = true;
}
_local2 = "kick";
break;
case com.manifesto.game.FightState.STATE_BLOCK :
_local2 = "block";
break;
case com.manifesto.game.FightState.STATE_BEATEN :
if (!m_pFighterAway.isJumping()) {
m_mcFighterAway.mSlowOn = true;
}
if (!m_pFighterHome.isJumping()) {
m_mcFighterHome.mSlowOn = true;
}
m_pBattleground.setPause(true);
_local2 = "beaten";
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE_JUMP :
if (_local3 == m_pFighterAway) {
m_bMoved = true;
}
_local2 = "special";
_local4.mcSpecial.gotoAndStop("s1");
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE2 :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE2_JUMP :
if (_local3 == m_pFighterAway) {
m_bMoved = true;
}
_local2 = "special2";
_local4.mcSpecial.gotoAndStop("s2");
break;
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE3 :
case com.manifesto.game.FightState.STATE_SPECIAL_MOVE3_JUMP :
if (_local3 == m_pFighterAway) {
m_bMoved = true;
}
_local2 = "special3";
_local4.mcSpecial.gotoAndStop("s3");
}
_local5.mcCharacter.gotoAndPlay(_local2);
}
function endMove(fighter, mc) {
if (m_bEndAnimation && (fighter == null)) {
m_bWaitingToEnd = true;
} else {
fighter.endMove();
com.manifesto.game.SoundPlayer.getInstance().unLockFighter(fighter);
}
}
var STATE_NAME = "Fight";
}
Symbol 1284 MovieClip [__Packages.com.manifesto.engine.effects.MSlowMotion] Frame 0
class com.manifesto.engine.effects.MSlowMotion
{
var mSlowOn, mEffectDuration, mFramesOfEffect, mcCharacter;
function MSlowMotion () {
mSlowOn = false;
mEffectDuration = 0;
mFramesOfEffect = 0;
}
function prepareMC(mc) {
mc.mSlowOn = mSlowOn;
mc.mEffectDuration = mEffectDuration;
mc.mFramesOfEffect = mFramesOfEffect;
}
function update() {
if (mSlowOn && (mFramesOfEffect < mEffectDuration)) {
mFramesOfEffect = mFramesOfEffect + 1;
if (mFramesOfEffect == 0) {
mcCharacter.stop();
}
} else if (mFramesOfEffect == mEffectDuration) {
mSlowOn = false;
mFramesOfEffect = -5;
mcCharacter.play();
}
}
function setSlowMotion(b) {
mSlowOn = b;
}
function isSlowOn() {
return(mSlowOn);
}
}
Symbol 1285 MovieClip [__Packages.com.manifesto.gamestate.scenery.Scenery] Frame 0
class com.manifesto.gamestate.scenery.Scenery
{
var mId, mMovieClip;
function Scenery (id) {
mId = id;
mMovieClip = _root.mcFight.mcScenery.attachMovie("mcScenery" + id, "mcScenery", 1);
mMovieClip._x = 0;
mMovieClip._y = 0;
}
static function create(id) {
var _local1;
_local1 = new com.manifesto.gamestate.scenery.Scenery(id);
return(_local1);
}
function render(mc1, mc2) {
var _local4 = 0;
_local4 = _local4 + scroll(mc1);
_local4 = _local4 + scroll(mc2);
_root.mcFight._x = _root.mcFight._x + (_local4 / 2);
var _local3 = _root.mcFight.mcScenery.getBounds(_root);
if (_local3.xMin > 0) {
_root.mcFight._x = _root.mcFight._x - (_local3.xMin - 0);
}
if (_local3.xMax < Stage.width) {
_root.mcFight._x = _root.mcFight._x + (Stage.width - _local3.xMax);
}
_local3 = _root.mcFight.getBounds(_root);
}
function scroll(mc) {
var _local2 = mc.mcCharacter.mcBody0.getBounds(_root);
var _local5 = {x:mc._x, y:mc._y};
mc._parent.localToGlobal(_local5);
var _local3 = 0;
if (LIMIT > _local2.xMin) {
_local3 = _local3 + (LIMIT - _local2.xMin);
} else if ((Stage.width - LIMIT) < _local2.xMax) {
_local3 = _local3 + ((Stage.width - LIMIT) - _local2.xMax);
}
return(_local3);
}
static var LIMIT = 150;
}
Symbol 1286 MovieClip [__Packages.com.manifesto.gamestate.CharacterTalkState] Frame 0
class com.manifesto.gamestate.CharacterTalkState implements com.manifesto.engine.gamestate.MGameState
{
var m_bNextLevel, m_bWin, mLastFrame, mFighter, mTalk, mNextState;
function CharacterTalkState (nextLevel, win) {
m_bNextLevel = nextLevel;
m_bWin = win;
mLastFrame = -1;
mFighter = com.manifesto.game.SciFighters.getInstance().getPlayerFighter();
var _local2 = 0;
if (nextLevel) {
_local2 = com.manifesto.game.SciFighters.getInstance().getLevel() - 2;
} else if (win) {
_local2 = com.manifesto.game.SciFighters.getInstance().getLevel() - 1;
} else {
_local2 = 3;
}
mTalk = com.manifesto.game.SciFighters.getInstance().getBattleground().getAwayFighter().getTalk()[_local2];
skip();
}
function onLoad() {
com.manifesto.game.SoundPlayer.getInstance().stopAllSounds();
_root.mcCharacterDetail.showFighter(mFighter, mTalk);
_root.btnCancel.onRelease = mx.utils.Delegate.create(this, btnCancel);
_root.btnCancel.enabled = true;
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
var _local3 = com.manifesto.engine.input.MInputSystem.getInstance().getEvents();
for (var _local4 in _local3) {
if (_local3[_local4] == 32) {
_root.btnCancel.enabled = false;
if (m_bNextLevel) {
mNextState = new com.manifesto.gamestate.PreFightState();
} else {
mNextState = new com.manifesto.gamestate.ScoreState();
}
_root.mcCharacterDetail.end();
_root.play();
_root.mcCharacterDetail.end();
}
}
}
function render() {
}
function skip() {
if (m_bNextLevel) {
mNextState = new com.manifesto.gamestate.PreFightState();
} else {
mNextState = new com.manifesto.gamestate.ScoreState();
}
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
function btnCancel() {
_root.btnCancel.enabled = false;
mNextState = new com.manifesto.gamestate.MainMenuState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
_root.mcCharacterDetail.end();
}
var STATE_NAME = "CharacterTalk";
}
Symbol 1287 MovieClip [__Packages.com.manifesto.gamestate.ScoreState] Frame 0
class com.manifesto.gamestate.ScoreState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mNextState;
function ScoreState () {
}
function MainMenuState() {
mLastFrame = -1;
}
function onLoad() {
var _local3 = com.manifesto.engine.ranking.ServerManager.getSingleton().getLastLoggedUser();
if (_local3 != null) {
_root.mcData.txtLogin.text = _local3;
}
_root.mcData.btnOk.onRelease = mx.utils.Delegate.create(this, btnOk);
_root.mcData.btnCancel.onRelease = mx.utils.Delegate.create(this, btnCancel);
_root.mcData.btnPlay.onRelease = mx.utils.Delegate.create(this, btnPlay);
_root.mcData.btnOk.enabled = true;
_root.mcData.btnCancel.enabled = true;
_root.mcData.btnPlay.enabled = true;
}
function update(time) {
var _local3 = com.manifesto.game.SciFighters.getInstance().getFighterScore().calculateTotalScore().toString();
_root.mcData.mcScore.txtScore.text = _local3;
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnOk() {
mNextState = new com.manifesto.gamestate.RankingState(_root.mcData.txtLogin.text, com.manifesto.game.SciFighters.getInstance().getFighterScore());
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnCancel() {
mNextState = new com.manifesto.gamestate.RankingState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnPlay() {
mNextState = new com.manifesto.gamestate.CharacterState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnMsgOk() {
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.mcMsg.gotoAndPlay("end");
_root.mcData.btnOk.enabled = true;
_root.mcData.btnCancel.enabled = true;
_root.mcData.btnPlay.enabled = true;
}
var STATE_NAME = "Score";
}
Symbol 1288 MovieClip [__Packages.com.manifesto.engine.ranking.ServerManager] Frame 0
class com.manifesto.engine.ranking.ServerManager
{
static var singleton;
var lastUser, request, onErrorListener, onSubmitListener, onRankingListener, onInviteListener;
function ServerManager () {
lastUser = null;
request = new com.manifesto.engine.ranking.Request();
request.onError = mx.utils.Delegate.create(this, onError);
request.defaultError = DEFAULT_ERROR;
}
static function getSingleton() {
if (singleton == null) {
singleton = new com.manifesto.engine.ranking.ServerManager();
}
return(singleton);
}
function getLastLoggedUser() {
return(lastUser);
}
function onError(msg) {
onErrorListener(msg);
}
function doSubmitScore(login, score, onSubmitFunc, onErrorFunc) {
lastUser = login;
onErrorListener = onErrorFunc;
onSubmitListener = onSubmitFunc;
var _local2 = ((((((((((((server + "no=ranking&operacao=cadastrarMsg") + "&login=") + login) + "&codigoProjeto=") + PROJECT_ID.toString()) + "&codigoAdvergame=") + ADVERGAME_ID) + "&rating=") + score.calculateTotalScore().toString()) + "&duracao=") + score.getTotalTime().toString()) + "&dummy=") + new Date().getTime();
request.load(_local2, mx.utils.Delegate.create(this, onSubmitScore));
}
function onSubmitScore(msg) {
onSubmitListener(msg);
}
function doRankingEntries(onRankingFunc, onErrorFunc) {
onErrorListener = onErrorFunc;
onRankingListener = onRankingFunc;
var _local2 = ((((((((server + "no=ranking&operacao=consultarMsg") + "&codigoProjeto=") + PROJECT_ID.toString()) + "&codigoAdvergame=") + ADVERGAME_ID) + "&tamanho=") + RANKING_SIZE) + "&dummy=") + new Date().getTime();
request.load(_local2, mx.utils.Delegate.create(this, onRankingEntries));
}
function onRankingEntries(msg) {
onRankingListener(msg);
}
function doInviteFriend(userName, userEmail, emailList, onInviteFunc, onErrorFunc) {
onErrorListener = onErrorFunc;
onInviteListener = onInviteFunc;
var _local2 = ((((((((((((((server + "no=email&operacao=enviar") + "&codigoProjeto=") + PROJECT_ID.toString()) + "&codigoAdvergame=") + ADVERGAME_ID) + "&codigoEmail=") + EMAIL_ID) + "&nome=") + userName) + "&email=") + userEmail) + "&emails=") + emailList) + "&dummy=") + new Date().getTime();
request.load(_local2, mx.utils.Delegate.create(this, onInviteFriend));
}
function onInviteFriend(msg) {
onInviteListener(msg);
}
static var server = "http://www.manifestogames.com.br/servlet/manifesto.as.servlet.ServletHandler?";
static var DEFAULT_ERROR = "Unable to reach server.";
static var PROJECT_ID = 6;
static var ADVERGAME_ID = 7;
static var EMAIL_ID = 2;
static var RANKING_SIZE = 10;
}
Symbol 1289 MovieClip [__Packages.com.manifesto.engine.ranking.Request] Frame 0
class com.manifesto.engine.ranking.Request
{
var mcCursor, onLoad;
function Request () {
System.useCodepage = true;
}
function load(query, response) {
if (mcCursor != null) {
mcCursor.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Mouse.hide();
mcCursor._visible = true;
}
onLoad = response;
var _local3 = new XML();
_local3.onLoad = onResponse;
_level0.RXMLContext_ = this;
_local3.load(query);
}
function onResponse(success) {
Mouse.show();
_level0.RXMLContext_.mcCursor._visible = false;
if (!success) {
_level0.RXMLContext_.onError(_level0.RXMLContext_.defaultError);
return(undefined);
}
var _local2 = new com.manifesto.engine.ranking.Mensagem();
_local2.setMensagem(this);
if (_local2.ID == "99999") {
_level0.RXMLContext_.onError(_local2.parametros[0]);
return(undefined);
}
_level0.RXMLContext_.onLoad(_local2);
}
}
Symbol 1290 MovieClip [__Packages.com.manifesto.engine.ranking.Mensagem] Frame 0
class com.manifesto.engine.ranking.Mensagem
{
var parametros, tamanhoTamanhoParametro, ID;
function Mensagem () {
parametros = new Array();
tamanhoTamanhoParametro = 0;
}
function addParametro(parametro) {
parametro = parametro.toString();
tamanhoTamanhoParametro = Math.max(tamanhoTamanhoParametro, parametro.length.toString().length);
parametros.push(parametro);
}
function setMensagem(msg) {
var _local5;
var _local6;
var _local4;
msg = new String(msg);
_local5 = msg.substring(0, 5);
msg = msg.substring(5);
ID = new Number(parseInt(msg.substring(0, 5), 10));
msg = msg.substring(5);
tamanhoTamanhoParametro = new Number(parseInt(msg.substring(0, 5), 10));
msg = msg.substring(5);
_local6 = new Number(parseInt(msg.substring(0, 5), 10));
msg = msg.substring(5);
parametros = new Array();
var _local3 = 0;
while (_local3 < _local6) {
_local4 = new Number(parseInt(msg.substring(0, tamanhoTamanhoParametro), 10));
msg = msg.substring(tamanhoTamanhoParametro);
_local5 = msg.substring(0, _local4);
msg = msg.substring(_local4);
parametros.push(_local5);
_local3++;
}
}
function toString() {
var _local4;
var _local3;
_local4 = new String();
_local4 = _local4 + VERSAO;
_local4 = _local4 + formatar(ID, 5);
_local4 = _local4 + formatar(tamanhoTamanhoParametro, 5);
_local4 = _local4 + formatar(parametros.length, 5);
var _local2 = 0;
while (_local2 < parametros.length) {
_local3 = new String(parametros[_local2]);
_local4 = _local4 + formatar(_local3.length, tamanhoTamanhoParametro);
_local4 = _local4 + _local3;
_local2++;
}
return(_local4);
}
function formatar(numero, n) {
var _local1;
_local1 = numero.toString();
while (_local1.length < n) {
_local1 = "0" + _local1;
}
return(_local1);
}
static var VERSAO = "v1.1v";
}
Symbol 1291 MovieClip [__Packages.com.manifesto.gamestate.RankingState] Frame 0
class com.manifesto.gamestate.RankingState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mLogin, mSubmitScore, mNextState;
function RankingState (login, score) {
mLastFrame = -1;
mLogin = login;
mSubmitScore = score;
}
function onLoad() {
_root.btnExit.onRelease = mx.utils.Delegate.create(this, btnExit);
_root.btnPlay.onRelease = mx.utils.Delegate.create(this, btnPlay);
_root.btnMenu.onRelease = mx.utils.Delegate.create(this, btnMenu);
_root.btnExit.enabled = false;
_root.btnPlay.enabled = false;
if (mSubmitScore != null) {
com.manifesto.engine.ranking.ServerManager.getSingleton().doSubmitScore(mLogin, mSubmitScore, mx.utils.Delegate.create(this, onSubmitComplete), mx.utils.Delegate.create(this, onSubmitError));
_root.mcMsg.gotoAndPlay("begin");
_root.mcMsg.mcMsg.gotoAndStop("begin");
_root.mcMsg.mcMsg.txtMsg = "Submiting score...";
} else {
com.manifesto.engine.ranking.ServerManager.getSingleton().doRankingEntries(mx.utils.Delegate.create(this, onEntriesComplete), mx.utils.Delegate.create(this, onEntriesError));
_root.mcMsg.gotoAndPlay("begin");
_root.mcMsg.mcMsg.gotoAndStop("begin");
_root.mcMsg.mcMsg.txtMsg = "Requesting ranking...";
}
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnExit() {
mNextState = new com.manifesto.gamestate.MainMenuState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnPlay() {
mNextState = new com.manifesto.gamestate.CharacterState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnMenu() {
mNextState = new com.manifesto.gamestate.MainMenuState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnMsgOkSubmit() {
_root.mcMsg.mcMsg.gotoAndPlay("up");
com.manifesto.engine.ranking.ServerManager.getSingleton().doRankingEntries(mx.utils.Delegate.create(this, onEntriesComplete), mx.utils.Delegate.create(this, onEntriesError));
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.mcMsg.mcMsg.txtMsg = "Requesting ranking...";
}
function btnMsgOkEntries() {
_root.mcMsg.gotoAndPlay("end");
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.btnExit.enabled = true;
_root.btnPlay.enabled = true;
}
function onSubmitComplete(msg) {
_root.mcRank.txtPlayerPosition = msg.parametros[0];
_root.mcRank.txtPlayerLogin = com.manifesto.engine.ranking.ServerManager.getSingleton().getLastLoggedUser();
_root.mcRank.txtPlayerScore = msg.parametros[1];
com.manifesto.engine.ranking.ServerManager.getSingleton().doRankingEntries(mx.utils.Delegate.create(this, onEntriesComplete), mx.utils.Delegate.create(this, onEntriesError));
_root.mcMsg.mcMsg.txtMsg = "Requesting ranking...";
}
function onSubmitError(msg) {
_root.mcMsg.mcMsg.gotoAndPlay("drop");
_root.mcMsg.mcMsg.txtMsg = msg;
_root.mcMsg.mcMsg.btnOk.onRelease = mx.utils.Delegate.create(this, btnMsgOkSubmit);
}
function onEntriesComplete(msg) {
var _local5 = new Number(msg.parametros[0]);
var _local2;
var _local3;
_local2 = 1;
_local3 = 0;
while (_local2 <= _local5) {
_root.mcRank["txtPosition" + _local2] = _local2;
_local3++;
_root.mcRank["txtLogin" + _local2] = msg.parametros[_local3];
_local3++;
_root.mcRank["txtScore" + _local2] = msg.parametros[_local3];
_local2++;
}
_root.mcMsg.gotoAndPlay("end");
_root.mcMsg.mcMsg.txtMsg = "Ranking downloaded.";
_root.btnExit.enabled = true;
_root.btnPlay.enabled = true;
}
function onEntriesError(msg) {
_root.mcMsg.mcMsg.gotoAndPlay("drop");
_root.mcMsg.mcMsg.txtMsg = msg;
_root.mcMsg.mcMsg.btnOk.onRelease = mx.utils.Delegate.create(this, btnMsgOkEntries);
}
var STATE_NAME = "Ranking";
}
Symbol 1292 MovieClip [__Packages.com.manifesto.gamestate.InviteState] Frame 0
class com.manifesto.gamestate.InviteState implements com.manifesto.engine.gamestate.MGameState
{
var mLastFrame, mNextState;
function InviteState () {
mLastFrame = -1;
}
function onLoad() {
_root.btnOk.onRelease = mx.utils.Delegate.create(this, btnOk);
_root.btnCancel.onRelease = mx.utils.Delegate.create(this, btnCancel);
_root.btnOk.enabled = true;
_root.btnCancel.enabled = true;
}
function update(time) {
if ((mNextState != null) && (mLastFrame == _root._currentframe)) {
com.manifesto.engine.gamestate.MGameStateMachine.getInstance().setState(mNextState);
}
mLastFrame = _root._currentframe;
}
function render() {
}
function btnOk() {
var _local3 = "";
var _local5 = 1;
while (_local5 <= 5) {
var _local4 = _root["txtEmail" + _local5].text;
if ((_local4 != "") && (_local4 != null)) {
if (_local3 != "") {
_local3 = _local3 + ",";
}
_local3 = _local3 + _local4;
}
_local5++;
}
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
var _local7 = ((_root.txtFromName.text == null) ? "Manifesto Games" : (_root.txtFromName.text));
var _local6 = ((_root.txtFromEmail.text == null) ? "teste@manifestogames.com.br" : (_root.txtFromEmail.text));
if ((((_local6 != "") && (_local7 != "")) && (_local3 != "")) && (_local3 != null)) {
com.manifesto.engine.ranking.ServerManager.getSingleton().doInviteFriend(_local7, _local6, _local3, mx.utils.Delegate.create(this, onInviteComplete), mx.utils.Delegate.create(this, onInviteError));
_root.mcMsg.gotoAndPlay("begin");
_root.mcMsg.mcMsg.gotoAndStop("begin");
_root.mcMsg.mcMsg.txtMsg = "Enviando...";
_root.btnOk.enabled = false;
_root.btnCancel.enabled = false;
}
}
function btnCancel() {
mNextState = new com.manifesto.gamestate.MainMenuState();
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.play();
}
function btnMsgOk() {
com.manifesto.game.SoundPlayer.getInstance().playSound("click", false);
_root.mcMsg.gotoAndPlay("end");
_root.btnOk.enabled = true;
_root.btnCancel.enabled = true;
}
function onInviteComplete(msg) {
var _local3 = 1;
while (_local3 <= 5) {
_root["txtEmail" + _local3].text = "";
_local3++;
}
_root.mcMsg.mcMsg.gotoAndPlay("drop");
_root.mcMsg.mcMsg.txtMsg = msg.parametros[0];
_root.mcMsg.mcMsg.btnOk.onRelease = mx.utils.Delegate.create(this, btnMsgOk);
}
function onInviteError(msg) {
_root.mcMsg.mcMsg.gotoAndPlay("drop");
_root.mcMsg.mcMsg.txtMsg = msg;
_root.mcMsg.mcMsg.btnOk.onRelease = mx.utils.Delegate.create(this, btnMsgOk);
}
var STATE_NAME = "Invite";
}
Instance of Symbol 36 MovieClip in Symbol 37 MovieClip Frame 1
onClipEvent (load) {
this._visible = _root.DEBUG;
}
Symbol 198 MovieClip Frame 20
gotoAndPlay (1);
Symbol 222 MovieClip [mcCharacter0] Frame 10
this.gotoAndPlay("stand");
Symbol 222 MovieClip [mcCharacter0] Frame 25
this.gotoAndPlay("move");
Symbol 222 MovieClip [mcCharacter0] Frame 38
stop();
_parent.endAnimation();
Symbol 222 MovieClip [mcCharacter0] Frame 51
stop();
_parent.endAnimation();
Symbol 222 MovieClip [mcCharacter0] Frame 64
stop();
_parent.endAnimation();
Symbol 222 MovieClip [mcCharacter0] Frame 79
stop();
_parent.endAnimation();
Symbol 222 MovieClip [mcCharacter0] Frame 94
stop();
Symbol 222 MovieClip [mcCharacter0] Frame 112
stop();
_parent.endAnimation();
Symbol 222 MovieClip [mcCharacter0] Frame 138
stop();
Symbol 457 MovieClip [mcCharacter3] Frame 10
this.gotoAndPlay("stand");
Symbol 457 MovieClip [mcCharacter3] Frame 25
this.gotoAndPlay("move");
Symbol 457 MovieClip [mcCharacter3] Frame 38
stop();
_parent.endAnimation();
Symbol 457 MovieClip [mcCharacter3] Frame 53
stop();
_parent.endAnimation();
Symbol 457 MovieClip [mcCharacter3] Frame 66
stop();
_parent.endAnimation();
Symbol 457 MovieClip [mcCharacter3] Frame 79
stop();
_parent.endAnimation();
Symbol 457 MovieClip [mcCharacter3] Frame 94
stop();
Symbol 457 MovieClip [mcCharacter3] Frame 113
stop();
_parent.endAnimation();
Symbol 457 MovieClip [mcCharacter3] Frame 156
stop();
Symbol 637 MovieClip [mcCharacter1] Frame 10
this.gotoAndPlay("stand");
Symbol 637 MovieClip [mcCharacter1] Frame 25
this.gotoAndPlay("move");
Symbol 637 MovieClip [mcCharacter1] Frame 40
stop();
_parent.endAnimation();
Symbol 637 MovieClip [mcCharacter1] Frame 53
stop();
_parent.endAnimation();
Symbol 637 MovieClip [mcCharacter1] Frame 66
stop();
_parent.endAnimation();
Symbol 637 MovieClip [mcCharacter1] Frame 79
stop();
_parent.endAnimation();
Symbol 637 MovieClip [mcCharacter1] Frame 94
stop();
Symbol 637 MovieClip [mcCharacter1] Frame 124
stop();
Symbol 637 MovieClip [mcCharacter1] Frame 142
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 10
this.gotoAndPlay("stand");
Symbol 848 MovieClip [mcCharacter2] Frame 25
this.gotoAndPlay("move");
Symbol 848 MovieClip [mcCharacter2] Frame 40
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 53
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 66
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 79
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 94
stop();
Symbol 848 MovieClip [mcCharacter2] Frame 113
stop();
_parent.endAnimation();
Symbol 848 MovieClip [mcCharacter2] Frame 152
stop();
Symbol 852 MovieClip [mcSpecial0] Frame 1
stop();
Symbol 855 MovieClip [mcShadow] Frame 1
stop();
Symbol 859 MovieClip [mcSpecial1] Frame 1
stop();
Symbol 862 MovieClip [mcSpecial3] Frame 1
stop();
Symbol 889 MovieClip [mcUltimate2] Frame 60
stop();
this.endAnimation();
Symbol 893 MovieClip [mcUltimate1] Frame 45
stop();
this.endAnimation();
Symbol 897 MovieClip [mcSpecial2] Frame 1
stop();
Symbol 925 MovieClip Frame 39
stop();
_parent.endAnimation();
Symbol 931 MovieClip Frame 1
stop();
this._visible = false;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (Math.random() < _parent.CHANCE) {
this._visible = true;
this.play();
}
}
};
Symbol 934 MovieClip Frame 1
stop();
this._visible = false;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (Math.random() < _parent.CHANCE) {
this._visible = true;
this.play();
}
}
};
Symbol 937 MovieClip Frame 1
stop();
this._visible = false;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (Math.random() < _parent.CHANCE) {
this._visible = true;
this.play();
}
}
};
Symbol 940 MovieClip Frame 1
stop();
this._visible = false;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (Math.random() < _parent.CHANCE) {
this._visible = true;
this.play();
}
}
};
Symbol 941 MovieClip [mcScenery0] Frame 1
stop();
var CHANCE = 0.1;
Symbol 946 MovieClip Frame 1
stop();
var frames = 0;
this.onEnterFrame = function () {
this.frames++;
if (this.frames >= 3) {
this._alpha = (50 + (Math.random() * _parent.FACTOR)) - (Math.random() * _parent.FACTOR);
this.frames = 0;
}
};
Symbol 949 MovieClip Frame 1
stop();
var frames = 0;
this.onEnterFrame = function () {
this.frames++;
if (this.frames >= 3) {
this._alpha = (50 + (Math.random() * _parent.FACTOR)) - (Math.random() * _parent.FACTOR);
this.frames = 0;
}
};
Symbol 952 MovieClip Frame 1
stop();
var frames = 0;
this.onEnterFrame = function () {
this.frames++;
if (this.frames >= 3) {
this._alpha = (50 + (Math.random() * _parent.FACTOR)) - (Math.random() * _parent.FACTOR);
this.frames = 0;
}
};
Symbol 955 MovieClip Frame 1
stop();
var frames = 0;
this.onEnterFrame = function () {
this.frames++;
if (this.frames >= 3) {
this._alpha = (50 + (Math.random() * _parent.FACTOR)) - (Math.random() * _parent.FACTOR);
this.frames = 0;
}
};
Symbol 956 MovieClip [mcScenery1] Frame 1
stop();
this.FACTOR = 30;
Symbol 961 MovieClip Frame 1
stop();
this._visible = true;
this.onEnterFrame = function () {
if (this._currentframe == 1) {
if (Math.random() < _parent.CHANCE) {
this._visible = false;
this.play();
}
}
};
Symbol 961 MovieClip Frame 10
this._visible = true;
Symbol 962 MovieClip [mcScenery2] Frame 1
stop();
this.CHANCE = 0.04;
Symbol 985 MovieClip Frame 1
stop();
var FPS = 30;
var secs = 0;
var deadline = (5 + (Math.random() * 10));
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this.secs = this.secs + (1 / FPS);
if (this.secs >= this.deadline) {
this.secs = 0;
this.deadline = 5 + (Math.random() * 10);
this.play();
}
}
};
Symbol 1027 Button
on (release) {
getURL ("http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com", "_blank");
}
Instance of Symbol 1039 MovieClip in Symbol 1040 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
this.useHandCursor = false;
}
on (release) {
}
Symbol 1057 MovieClip Frame 1
stop();
Symbol 1057 MovieClip Frame 2
stop();
Symbol 1057 MovieClip Frame 3
stop();
Symbol 1057 MovieClip Frame 4
stop();
Symbol 1057 MovieClip Frame 5
stop();
Instance of Symbol 1039 MovieClip in Symbol 1058 MovieClip Frame 1
onClipEvent (load) {
this._alpha = 0;
}
Symbol 1089 MovieClip Frame 1
function showFighter(fighter) {
var _local2 = 1;
if (fighter == "Albert Einstein") {
_local2 = 3;
} else if (fighter == "Isaac Newton") {
_local2 = 2;
} else if (fighter == "Santos Dumont") {
_local2 = 4;
}
this.gotoAndStop(_local2);
}
function end() {
}
stop();
stop();
Symbol 1089 MovieClip Frame 2
stop();
Symbol 1089 MovieClip Frame 3
stop();
Symbol 1089 MovieClip Frame 4
stop();
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 2
stop();
Symbol 1100 MovieClip Frame 3
stop();
Symbol 1100 MovieClip Frame 4
stop();
Instance of Symbol 1039 MovieClip in Symbol 1104 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1117 MovieClip Frame 1
stop();
Symbol 1117 MovieClip Frame 15
stop();
Symbol 1117 MovieClip Frame 30
stop();
Symbol 1126 MovieClip Frame 1
_parent.scaleAtual();
Symbol 1126 MovieClip Frame 8
_parent.scale();
Symbol 1126 MovieClip Frame 18
_parent.scaleAtual();
Symbol 1126 MovieClip Frame 28
_parent.scale();
Symbol 1126 MovieClip Frame 39
_parent.scaleAtual();
Symbol 1126 MovieClip Frame 53
_parent.scale();
Symbol 1126 MovieClip Frame 156
_parent.scaleAtual();
Symbol 1126 MovieClip Frame 157
stop();
Symbol 1132 MovieClip Frame 1
function setProgress(p) {
this.mcProgress._width = (this.mcLength._width * p) / 100;
}
stop();
Symbol 1154 MovieClip Frame 1
stop();
Symbol 1155 MovieClip Frame 1
stop();
Symbol 1155 MovieClip Frame 16
stop();
Symbol 1155 MovieClip Frame 31
stop();
_parent.play();
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 6
stop();