Frame 1
stop();
var percent;
onEnterFrame = function () {
percent = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 100);
loader.gotoAndStop(percent);
if (percent == 100) {
gotoAndPlay (3);
delete onEnterFrame;
}
};
Frame 4
stop();
Symbol 2 MovieClip [dmSoundService] Frame 1
#initclip 18
Object.registerClass("dmSoundService", CSoundService);
#endinitclip
Symbol 8 MovieClip Frame 1
stop();
Symbol 1306 MovieClip [__Packages.CSoundService] Frame 0
class CSoundService extends MovieClip
{
var m_sounds, m_soundsState, m_soundsNames, createEmptyMovieClip, onEnterFrame;
function CSoundService () {
super();
}
function realPlaySound(id, repeatCount) {
if (m_soundOff) {
return(undefined);
}
Sound(m_sounds[id]).start(0, repeatCount);
}
function processSounds() {
var _local2 = 0;
while (_local2 < m_sounds.length) {
if (m_soundsState[_local2] > 0) {
realPlaySound(_local2, m_soundsState[_local2]);
m_soundsState[_local2] = ST_PLAY;
break;
}
_local2++;
}
}
function init(soundNames) {
m_soundsNames = soundNames;
m_sounds = new Array(soundNames.length);
m_soundsState = new Array(soundNames.length);
var _local2 = 0;
while (_local2 < soundNames.length) {
var _local4 = createEmptyMovieClip("_contMovie" + _local2, 1000 + _local2);
var _local3 = new Sound(_local4);
_local3.attachSound(soundNames[_local2]);
m_soundsState[_local2] = ST_STOP;
_local3.sounID = _local2;
_local3.parent = m_instance;
_local3.onSoundComplete = function () {
this.parent.m_soundsState[this.sounID] = CSoundService.ST_STOP;
};
m_sounds[_local2] = _local3;
_local2++;
}
onEnterFrame = processSounds;
}
static function createSoundService(soundNames, soundsPlace, depthInSoundsPlace) {
m_instance = CSoundService(soundsPlace.attachMovie("dmSoundService", "__SoundServiceObject", depthInSoundsPlace));
m_instance.init(soundNames);
return(m_instance);
}
static function playLoopSound(soundID) {
if ((m_instance.m_loopSoundID >= 0) && (m_instance.m_loopSoundID != soundID)) {
stopSound(m_instance.m_loopSoundID);
}
m_instance.m_loopSoundID = soundID;
if (!soundIsPlay(m_instance.m_loopSoundID)) {
playCurLoopSound();
}
}
static function playCurLoopSound() {
playSound(m_instance.m_loopSoundID, 9999, true);
}
static function stopCurLoopSound() {
stopSound(m_instance.m_loopSoundID);
m_instance.m_loopSoundID = -1;
}
static function soundOff() {
var _local1 = 0;
while (_local1 < m_instance.m_sounds.length) {
stopSound(_local1);
_local1++;
}
m_instance.m_soundOff = true;
}
static function soundOn() {
m_instance.m_soundOff = false;
if (m_instance.m_loopSoundID >= 0) {
playCurLoopSound();
}
}
static function soundIsPlay(id) {
return(m_instance.m_soundsState[id] != ST_STOP);
}
static function playSound(id, repeatCount, ifSoundStop) {
if (m_instance.m_soundOff) {
return(undefined);
}
if (ifSoundStop && (soundIsPlay(id))) {
return(undefined);
}
m_instance.m_soundsState[id] = repeatCount;
}
static function stopSound(id) {
Sound(m_instance.m_sounds[id]).stop(m_instance.m_soundsNames[id]);
m_instance.m_soundsState[id] = ST_STOP;
}
static function getSoundAt(soundNum) {
return(m_instance.m_sounds[soundNum]);
}
static function soundIsOn() {
return(!m_instance.m_soundOff);
}
static function stopAllSound() {
var _local1 = 0;
while (_local1 < m_instance.m_sounds.length) {
stopSound(_local1);
_local1++;
}
}
var m_loopSoundID = -1;
static var m_instance = null;
var m_soundOff = false;
static var ST_PLAY = -1;
static var ST_STOP = 0;
static var PLAY_OPT_ALWAYS = 0;
static var PLAY_OPT_IFSTOP = 1;
static var PLAY_OPT_STOPANDPLAY = 2;
}
Symbol 1307 MovieClip [__Packages.state_bull] Frame 0
class state_bull extends MovieClip
{
static var STATE_1, STATE_2, STATE_3, STATE_4, bull_2, bull_3, bull_4;
function state_bull () {
super();
}
static function init(mcRider1, mcRider2, mcRider3, mcRider4, _Comp) {
mc_Rider_1 = mcRider1;
mc_Rider_2 = mcRider2;
mc_Rider_3 = mcRider3;
mc_Rider_4 = mcRider4;
STATE_1 = STATE_STOP;
STATE_2 = STATE_STOP;
STATE_3 = STATE_STOP;
STATE_4 = STATE_STOP;
Comp = _Comp;
}
static function set_new_point_to_RIDER(val) {
if (val == 1) {
mc_Rider_1.generate_target_point();
} else if (val == 2) {
mc_Rider_2.generate_target_point();
} else if (val == 3) {
mc_Rider_3.generate_target_point();
} else if (val == 4) {
mc_Rider_4.generate_target_point();
}
}
static function lie(mc, side) {
var _local4 = String(mc);
var _local1 = _local4.split(".");
_local1.pop();
var _local2 = String(_local1.pop());
var _local3 = _local2.split("_");
var _local5 = String(_local3.pop());
Comp.dead(Number(_local5), side);
}
static function run(mc) {
var _local5 = String(mc);
var _local2 = _local5.split(".");
_local2.pop();
var _local3 = String(_local2.pop());
var _local4 = _local3.split("_");
var _local1 = String(_local4.pop());
if (state_bull["STATE_" + _local1] == STATE_STOP) {
mc.stop();
} else if (state_bull["STATE_" + _local1] == STATE_FALL) {
if (_local1 == "1") {
mc_Rider_1.CRASH();
} else if (_local1 == "2") {
mc_Rider_2.CRASH();
} else if (_local1 == "3") {
mc_Rider_3.CRASH();
} else if (_local1 == "4") {
mc_Rider_4.CRASH();
}
} else {
state_bull["STATE_" + _local1] = STATE_RUN;
}
}
static function endBuck(mc, numBuck) {
var _local6 = String(mc);
var _local2 = _local6.split(".");
_local2.pop();
var _local4 = String(_local2.pop());
var _local5 = _local4.split("_");
var _local1 = String(_local5.pop());
state_bull["num_bucks_" + _local1]--;
if (state_bull["num_bucks_" + _local1] > 0) {
if (numBuck == 1) {
mc.gotoAndPlay("buck2");
} else if (numBuck == 2) {
mc.gotoAndPlay("buck1");
}
} else {
set_new_point_to_RIDER(Number(_local1));
mc.gotoAndPlay(1);
}
}
static function shit(mc) {
var _local4 = String(mc);
var _local1 = _local4.split(".");
_local1.pop();
var _local2 = String(_local1.pop());
var _local3 = _local2.split("_");
var _local5 = String(_local3.pop());
Comp.shit(Number(_local5));
}
static function check_boot(numCommand) {
if ((numCommand == 2) && (bull_2.ITEM_BOOT)) {
return(true);
}
if ((numCommand == 3) && (bull_3.ITEM_BOOT)) {
return(true);
}
if ((numCommand == 4) && (bull_4.ITEM_BOOT)) {
return(true);
}
return(false);
}
static function check_hat(numCommand) {
if ((numCommand == 2) && (bull_2.ITEM_HAT)) {
return(true);
}
if ((numCommand == 3) && (bull_3.ITEM_HAT)) {
return(true);
}
if ((numCommand == 4) && (bull_4.ITEM_HAT)) {
return(true);
}
return(false);
}
static function check_file(numCommand) {
if ((numCommand == 2) && (bull_2.ITEM_FILE)) {
return(true);
}
if ((numCommand == 3) && (bull_3.ITEM_FILE)) {
return(true);
}
if ((numCommand == 4) && (bull_4.ITEM_FILE)) {
return(true);
}
return(false);
}
static var mc_Rider_1 = null;
static var mc_Rider_2 = null;
static var mc_Rider_3 = null;
static var mc_Rider_4 = null;
static var num_bucks_1 = 0;
static var num_bucks_2 = 0;
static var num_bucks_3 = 0;
static var num_bucks_4 = 0;
static var STATE_STOP = 1;
static var STATE_RUN = 2;
static var STATE_BUCK = 3;
static var STATE_BUTT = 4;
static var STATE_FALL = 5;
static var Comp = null;
}
Symbol 1308 MovieClip [__Packages.Attribute] Frame 0
class Attribute extends MovieClip
{
function Attribute () {
super();
find_attribute();
}
function find_attribute() {
var _local3 = this;
var _local7 = String(_local3);
var _local4 = _local7.split(".");
var _local6 = String(_local4.pop());
if (_local6 == "atrPer_") {
var _local8 = new String();
var _local5 = 0;
while (_local5 < _local4.length) {
if (String(_local4[_local5]) == "COMMAND_1") {
if (User.ITEM_BOOTS) {
_local3.gotoAndStop(2 + User.ITEM_BOOT_STYLE);
} else {
_local3.gotoAndStop(1);
}
} else if (String(_local4[_local5]) == "COMMAND_2") {
if (state_bull.check_boot(2)) {
_local3.gotoAndStop(5);
} else {
_local3.gotoAndStop(2);
}
}
if (String(_local4[_local5]) == "COMMAND_3") {
if (state_bull.check_boot(3)) {
_local3.gotoAndStop(4);
} else {
_local3.gotoAndStop(2);
}
}
if (String(_local4[_local5]) == "COMMAND_4") {
if (state_bull.check_boot(4)) {
_local3.gotoAndStop(3);
} else {
_local3.gotoAndStop(2);
}
}
_local5++;
}
}
if (_local6 == "atrPer__") {
var _local8 = new String();
var _local5 = 0;
while (_local5 < _local4.length) {
if (String(_local4[_local5]) == "COMMAND_1") {
if (User.ITEM_HAT) {
_local3.gotoAndStop(2 + User.ITEM_HAT_STYLE);
} else {
_local3.gotoAndStop(1);
}
} else if (String(_local4[_local5]) == "COMMAND_2") {
if (state_bull.check_hat(2)) {
_local3.gotoAndStop(2 + Math.floor(1 + (Math.random() * 3)));
} else {
_local3.gotoAndStop(2);
}
}
if (String(_local4[_local5]) == "COMMAND_3") {
if (state_bull.check_hat(3)) {
_local3.gotoAndStop(2 + Math.floor(1 + (Math.random() * 3)));
} else {
_local3.gotoAndStop(2);
}
}
if (String(_local4[_local5]) == "COMMAND_4") {
if (state_bull.check_hat(4)) {
_local3.gotoAndStop(2 + Math.floor(1 + (Math.random() * 3)));
} else {
_local3.gotoAndStop(2);
}
}
_local5++;
}
}
if (_local6 == "rog") {
var _local8 = new String();
var _local5 = 0;
while (_local5 < _local4.length) {
if (String(_local4[_local5]) == "COMMAND_1") {
if (User.ITEM_FILE) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
} else if (String(_local4[_local5]) == "COMMAND_2") {
if (state_bull.check_file(2)) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
}
if (String(_local4[_local5]) == "COMMAND_3") {
if (state_bull.check_file(3)) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
}
if (String(_local4[_local5]) == "COMMAND_4") {
if (state_bull.check_file(4)) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
}
_local5++;
}
}
while (_local3 != _root) {
if (_local3.setAttrib(this)) {
break;
}
_local3 = _local3._parent;
}
}
var attribute = 0;
}
Symbol 1309 MovieClip [__Packages.Settings] Frame 0
class Settings extends MovieClip
{
function Settings () {
super();
}
static function loadSettingth() {
var _local2 = SharedObject.getLocal(sharedObjectName);
User.ITEM_HAT = _local2.data.ITEM_HAT;
User.ITEM_HAT_STYLE = _local2.data.ITEM_HAT_STYLE;
User.ITEM_BOOTS = _local2.data.ITEM_BOOTS;
User.ITEM_BOOT_STYLE = _local2.data.ITEM_BOOT_STYLE;
User.ITEM_FILE = _local2.data.ITEM_FILE;
User.ITEM_BULL_SHIT = _local2.data.ITEM_BULL_SHIT;
User.__set__NUM_BIG_BULL_BALLS(_local2.data.NUM_BIG_BULL_BALLS);
User.NUM_MONEY = _local2.data.NUM_MONEY;
var _local1 = 1;
while (_local1 <= 8) {
User.STATE_BULLS["BULL_" + _local1].STATE = _local2.data["BULL_" + _local1];
User.STATE_BULLS["BULL_" + _local1].RANK = _local2.data[("BULL_" + _local1) + "_RANK"];
_local1++;
}
}
static function saveSettingth() {
var _local2 = SharedObject.getLocal(sharedObjectName);
_local2.data.ITEM_HAT = User.ITEM_HAT;
_local2.data.ITEM_HAT_STYLE = User.ITEM_HAT_STYLE;
_local2.data.ITEM_BOOTS = User.ITEM_BOOTS;
_local2.data.ITEM_BOOT_STYLE = User.ITEM_BOOT_STYLE;
_local2.data.ITEM_FILE = User.ITEM_FILE;
_local2.data.ITEM_BULL_SHIT = User.ITEM_BULL_SHIT;
_local2.data.NUM_BIG_BULL_BALLS = User.NUM_BIG_BULL_BALLS;
_local2.data.NUM_MONEY = User.NUM_MONEY;
var _local1 = 1;
while (_local1 <= 8) {
_local2.data["BULL_" + _local1] = User.STATE_BULLS["BULL_" + _local1].STATE;
_local2.data[("BULL_" + _local1) + "_RANK"] = User.STATE_BULLS["BULL_" + _local1].RANK;
_local1++;
}
_local2.flush();
}
static function checkData() {
var _local1 = SharedObject.getLocal(sharedObjectName);
if (_local1.data.BULL_1_RANK == undefined) {
return(false);
}
return(true);
}
static function clear() {
var _local1 = SharedObject.getLocal(sharedObjectName);
_local1.clear();
}
static var BULL_PLAYING = 3;
static var BULL_OPEN = 2;
static var BULL_LOCKED = 1;
static var WIDTH_WINDOW = 800;
static var HEIGHT_WINDOW = 600;
static var COLOR_BLACK = 1;
static var COLOR_YELLOW = 2;
static var COLOR_BROWN = 3;
static var COLOR_GREY = 4;
static var TYPE_BULL_STRONG_BULL = 1;
static var TYPE_BULL_FAT_BULL = 2;
static var CRITICAL_ANGLE = {min:-60, max:60};
static var REGIME_MAX = 1;
static var REGIME_MEDIUM = 2;
static var REGIME_MIN = 3;
static var COST_HAT = 50;
static var COST_BOOT = 100;
static var COST_FILE = 150;
static var COST_SHIT = 200;
static var sharedObjectName = "Bulls/save";
static var SHOP = ["BOOT", "HAT", "SHIT", "FILE"];
static var RIDERS = {COWBOY:{NAME:"COWBOY", STRENGTH:20, WEIGHT:1}, CLOWN:{NAME:"CLOWN", STRENGTH:6, WEIGHT:1}, COWGIRL:{NAME:"COWGIRL", STRENGTH:6, WEIGHT:1}};
static var BULLS = {BULL_1:{NAME:"BULL_1", NICKNAME:"Bessie", TEXT:"The most gentle bull of all.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_FAT_BULL, COLOR:COLOR_BLACK, AGGRESSION:0, SPEED:11, DSPEED:0.2, COST:100, LAPS:1, ITEM_BOOT:true, ITEM_HAT:false, ITEM_FILE:false, ITEM_SHIT:false}, BULL_2:{NAME:"BULL_2", NICKNAME:"Butterfly", TEXT:"Would rather be in the meadow chasing\nbutterflies, than hurt a fly.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_FAT_BULL, COLOR:COLOR_YELLOW, AGGRESSION:0, SPEED:13, DSPEED:0.2, COST:100, LAPS:1, ITEM_BOOT:true, ITEM_HAT:false, ITEM_FILE:false, ITEM_SHIT:false}, BULL_3:{NAME:"BULL_3", NICKNAME:"Manasseh", TEXT:"If you fall off this bull, it will have you on the\nrun.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_FAT_BULL, COLOR:COLOR_BROWN, AGGRESSION:0.9, SPEED:13, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:false, ITEM_FILE:false, ITEM_SHIT:false}, BULL_4:{NAME:"BULL_4", NICKNAME:"Bulldoggie", TEXT:"Pants like a dog, bucks like a bull.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_FAT_BULL, COLOR:COLOR_GREY, AGGRESSION:2, SPEED:14, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:false, ITEM_FILE:false, ITEM_SHIT:false}, BULL_5:{NAME:"BULL_5", NICKNAME:"Taurus", TEXT:"This bull thundered down from the heavens to\ntrample everything in its path.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_STRONG_BULL, COLOR:COLOR_GREY, AGGRESSION:2, SPEED:15, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:false, ITEM_FILE:false, ITEM_SHIT:false}, BULL_6:{NAME:"BULL_6", NICKNAME:"Nightmare", TEXT:"Every cowboy fears riding this bull. Do you?", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_STRONG_BULL, COLOR:COLOR_BLACK, STRENGTH:4, AGGRESSION:2.5, SPEED:17, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:true, ITEM_FILE:false, ITEM_SHIT:false}, BULL_7:{NAME:"BULL_7", NICKNAME:"Goat", TEXT:"At birth a blind farmer mistook him for a goat.\nNo one makes that mistake anymore.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_STRONG_BULL, COLOR:COLOR_YELLOW, AGGRESSION:2.5, SPEED:18, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:true, ITEM_FILE:false, ITEM_SHIT:false}, BULL_8:{NAME:"BULL_8", NICKNAME:"Widowmaker", TEXT:"This bull is so famous, it's named after the\nlegendary horse.", RIDER_STRENGTH:10, TYPE_BULL:TYPE_BULL_STRONG_BULL, COLOR:COLOR_BROWN, AGGRESSION:2.5, SPEED:18, DSPEED:0.2, COST:100, LAPS:2, ITEM_BOOT:true, ITEM_HAT:true, ITEM_FILE:false, ITEM_SHIT:true}};
}
Symbol 1310 MovieClip [__Packages.User] Frame 0
class User extends MovieClip
{
function User () {
super();
}
static function set NUM_BIG_BULL_BALLS(_numBalls) {
NUM_BBB = _numBalls;
var _local1 = 3;
while (_local1 <= 8) {
if (((2 + NUM_BBB) - _local1) >= 0) {
if (STATE_BULLS["BULL_" + _local1].STATE == Settings.BULL_LOCKED) {
STATE_BULLS["BULL_" + _local1].STATE = Settings.BULL_OPEN;
}
}
_local1++;
}
//return(NUM_BIG_BULL_BALLS);
}
static function get NUM_BIG_BULL_BALLS() {
return(NUM_BBB);
}
static var ITEM_HAT = false;
static var ITEM_BOOTS = false;
static var ITEM_FILE = false;
static var ITEM_BULL_SHIT = false;
static var NUM_BBB = 0;
static var NUM_MONEY = 100;
static var RIDER = null;
static var BULL = null;
static var STATE_BULLS = {BULL_1:{STATE:Settings.BULL_OPEN, RANK:4}, BULL_2:{STATE:Settings.BULL_OPEN, RANK:4}, BULL_3:{STATE:Settings.BULL_LOCKED, RANK:4}, BULL_4:{STATE:Settings.BULL_LOCKED, RANK:4}, BULL_5:{STATE:Settings.BULL_LOCKED, RANK:4}, BULL_6:{STATE:Settings.BULL_LOCKED, RANK:4}, BULL_7:{STATE:Settings.BULL_LOCKED, RANK:4}, BULL_8:{STATE:Settings.BULL_LOCKED, RANK:4}};
}
Symbol 1311 MovieClip [__Packages.Competitors] Frame 0
class Competitors extends MovieClip
{
var FRONT, attachMovie, BACK, INTERFACE, HELP, onEnterFrame, _parent;
function Competitors () {
super();
FRONT = attachMovie("FRONT", "FRONT", 2);
BACK = attachMovie("BACK", "BACK", 1);
INTERFACE = attachMovie("USER_INTERFACE", "USER_INTERFACE", 3000);
FRONT.mc_1.mc_finish._x = INTERFACE.mc_player._x + 100;
setRegimeToPlayers();
state_bull.init(COMMAND_1.RIDER, COMMAND_2.RIDER, COMMAND_3.RIDER, COMMAND_4.RIDER, this);
Camera_.init(COMMAND_1, COMMAND_2, COMMAND_3, COMMAND_4, INTERFACE.status_distance, this, FRONT, BACK, User.BULL.LAPS);
Camera_.Refresh();
swapDepthsCommands();
INTERFACE.status_speed.gotoAndStop(1);
var path = this;
var _local3 = false;
for (var _local4 in User.STATE_BULLS) {
if (User.STATE_BULLS[_local4].RANK != 4) {
_local3 = true;
}
}
if (!_local3) {
HELP = attachMovie("WND_HELP", "HELP", 50000);
HELP.BTN_OK.onRelease = function () {
path.HELP.removeMovieClip();
path.timeBegin = getTimer();
path.onEnterFrame = path.startRace;
};
HELP.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
} else {
timeBegin = getTimer();
onEnterFrame = startRace;
}
INTERFACE.BTN_HELP.onRollOver = function () {
path.COMMAND_1.enable_butt = false;
};
INTERFACE.BTN_HELP.onRollOut = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_HELP.onDragOut = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_HELP.onDragOver = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_EXIT.onRollOver = function () {
path.COMMAND_1.enable_butt = false;
};
INTERFACE.BTN_EXIT.onRollOut = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_EXIT.onDragOut = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_EXIT.onDragOver = function () {
path.COMMAND_1.enable_butt = true;
};
INTERFACE.BTN_HELP.onRelease = function () {
delete path.onEnterFrame;
path.HELP = path.attachMovie("WND_HELP", "HELP", 50000);
Message.clear();
path.pause();
var _path = path;
path.HELP.BTN_OK.onRelease = function () {
this._parent.removeMovieClip();
_path.onEnterFrame = _path.Run;
_path.pause();
};
path.HELP.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path.HELP.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
};
INTERFACE.BTN_HELP.onPress = function () {
CSoundService.playSound(1, 1, true);
};
INTERFACE.BTN_EXIT.onRelease = function () {
delete path.onEnterFrame;
path.attachMovie("WND_MESSAGE_", "WND_MESSAGE", 50000);
Message.clear();
path.WND_MESSAGE.txtMessage.text = "Do you really want to exit?";
path.pause();
var _path = path;
path.WND_MESSAGE.BTN_OK.onRelease = function () {
this._parent.removeMovieClip();
User.ITEM_BOOTS = false;
User.ITEM_BULL_SHIT = false;
User.ITEM_FILE = false;
User.ITEM_HAT = false;
Settings.saveSettingth();
_path._parent._parent.setState(_path._parent._parent.STATE_CHOOSE_CHARACTER);
};
path.WND_MESSAGE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path.WND_MESSAGE.BTN_CANCEL.onRelease = function () {
_path.onEnterFrame = _path.Run;
_path.pause();
this._parent.removeMovieClip();
};
path.WND_MESSAGE.BTN_CANCEL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path.WND_MESSAGE.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
};
INTERFACE.BTN_EXIT.onPress = function () {
CSoundService.playSound(1, 1, true);
};
}
function pause() {
if (_pause) {
COMMAND_1.ENABLE_RUN = true;
COMMAND_1._bull.play();
COMMAND_2.ENABLE_RUN = true;
COMMAND_2._bull.play();
COMMAND_3.ENABLE_RUN = true;
COMMAND_3._bull.play();
COMMAND_4.ENABLE_RUN = true;
COMMAND_4._bull.play();
_pause = false;
} else {
COMMAND_1.ENABLE_RUN = false;
COMMAND_1._bull.stop();
COMMAND_2.ENABLE_RUN = false;
COMMAND_2._bull.stop();
COMMAND_3.ENABLE_RUN = false;
COMMAND_3._bull.stop();
COMMAND_4.ENABLE_RUN = false;
COMMAND_4._bull.stop();
_pause = true;
}
}
function Run() {
swapDepthsCommands();
Camera_.Refresh();
autobalanceSpeed();
autobalanceKilling();
INTERFACE.status_speed.gotoAndStop(1 + Math.floor(Math.abs(COMMAND_1.getBULLspeed()) * (100 / User.BULL.SPEED)));
if (!countdownToVictory) {
if (Camera_.getRank() == 1) {
INTERFACE.rank.text = "1st";
} else if (Camera_.getRank() == 2) {
INTERFACE.rank.text = "2nd";
} else if (Camera_.getRank() == 3) {
INTERFACE.rank.text = "3rd";
} else if (Camera_.getRank() == 4) {
INTERFACE.rank.text = "4th";
}
user_place = Camera_.getRank();
}
moveShit();
checkStrike();
if ((state_bull.STATE_1 == state_bull.STATE_FALL) && (!countdownToEnd)) {
timeBegin = getTimer();
countdownToEnd = checkOtherPlayers();
}
if (countdownToEnd) {
counterTime = getTimer() - timeBegin;
if (counterTime > 3000) {
_parent._parent.endRace();
}
}
if (countdownToVictory) {
counterTime = getTimer() - timeBegin;
if (counterTime > 1500) {
_parent._parent.finish(user_place, killed);
}
}
}
function moveShit() {
if (shit_1) {
shit_1._x = shit_1._x + (-(COMMAND_1.getDistance() - dist_1));
dist_1 = COMMAND_1.getDistance();
if (shit_1._x < 0) {
shit_1.removeMovieClip();
shit_1 = null;
}
}
if (shit_2) {
shit_2._x = shit_2._x + (-(COMMAND_1.getDistance() - dist_2));
dist_2 = COMMAND_1.getDistance();
if (shit_2._x < 0) {
shit_2.removeMovieClip();
shit_2 = null;
}
}
if (shit_3) {
shit_3._x = shit_3._x + (-(COMMAND_1.getDistance() - dist_3));
dist_3 = COMMAND_1.getDistance();
if (shit_3._x < 0) {
shit_3.removeMovieClip();
shit_3 = null;
}
}
if (shit_4) {
shit_4._x = shit_4._x + (-(COMMAND_1.getDistance() - dist_4));
dist_4 = COMMAND_1.getDistance();
if (shit_4._x < 0) {
shit_4.removeMovieClip();
shit_4 = null;
}
}
}
function copyObjectBull(obj) {
var _local2 = new Object();
for (var _local3 in obj) {
_local2[_local3] = obj[_local3];
}
return(_local2);
}
function setCharacteristic(bufferBull_1, bufferBull_2, bufferBull_3, bufferBull_4) {
if (User.ITEM_BOOTS) {
bufferBull_1.SPEED = bufferBull_1.SPEED + ((bufferBull_1.SPEED / 100) * 10);
}
if (User.ITEM_HAT) {
bufferBull_1.AGGRESSION = bufferBull_1.AGGRESSION - ((bufferBull_1.AGGRESSION / 100) * 25);
}
if (User.ITEM_FILE) {
bufferBull_1.AGGRESSION = bufferBull_1.AGGRESSION + ((bufferBull_1.AGGRESSION / 100) * 50);
}
if (User.ITEM_BULL_SHIT) {
com1_have_shit = true;
bufferBull_2.AGGRESSION = bufferBull_2.AGGRESSION + ((bufferBull_2.AGGRESSION / 100) * 25);
bufferBull_3.AGGRESSION = bufferBull_3.AGGRESSION + ((bufferBull_3.AGGRESSION / 100) * 25);
bufferBull_4.AGGRESSION = bufferBull_4.AGGRESSION + ((bufferBull_4.AGGRESSION / 100) * 25);
}
if (bufferBull_2.ITEM_BOOT) {
bufferBull_2.SPEED = bufferBull_2.SPEED + ((bufferBull_2.SPEED / 100) * 10);
}
if (bufferBull_2.ITEM_HAT) {
bufferBull_2.AGGRESSION = bufferBull_2.AGGRESSION - ((bufferBull_2.AGGRESSION / 100) * 25);
}
if (bufferBull_2.ITEM_FILE) {
bufferBull_2.AGGRESSION = bufferBull_2.AGGRESSION + ((bufferBull_2.AGGRESSION / 100) * 50);
}
if (bufferBull_2.ITEM_SHIT) {
com2_have_shit = true;
bufferBull_1.AGGRESSION = bufferBull_1.AGGRESSION + ((bufferBull_1.AGGRESSION / 100) * 25);
bufferBull_3.AGGRESSION = bufferBull_3.AGGRESSION + ((bufferBull_3.AGGRESSION / 100) * 25);
bufferBull_4.AGGRESSION = bufferBull_4.AGGRESSION + ((bufferBull_4.AGGRESSION / 100) * 25);
}
if (bufferBull_3.ITEM_BOOT) {
bufferBull_3.SPEED = bufferBull_3.SPEED + ((bufferBull_3.SPEED / 100) * 10);
}
if (bufferBull_3.ITEM_HAT) {
bufferBull_3.AGGRESSION = bufferBull_3.AGGRESSION - ((bufferBull_3.AGGRESSION / 100) * 25);
}
if (bufferBull_3.ITEM_FILE) {
bufferBull_3.AGGRESSION = bufferBull_3.AGGRESSION + ((bufferBull_3.AGGRESSION / 100) * 50);
}
if (bufferBull_3.ITEM_SHIT) {
com3_have_shit = true;
bufferBull_1.AGGRESSION = bufferBull_1.AGGRESSION + ((bufferBull_1.AGGRESSION / 100) * 25);
bufferBull_2.AGGRESSION = bufferBull_2.AGGRESSION + ((bufferBull_2.AGGRESSION / 100) * 25);
bufferBull_4.AGGRESSION = bufferBull_4.AGGRESSION + ((bufferBull_4.AGGRESSION / 100) * 25);
}
if (bufferBull_4.ITEM_BOOT) {
bufferBull_4.SPEED = bufferBull_4.SPEED + ((bufferBull_4.SPEED / 100) * 10);
}
if (bufferBull_4.ITEM_HAT) {
bufferBull_4.AGGRESSION = bufferBull_4.AGGRESSION - ((bufferBull_4.AGGRESSION / 100) * 25);
}
if (bufferBull_4.ITEM_FILE) {
bufferBull_4.AGGRESSION = bufferBull_4.AGGRESSION + ((bufferBull_4.AGGRESSION / 100) * 50);
}
if (bufferBull_4.ITEM_SHIT) {
com4_have_shit = true;
bufferBull_1.AGGRESSION = bufferBull_1.AGGRESSION + ((bufferBull_1.AGGRESSION / 100) * 25);
bufferBull_2.AGGRESSION = bufferBull_2.AGGRESSION + ((bufferBull_2.AGGRESSION / 100) * 25);
bufferBull_3.AGGRESSION = bufferBull_3.AGGRESSION + ((bufferBull_3.AGGRESSION / 100) * 25);
}
state_bull.bull_2 = bufferBull_2;
state_bull.bull_3 = bufferBull_3;
state_bull.bull_4 = bufferBull_4;
}
function setRegimeToPlayers() {
var _local5 = {x:INTERFACE.mc_player._x, y:INTERFACE.mc_player._y};
var _local4 = {x:INTERFACE.mc_player2._x, y:INTERFACE.mc_player2._y};
var _local3 = {x:INTERFACE.mc_player3._x, y:INTERFACE.mc_player3._y};
var _local2 = {x:INTERFACE.mc_player4._x, y:INTERFACE.mc_player4._y};
if (User.BULL.NAME == "BULL_1") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_2);
var _local7 = copyObjectBull(Settings.BULLS.BULL_3);
var _local6 = copyObjectBull(Settings.BULLS.BULL_4);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local5.x, _y:_local5.y});
COMMAND_1.init(User.RIDER, _local9, _local5, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local4.x, _y:_local4.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local4, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MIN);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local3.x, _y:_local3.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local3, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MIN);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MIN);
} else if (User.BULL.NAME == "BULL_2") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_1);
var _local7 = copyObjectBull(Settings.BULLS.BULL_3);
var _local6 = copyObjectBull(Settings.BULLS.BULL_4);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local4.x, _y:_local4.y});
COMMAND_1.init(User.RIDER, _local9, _local4, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local5.x, _y:_local5.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local5, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local3.x, _y:_local3.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local3, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MIN);
} else if (User.BULL.NAME == "BULL_3") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_1);
var _local7 = copyObjectBull(Settings.BULLS.BULL_2);
var _local6 = copyObjectBull(Settings.BULLS.BULL_4);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local3.x, _y:_local3.y});
COMMAND_1.init(User.RIDER, _local9, _local3, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local4.x, _y:_local4.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local4, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local5.x, _y:_local5.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local5, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MAX);
} else if (User.BULL.NAME == "BULL_4") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_2);
var _local7 = copyObjectBull(Settings.BULLS.BULL_3);
var _local6 = copyObjectBull(Settings.BULLS.BULL_5);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local2.x, _y:_local2.y});
COMMAND_1.init(User.RIDER, _local9, _local2, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local5.x, _y:_local5.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local5, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local4.x, _y:_local4.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local4, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MAX);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local3.x, _y:_local3.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local3, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MEDIUM);
} else if (User.BULL.NAME == "BULL_5") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_4);
var _local7 = copyObjectBull(Settings.BULLS.BULL_6);
var _local6 = copyObjectBull(Settings.BULLS.BULL_7);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local4.x, _y:_local4.y});
COMMAND_1.init(User.RIDER, _local9, _local4, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local5.x, _y:_local5.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local5, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local3.x, _y:_local3.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local3, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MAX);
} else if (User.BULL.NAME == "BULL_6") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_5);
var _local7 = copyObjectBull(Settings.BULLS.BULL_7);
var _local6 = copyObjectBull(Settings.BULLS.BULL_8);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local3.x, _y:_local3.y});
COMMAND_1.init(User.RIDER, _local9, _local3, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local5.x, _y:_local5.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local5, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local4.x, _y:_local4.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local4, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MAX);
} else if (User.BULL.NAME == "BULL_7") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_5);
var _local7 = copyObjectBull(Settings.BULLS.BULL_6);
var _local6 = copyObjectBull(Settings.BULLS.BULL_8);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local2.x, _y:_local2.y});
COMMAND_1.init(User.RIDER, _local9, _local2, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local5.x, _y:_local5.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local5, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local4.x, _y:_local4.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local4, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MEDIUM);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local3.x, _y:_local3.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local3, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MAX);
} else if (User.BULL.NAME == "BULL_8") {
var _local9 = copyObjectBull(User.BULL);
var _local8 = copyObjectBull(Settings.BULLS.BULL_5);
var _local7 = copyObjectBull(Settings.BULLS.BULL_6);
var _local6 = copyObjectBull(Settings.BULLS.BULL_8);
setCharacteristic(_local9, _local8, _local7, _local6);
COMMAND_1 = attachMovie("Command", "COMMAND_1", 4, {_x:_local5.x, _y:_local5.y});
COMMAND_1.init(User.RIDER, _local9, _local5, false, 1);
COMMAND_2 = attachMovie("Command", "COMMAND_2", 5, {_x:_local4.x, _y:_local4.y});
COMMAND_2.init(Settings.RIDERS.COWBOY, _local8, _local4, true, 2);
COMMAND_2.setREGIME(Settings.REGIME_MAX);
COMMAND_3 = attachMovie("Command", "COMMAND_3", 6, {_x:_local3.x, _y:_local3.y});
COMMAND_3.init(Settings.RIDERS.CLOWN, _local7, _local3, true, 3);
COMMAND_3.setREGIME(Settings.REGIME_MAX);
COMMAND_4 = attachMovie("Command", "COMMAND_4", 7, {_x:_local2.x, _y:_local2.y});
COMMAND_4.init(Settings.RIDERS.COWGIRL, _local6, _local2, true, 4);
COMMAND_4.setREGIME(Settings.REGIME_MAX);
}
}
function autobalanceKilling() {
if (((COMMAND_1.getDistance() > COMMAND_2.getDistance()) && (state_bull.STATE_1 == state_bull.STATE_FALL)) && (state_bull.STATE_2 != state_bull.STATE_FALL)) {
if (((((COMMAND_1.getDistance() - COMMAND_2.getDistance()) < 100) && (COMMAND_2._y < (COMMAND_1._y + 5))) && (COMMAND_2._y > (COMMAND_1._y - 5))) && (state_bull.STATE_2 != state_bull.STATE_BUTT)) {
state_bull.STATE_2 = state_bull.STATE_BUTT;
COMMAND_2.BULL.gotoAndPlay("butt");
} else if ((COMMAND_2._y - 5) > COMMAND_1._y) {
checkMoving(-5, COMMAND_2);
COMMAND_2.scaleCommand();
} else if ((COMMAND_2._y + 5) < COMMAND_1._y) {
checkMoving(5, COMMAND_2);
COMMAND_2.scaleCommand();
}
} else if (((COMMAND_1.getDistance() > COMMAND_3.getDistance()) && (state_bull.STATE_1 == state_bull.STATE_FALL)) && (state_bull.STATE_3 != state_bull.STATE_FALL)) {
if (((((COMMAND_1.getDistance() - COMMAND_3.getDistance()) < 100) && (COMMAND_3._y < (COMMAND_1._y + 5))) && (COMMAND_3._y > (COMMAND_1._y - 5))) && (state_bull.STATE_3 != state_bull.STATE_BUTT)) {
state_bull.STATE_3 = state_bull.STATE_BUTT;
COMMAND_3.BULL.gotoAndPlay("butt");
} else if ((COMMAND_3._y - 5) > COMMAND_1._y) {
checkMoving(-5, COMMAND_3);
COMMAND_3.scaleCommand();
} else if ((COMMAND_3._y + 5) < COMMAND_1._y) {
checkMoving(5, COMMAND_3);
COMMAND_3.scaleCommand();
}
} else if (((COMMAND_1.getDistance() > COMMAND_4.getDistance()) && (state_bull.STATE_1 == state_bull.STATE_FALL)) && (state_bull.STATE_4 != state_bull.STATE_FALL)) {
if (((((COMMAND_1.getDistance() - COMMAND_4.getDistance()) < 100) && (COMMAND_4._y < (COMMAND_1._y + 5))) && (COMMAND_4._y > (COMMAND_1._y - 5))) && (state_bull.STATE_4 != state_bull.STATE_BUTT)) {
state_bull.STATE_4 = state_bull.STATE_BUTT;
COMMAND_4.BULL.gotoAndPlay("butt");
} else if ((COMMAND_4._y - 5) > COMMAND_1._y) {
checkMoving(-5, COMMAND_4);
COMMAND_4.scaleCommand();
} else if ((COMMAND_4._y + 5) < COMMAND_1._y) {
checkMoving(5, COMMAND_4);
COMMAND_4.scaleCommand();
}
}
}
function autobalanceSpeed() {
if ((COMMAND_1.getDistance() - COMMAND_2.getDistance()) > 500) {
COMMAND_2.setREGIME(Settings.REGIME_MAX);
} else if ((COMMAND_1.getDistance() - COMMAND_2.getDistance()) < -500) {
COMMAND_2.setREGIME(Settings.REGIME_MIN);
}
if ((COMMAND_1.getDistance() - COMMAND_3.getDistance()) > 500) {
COMMAND_3.setREGIME(Settings.REGIME_MAX);
} else if ((COMMAND_1.getDistance() - COMMAND_3.getDistance()) < -500) {
COMMAND_3.setREGIME(Settings.REGIME_MIN);
}
if ((COMMAND_1.getDistance() - COMMAND_4.getDistance()) > 500) {
COMMAND_4.setREGIME(Settings.REGIME_MAX);
} else if ((COMMAND_1.getDistance() - COMMAND_4.getDistance()) < -500) {
COMMAND_4.setREGIME(Settings.REGIME_MIN);
}
}
function checkStrike() {
var _local3 = 1;
while (_local3 <= 4) {
if ((state_bull["STATE_" + _local3] == state_bull.STATE_FALL) && (!this["COMMAND_" + _local3]._kiling)) {
var _local2 = 1;
while (_local2 <= 4) {
if (_local3 != _local2) {
if ((state_bull["STATE_" + _local2] != state_bull.STATE_FALL) && (state_bull["STATE_" + _local2] == state_bull.STATE_BUTT)) {
var _local4 = {x:this["COMMAND_" + _local3]._body._x, y:this["COMMAND_" + _local3]._body._y};
this["COMMAND_" + _local3]._body.localToGlobal(_local4);
if ((((this["COMMAND_" + _local2]._y > (_local4.y - 40)) && (this["COMMAND_" + _local2]._y < (_local4.y + 40))) && ((this["COMMAND_" + _local2]._x + 20) > (_local4.x - 40))) && ((this["COMMAND_" + _local2]._x + 20) < (_local4.x + 40))) {
this["COMMAND_" + _local3]._body.mc.play();
this["COMMAND_" + _local3]._kiling = true;
var _local5 = "STATE_" + _local2;
if (_local5 == "STATE_1") {
User.__set__NUM_BIG_BULL_BALLS(User.__get__NUM_BIG_BULL_BALLS() + 1);
killed++;
Message.sendMessage("+1 BIG BULL BALLS");
}
}
}
}
_local2++;
}
}
_local3++;
}
}
function checkOtherPlayers() {
var _local4 = true;
var _local3 = new Array();
if (COMMAND_1.getDistance() > COMMAND_2.getDistance()) {
_local3.push(2);
}
if (COMMAND_1.getDistance() > COMMAND_3.getDistance()) {
_local3.push(3);
}
if (COMMAND_1.getDistance() > COMMAND_4.getDistance()) {
_local3.push(4);
}
var _local2 = 0;
while (_local2 < _local3.length) {
if (state_bull["STATE_" + _local3[_local2]] != state_bull.STATE_FALL) {
_local4 = false;
break;
}
_local2++;
}
return(_local4);
}
function startRace() {
counterTime = getTimer() - timeBegin;
if ((counterTime < 1000) && (!mcg_0)) {
if (com1_have_shit) {
COMMAND_1.BULL.gotoAndPlay("shit");
com1_have_shit = false;
}
if (com2_have_shit) {
COMMAND_2.BULL.gotoAndPlay("shit");
com2_have_shit = false;
}
if (com3_have_shit) {
COMMAND_3.BULL.gotoAndPlay("shit");
com3_have_shit = false;
}
if (com4_have_shit) {
COMMAND_4.BULL.gotoAndPlay("shit");
com4_have_shit = false;
}
CSoundService.playSound(8, 1, false);
Message.sendMessage("3");
mcg_0 = true;
}
if (((counterTime > 1000) && (counterTime < 2000)) && (!mcg_1)) {
CSoundService.playSound(8, 1, false);
Message.sendMessage("2");
mcg_1 = true;
} else if (((counterTime > 2000) && (counterTime < 3000)) && (!mcg_2)) {
CSoundService.playSound(8, 1, false);
Message.sendMessage("1");
mcg_2 = true;
} else if (((counterTime > 3000) && (counterTime < 4000)) && (!mcg_3)) {
CSoundService.playSound(8, 1, false);
Message.sendMessage("GO");
mcg_3 = true;
} else if (counterTime > 4000) {
COMMAND_1.ENABLE_RUN = true;
COMMAND_2.ENABLE_RUN = true;
COMMAND_3.ENABLE_RUN = true;
COMMAND_4.ENABLE_RUN = true;
beginTimer = getTimer();
onEnterFrame = Run;
}
}
function swapDepthsCommands() {
var _local2 = new Array();
if (COMMAND_1) {
_local2.push(COMMAND_1);
}
if (COMMAND_2) {
_local2.push(COMMAND_2);
}
if (COMMAND_3) {
_local2.push(COMMAND_3);
}
if (COMMAND_4) {
_local2.push(COMMAND_4);
}
var _local5 = _local2.length - 1;
while (_local5) {
var _local3 = 0;
while (_local3 < _local5) {
if (_local2[_local3]._y < _local2[_local3 + 1]._y) {
var _local4 = _local2[_local3];
_local2[_local3] = _local2[_local3 + 1];
_local2[_local3 + 1] = _local4;
}
_local3++;
}
_local5--;
}
_local5 = _local2.length - 1;
while (_local5) {
var _local3 = 0;
while (_local3 < _local5) {
if (_local2[_local3].getDepth() < _local2[_local3 + 1].getDepth()) {
_local2[_local3].swapDepths(_local2[_local3 + 1]);
}
_local3++;
}
_local5--;
}
}
function shit(player) {
var _local4 = this["COMMAND_" + player].BULL.mc_rider._x;
var _local3 = this["COMMAND_" + player].BULL.mc_rider._y;
this["shit_" + player] = attachMovie("shit", "shit_" + player, 1000 + player, {_x:this["COMMAND_" + player]._x + _local4, _y:this["COMMAND_" + player]._y + _local3});
this["COMMAND_" + player].BULL.gotoAndPlay(1);
this["COMMAND_" + player].BULL.bull._visible = false;
}
function dead(player, side) {
var _local6 = String(this["COMMAND_" + player].RIDER);
var _local5 = _local6.split(".");
var _local4 = String(_local5.pop());
_local6 = String(this["COMMAND_" + player].BULL);
_local5 = _local6.split(".");
var _local3 = String(_local5.pop());
var _local7 = this["COMMAND_" + player].BULL.mc_rider._x;
var _local8 = this["COMMAND_" + player].BULL.mc_rider._y;
var _local10 = this["COMMAND_" + player].BULL.mc_bull._x;
var _local9 = this["COMMAND_" + player].BULL.mc_bull._y;
this["COMMAND_" + player]._body = this["COMMAND_" + player].attachMovie(_local4 + "_FALL", _local4 + "_FALL", 10, {_x:_local7, _y:_local8});
this["COMMAND_" + player]._bull = this["COMMAND_" + player].attachMovie("BULL_FALL", "BULL_FALL", 11, {_x:_local10, _y:_local9});
if (_local3 == "STRONG_BULL") {
this["COMMAND_" + player]._bull.gotoAndStop(1);
} else if (_local3 == "FAT_BULL") {
this["COMMAND_" + player]._bull.gotoAndStop(2);
}
if (side == 1) {
this["COMMAND_" + player]._body.gotoAndStop(1);
} else if (side == -1) {
this["COMMAND_" + player]._body.gotoAndStop(2);
}
this["COMMAND_" + player]._body.mc.stop();
if (this["COMMAND_" + player]._x > Settings.WIDTH_WINDOW) {
this["COMMAND_" + player]._bull.removeMovieClip();
} else {
Camera_.moveBodyBull(player, this["COMMAND_" + player]._bull);
}
this["COMMAND_" + player].BULL._visible = false;
if ((player == 1) && (Camera_.getRank() == 4)) {
timeBegin = getTimer();
countdownToEnd = true;
}
}
function FINISH(mcCommand, place) {
if (mcCommand == COMMAND_1) {
if (!countdownToVictory) {
timeBegin = getTimer();
Message.sendMessage("FINISH");
countdownToVictory = true;
}
} else if (mcCommand == COMMAND_2) {
} else if (mcCommand == COMMAND_3) {
} else if (mcCommand == COMMAND_4) {
}
}
function checkMoving(val, mc) {
var _local4;
mc._y = mc._y + val;
if (mc == COMMAND_1) {
if (mc.BULL.down.hitTest(COMMAND_2.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_3.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_4.BULL.down)) {
mc._y = mc._y - val;
}
} else if (mc == COMMAND_2) {
if (mc.BULL.down.hitTest(COMMAND_1.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_3.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_4.BULL.down)) {
mc._y = mc._y - val;
}
} else if (mc == COMMAND_3) {
if (mc.BULL.down.hitTest(COMMAND_1.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_2.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_4.BULL.down)) {
mc._y = mc._y - val;
}
} else if (mc == COMMAND_4) {
if (mc.BULL.down.hitTest(COMMAND_1.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_2.BULL.down)) {
mc._y = mc._y - val;
}
if (mc.BULL.down.hitTest(COMMAND_3.BULL.down)) {
mc._y = mc._y - val;
}
}
}
function setLaps(lap) {
trace(lap);
}
var COMMAND_1 = null;
var COMMAND_2 = null;
var COMMAND_3 = null;
var COMMAND_4 = null;
var timeBegin = 0;
var counterTime = 0;
var countdownToEnd = false;
var countdownToVictory = false;
var user_place = 4;
var killed = 0;
var mcg_0 = false;
var mcg_1 = false;
var mcg_2 = false;
var mcg_3 = false;
var shit_1 = null;
var shit_2 = null;
var shit_3 = null;
var shit_4 = null;
var dist_1 = 0;
var dist_2 = 0;
var dist_3 = 0;
var dist_4 = 0;
var com1_have_shit = false;
var com2_have_shit = false;
var com3_have_shit = false;
var com4_have_shit = false;
var _pause = false;
var beginTimer = 0;
var TimeCounter = 0;
var counter = 0;
}
Symbol 1312 MovieClip [__Packages.Camera_] Frame 0
class Camera_ extends MovieClip
{
static var COM_1, COM_2, COM_3, COM_4, pointPl2, pointPl3, pointPl4, mc_Distance, mc_Competitors, front_mc1, front_mc2, front_mc3, back_mc1, back_mc2, num_laps, _body_Bull_1, _body_Bull_2, _body_Bull_3, _body_Bull_4;
function Camera_ () {
super();
}
static function init(userCommand, command2, command3, command4, statusDistance, Competitors, FRONT, BACK, _numLaps) {
COM_1 = userCommand;
COM_2 = command2;
COM_3 = command3;
COM_4 = command4;
pointPl2 = COM_2._x;
pointPl3 = COM_3._x;
pointPl4 = COM_4._x;
mc_Distance = statusDistance;
initStatusDistance();
mc_Competitors = Competitors;
front_mc1 = FRONT.mc_1;
front_mc2 = FRONT.mc_2;
front_mc3 = FRONT.mc_3;
back_mc1 = BACK.mc_1;
back_mc2 = BACK.mc_2;
num_laps = _numLaps;
}
static function Refresh() {
levelX_1 = COM_1.getDistance();
levelX_2 = COM_2.getDistance();
levelX_3 = COM_3.getDistance();
levelX_4 = COM_4.getDistance();
var _local1 = new Array();
_local1.push(levelX_1);
_local1.push(levelX_2);
_local1.push(levelX_3);
_local1.push(levelX_4);
var _local4 = _local1.length - 1;
while (_local4) {
var _local3 = 0;
while (_local3 < _local4) {
if (_local1[_local3] < _local1[_local3 + 1]) {
var _local2 = _local1[_local3];
_local1[_local3] = _local1[_local3 + 1];
_local1[_local3 + 1] = _local2;
}
_local3++;
}
_local4--;
}
var _local3 = 0;
while (_local3 < _local1.length) {
if (_local1[_local3] == levelX_1) {
rank = _local3 + 1;
}
_local3++;
}
if ((levelX_1 > front_mc1._width) && (levelX_1 < ((num_laps * (((front_mc1._width + front_mc2._width) + front_mc3._width) - 135)) - front_mc1._width))) {
front_mc1.mc_finish._visible = false;
} else {
front_mc1.mc_finish._visible = true;
}
var _local5 = 0;
if (num_laps == 2) {
_local5 = 50;
}
if ((levelX_1 / (num_laps * (((front_mc1._width + front_mc2._width) + front_mc3._width) - _local5))) >= 1) {
mc_Competitors.FINISH(COM_1, rank);
} else {
mc_Distance.bull_1._x = mc_Distance._width * (levelX_1 / (num_laps * ((front_mc1._width + front_mc2._width) + front_mc3._width)));
}
if ((levelX_2 / (num_laps * (((front_mc1._width + front_mc2._width) + front_mc3._width) - _local5))) >= 1) {
mc_Competitors.FINISH(COM_2);
} else {
mc_Distance.bull_2._x = mc_Distance._width * (levelX_2 / (num_laps * ((front_mc1._width + front_mc2._width) + front_mc3._width)));
}
if ((levelX_3 / (num_laps * (((front_mc1._width + front_mc2._width) + front_mc3._width) - _local5))) >= 1) {
mc_Competitors.FINISH(COM_3);
} else {
mc_Distance.bull_3._x = mc_Distance._width * (levelX_3 / (num_laps * ((front_mc1._width + front_mc2._width) + front_mc3._width)));
}
if ((levelX_4 / (num_laps * (((front_mc1._width + front_mc2._width) + front_mc3._width) - _local5))) >= 1) {
mc_Competitors.FINISH(COM_4);
} else {
mc_Distance.bull_4._x = mc_Distance._width * (levelX_4 / (num_laps * ((front_mc1._width + front_mc2._width) + front_mc3._width)));
}
Front(levelX_1);
Back(levelX_1);
setPositionToAnotherPlayers();
if (_body_Bull_1) {
_body_Bull_1._x = _body_Bull_1._x + 15;
if (_body_Bull_1._x > 800) {
_body_Bull_1.removeMovieClip();
}
}
if (_body_Bull_2) {
_body_Bull_2._x = _body_Bull_2._x + 15;
}
if (_body_Bull_3) {
_body_Bull_3._x = _body_Bull_3._x + 15;
}
if (_body_Bull_4) {
_body_Bull_4._x = _body_Bull_4._x + 15;
}
}
static function moveBodyBull(player, _mcBull) {
if (player == 1) {
_body_Bull_1 = _mcBull;
} else if (player == 2) {
_body_Bull_2 = _mcBull;
} else if (player == 3) {
_body_Bull_3 = _mcBull;
} else if (player == 4) {
_body_Bull_4 = _mcBull;
}
}
static function getRank() {
return(rank);
}
static function setPositionToAnotherPlayers() {
COM_2._x = (pointPl2 + levelX_2) - levelX_1;
COM_3._x = (pointPl3 + levelX_3) - levelX_1;
COM_4._x = (pointPl4 + levelX_4) - levelX_1;
}
static function Front(levelX) {
levelX = Math.round(levelX % (((front_mc1._width + front_mc2._width) + front_mc3._width) - 135)) + 45;
if ((front_mc1.getDepth() > front_mc2.getDepth()) && (front_mc1._x < front_mc2._x)) {
front_mc1.swapDepths(front_mc2);
}
front_mc2._x = ((-levelX) + front_mc1._width) - 45;
if ((front_mc2.getDepth() > front_mc3.getDepth()) && (front_mc2._x < front_mc3._x)) {
front_mc2.swapDepths(front_mc3);
}
front_mc3._x = (front_mc2._x + front_mc2._width) - 45;
if (levelX > front_mc1._width) {
if ((front_mc1.getDepth() < front_mc3.getDepth()) && (front_mc1._x > front_mc3._x)) {
front_mc1.swapDepths(front_mc3);
}
front_mc1._x = (front_mc3._x + front_mc3._width) - 45;
} else {
front_mc1._x = -levelX;
}
}
static function Back(levelX) {
levelX = Math.round((levelX / back_scale) % (back_mc1._width + back_mc2._width));
back_mc2._x = ((-levelX) + back_mc1._width) - 3;
if (levelX > back_mc1._width) {
back_mc1._x = (back_mc2._x + back_mc2._width) - 3;
} else {
back_mc1._x = -levelX;
}
}
static function initStatusDistance() {
mc_Distance.bull_1._y = 0;
mc_Distance.bull_1._x = 0;
mc_Distance.bull_1.gotoAndStop(2);
mc_Distance.bull_2._y = 0;
mc_Distance.bull_2._x = 0;
mc_Distance.bull_2.gotoAndStop(1);
mc_Distance.bull_3._y = 0;
mc_Distance.bull_3._x = 0;
mc_Distance.bull_3.gotoAndStop(1);
mc_Distance.bull_4._y = 0;
mc_Distance.bull_4._x = 0;
mc_Distance.bull_4.gotoAndStop(1);
}
static var back_scale = 4;
static var levelX_1 = 0;
static var levelX_2 = 0;
static var levelX_3 = 0;
static var levelX_4 = 0;
static var rank = 4;
}
Symbol 1313 MovieClip [__Packages.Message] Frame 0
class Message extends MovieClip
{
static var mc_message;
function Message () {
super();
}
static function sendMessage(str) {
_root.mc_message.removeMovieClip();
mc_message = _root.attachMovie("mc_message", "mc_message", 1000, {_x:Settings.WIDTH_WINDOW / 2, _y:(Settings.HEIGHT_WINDOW / 2) - 80});
mc_message.msg.caption.text = str;
}
static function clear() {
_root.mc_message.removeMovieClip();
}
}
Symbol 1314 MovieClip [__Packages.Command] Frame 0
class Command extends MovieClip
{
var bull_color, ID, attachMovie, onEnterFrame, _y, _parent, _xscale, _yscale, __get__ENABLE_RUN;
function Command () {
super();
}
function init(Rider, Bull, _point, autobalance, _id) {
AUTOBALANCE = autobalance;
bull_color = Bull.COLOR;
ID = _id;
if (Bull.TYPE_BULL == Settings.TYPE_BULL_STRONG_BULL) {
BULL = attachMovie("STRONG_BULL", "STRONG_BULL", 2);
} else if (Bull.TYPE_BULL == Settings.TYPE_BULL_FAT_BULL) {
BULL = attachMovie("FAT_BULL", "FAT_BULL", 2);
}
if (AUTOBALANCE) {
BULL.sep._visible = false;
}
RIDER = attachMovie(Rider.NAME, Rider.NAME, 3);
BACK_RIDER = attachMovie(Rider.NAME + "_BACK", Rider.NAME + "_BACK", 1);
RIDER.init(Bull.RIDER_STRENGTH, Rider.WEIGHT, _point, BACK_RIDER, ID, AUTOBALANCE);
BULL.init(Bull.AGGRESSION, Bull.SPEED, Bull.DSPEED, _point, ID);
move_range.min = ((Settings.HEIGHT_WINDOW - height_bull) - height_road) + width_bull;
move_range.max = Settings.HEIGHT_WINDOW - height_bull;
scaleCommand();
onEnterFrame = Run;
}
function Run() {
if (_enable) {
if (!AUTOBALANCE) {
if (((((_root._ymouse + 5) < (_y - 40)) && (BULL.realSpeed)) && (state_bull["STATE_" + ID] != state_bull.STATE_BUCK)) && (_y > move_range.min)) {
_parent.checkMoving(-5, this);
BULL.setCenter(_y);
scaleCommand();
} else if (((((_root._ymouse - 5) > (_y + 40)) && (BULL.realSpeed)) && (state_bull["STATE_" + ID] != state_bull.STATE_BUCK)) && (_y < move_range.max)) {
_parent.checkMoving(5, this);
BULL.setCenter(_y);
scaleCommand();
}
}
RIDER._x = BULL.bull._x;
RIDER._y = BULL.bull._y;
RIDER._x = BULL.bull._x;
BACK_RIDER._y = RIDER._y;
BACK_RIDER._x = RIDER._x;
distance = distance + BULL.speed;
if (((state_bull["STATE_" + ID] == state_bull.STATE_RUN) || (state_bull["STATE_" + ID] == state_bull.STATE_STOP)) && (state_bull["STATE_" + ID] != state_bull.STATE_BUCK)) {
if (!AUTOBALANCE) {
RIDER.riderRotation(RIDER.riderStrength + RIDER.riderGravity);
} else {
RIDER.riderRotation(RIDER.auto_alignmentStrength);
}
} else if (state_bull["STATE_" + ID] == state_bull.STATE_BUCK) {
RIDER.riderRotation(BULL.bullStrength);
}
}
}
function onMouseDown() {
if (((((enable_butt && (state_bull["STATE_" + ID] != state_bull.STATE_BUCK)) && (state_bull["STATE_" + ID] != state_bull.STATE_BUTT)) && (!AUTOBALANCE)) && (_enable)) && (state_bull["STATE_" + ID] != state_bull.STATE_STOP)) {
state_bull["STATE_" + ID] = state_bull.STATE_BUTT;
BULL.gotoAndPlay("butt");
}
}
function scaleCommand() {
var _local4 = (100 / (move_range.max - move_range.min)) * (_y - move_range.min);
var _local3 = _local4 * ((scale_percent.max - scale_percent.min) / 100);
var _local2 = scale_percent.min + _local3;
_xscale = _local2;
_yscale = _local2;
}
function getBULLspeed() {
return(BULL.realSpeed);
}
function getRIDERstrength() {
return(RIDER.riderStrength);
}
function getDistance() {
return(distance);
}
function setAttrib(mc) {
var _local5 = String(mc);
var _local4 = _local5.split(".");
var _local3 = String(_local4.pop());
if (_local3 == "atrBull") {
mc.gotoAndStop(bull_color);
return(true);
}
if (_local3 == "atrPer") {
if (AUTOBALANCE) {
mc.gotoAndStop(2);
} else {
mc.gotoAndStop(1);
}
return(true);
}
return(false);
}
function set ENABLE_RUN(val) {
_enable = val;
RIDER.ENABLE_RUN = val;
BULL.ENABLE_RUN = val;
var _local3 = String(this);
var _local4 = _local3.split(".");
var _local7 = String(_local4.pop());
var _local5 = _local3.split("_");
var _local6 = String(_local5.pop());
if (!val) {
BULL.stop();
BULL.dust1.stop();
BULL.dust2.stop();
BULL.dust3.stop();
BULL.dust4.stop();
} else {
BULL.play();
BULL.dust1.play();
BULL.dust2.play();
BULL.dust3.play();
BULL.dust4.play();
}
//return(__get__ENABLE_RUN());
}
function setREGIME(valReg) {
BULL.setREGIME(valReg);
}
function CRASH(mc, valFall) {
if (ID == 1) {
User.ITEM_BOOTS = false;
User.ITEM_BULL_SHIT = false;
User.ITEM_HAT = false;
User.ITEM_FILE = false;
}
delete onEnterFrame;
RIDER._visible = false;
BACK_RIDER._visible = false;
ENABLE_RUN = (false);
var _local5 = String(mc);
var _local4 = _local5.split(".");
var _local3 = String(_local4.pop());
var _local2 = new String();
if (valFall == 1) {
_local2 = _local3 + "_forward_fall";
} else if (valFall == -1) {
_local2 = _local3 + "_back_fall";
}
state_bull["STATE_" + ID] = state_bull.STATE_FALL;
_enable = false;
BULL.gotoAndPlay(_local2);
}
var AUTOBALANCE = false;
var BULL = null;
var RIDER = null;
var BACK_RIDER = null;
var _body = null;
var _bull = null;
var _kiling = false;
var distance = 0;
var move_range = {min:0, max:0};
var scale_percent = {min:80, max:100};
var height_road = 300;
var height_bull = 105;
var width_bull = 30;
var _enable = false;
var up = false;
var down = false;
var enable_butt = true;
}
Symbol 1315 MovieClip [__Packages.Rider] Frame 0
class Rider extends MovieClip
{
var ID, coef, onEnterFrame, AI_point, target_point, current_point, head, leg, hand, _rotation, _parent;
function Rider () {
super();
}
function init(strength, weight, _point, mc_back, _id, _autobalance) {
AUTOBALANCE = _autobalance;
STRENGTH = strength;
WEIGHT = weight;
DISTANCE = _point.x;
ID = _id;
copy(_point);
back = mc_back;
coef = displacement;
onEnterFrame = Run;
AI_point = _point.x;
target_point = _point.x;
current_point = _point.x;
head._rotation = 0;
leg._rotation = 0;
back.leg._rotation = 0;
hand._rotation = 0;
hand.arm._rotation = 0;
back.hand._rotation = 0;
leg.shank._rotation = 0;
back.leg.shank._rotation = 0;
hand.arm.finger._rotation = 0;
}
function Run() {
if ((state_bull["STATE_" + ID] == state_bull.STATE_RUN) || (state_bull["STATE_" + ID] == state_bull.STATE_STOP)) {
if (_rotation >= Settings.CRITICAL_ANGLE.max) {
side_to_fall = 1;
CRASH();
}
if (_rotation <= Settings.CRITICAL_ANGLE.min) {
side_to_fall = -1;
CRASH();
}
}
if ((state_bull["STATE_" + ID] == state_bull.STATE_RUN) || (state_bull["STATE_" + ID] == state_bull.STATE_STOP)) {
head._rotation = _rotation;
leg._rotation = -1.5 * _rotation;
back.leg._rotation = -_rotation;
hand._rotation = -4 * _rotation;
hand.arm._rotation = _rotation;
back.hand._rotation = -_rotation;
leg.shank._rotation = _rotation;
back.leg.shank._rotation = _rotation;
hand.arm.finger._rotation = -_rotation;
}
target_point = target_point + coef;
new_current_point();
_gravity = Gravity();
if (AUTOBALANCE) {
auto_alignment = Strength();
} else {
_strength = Strength();
}
if ((AI_point != current_point) && (AUTOBALANCE)) {
if (AI_point > current_point) {
AI_point = AI_point - (STRENGTH * (0.5 + (Math.random() * 0.5)));
} else if (AI_point < current_point) {
AI_point = AI_point + (STRENGTH * (0.5 + (Math.random() * 0.5)));
}
if (_rotation < 0) {
AI_point = AI_point + (0.8 * STRENGTH);
} else if (_rotation > 0) {
AI_point = AI_point - (0.8 * STRENGTH);
}
}
}
function Strength() {
var _local3 = 0;
if (AUTOBALANCE) {
_local3 = AI_point - current_point;
} else {
_local3 = _root._xmouse - current_point;
}
var _local4 = 0;
if (_local3 > 0) {
if (_local3 < DISTANCE) {
_local4 = STRENGTH * (_local3 / DISTANCE);
} else if (_local3 >= DISTANCE) {
_local4 = STRENGTH;
}
} else if (_local3 < 0) {
if ((-_local3) <= DISTANCE) {
_local4 = (-STRENGTH) * ((-_local3) / DISTANCE);
} else if ((-_local3) >= DISTANCE) {
_local4 = -STRENGTH;
}
}
return(_local4);
}
function Gravity() {
var _local2 = 0;
if (_rotation < 0) {
_local2 = Math.sin((_rotation * Math.PI) / 180) * WEIGHT;
} else if (_rotation > 0) {
_local2 = Math.sin((_rotation * Math.PI) / 180) * WEIGHT;
}
return(_local2);
}
function new_current_point() {
if (current_point != target_point) {
current_point = current_point + ((target_point - current_point) / 100);
}
if ((target_point >= (center.x + ((3 * DISTANCE) / 4))) || (target_point <= (center.x - ((3 * DISTANCE) / 4)))) {
coef = coef * -1;
}
}
function copy(obj) {
for (var _local3 in obj) {
center[_local3] = obj[_local3];
current_point[_local3] = obj[_local3];
target_point[_local3] = obj[_local3];
}
}
function generate_target_point() {
var _local3;
if (AUTOBALANCE) {
_local3 = AI_point;
} else {
_local3 = _root._xmouse;
}
if (_local3 > current_point) {
var _local4 = center.x - (DISTANCE / 6);
var _local5 = center.x - ((2 * DISTANCE) / 5);
target_point = Math.floor(Math.random() * (_local5 - _local4)) + _local4;
} else if (_local3 <= current_point) {
var _local4 = center.x + (DISTANCE / 6);
var _local5 = center.x + ((2 * DISTANCE) / 5);
target_point = Math.floor(Math.random() * (_local5 - _local4)) + _local4;
}
if (target_point > center.x) {
coef = -displacement;
} else if (target_point <= center.x) {
coef = displacement;
}
}
function CRASH() {
delete onEnterFrame;
_parent.CRASH(this, side_to_fall);
}
function riderRotation(rotation) {
_rotation = _rotation + rotation;
back._rotation = back._rotation + rotation;
}
function get auto_alignmentStrength() {
return(auto_alignment);
}
function get riderStrength() {
return(_strength);
}
function get riderGravity() {
return(_gravity);
}
var STRENGTH = 0;
var WEIGHT = 0;
var DISTANCE = 0;
var AUTOBALANCE = false;
var _strength = 0;
var _gravity = 0;
var back = null;
var center = {x:0, y:0};
var displacement = 0;
var auto_alignment = 0;
var side_to_fall = 0;
}
Symbol 1316 MovieClip [__Packages.Bull] Frame 0
class Bull extends MovieClip
{
var stop, bull, down, MAX_SPEED, MIN_SPEED, current_speed, delta_speed, onEnterFrame, beginTimer, ID, _parent, counterTimer, gotoAndPlay, _currentframe, _regime, __get__ENABLE_RUN;
function Bull () {
super();
stop();
bull._visible = false;
down._visible = false;
}
function init(_aggression, _speed, _dspeed, _point, _id) {
AGGRESSION = _aggression;
MAX_SPEED = _speed;
MIN_SPEED = (MAX_SPEED / 100) * percent_min_speed;
current_speed = MIN_SPEED;
delta_speed = _dspeed;
center = _point;
onEnterFrame = Run;
beginTimer = getTimer();
time_interval = time_interval / AGGRESSION;
ID = _id;
if (_parent.AUTOBALANCE) {
setREGIME(Settings.REGIME_MEDIUM);
}
}
function Run() {
if (_enable) {
counterTimer = getTimer() - beginTimer;
var _local3 = (100 / MAX_SPEED) * (MAX_SPEED - _speed);
var _local2 = time_interval + (((2 * time_interval) * _local3) / 100);
if (counterTimer > _local2) {
if (ID == 1) {
if (User.RIDER.NAME == "COWBOY") {
CSoundService.playSound(7, 1, true);
} else if (User.RIDER.NAME == "COWGIRL") {
CSoundService.playSound(6, 1, true);
} else if (User.RIDER.NAME == "CLOWN") {
CSoundService.playSound(5, 1, true);
}
}
beginTimer = getTimer();
if (Math.floor(beginTimer + (Math.random() * 10)) % 2) {
state_bull["num_bucks_" + ID] = 2;
} else {
state_bull["num_bucks_" + ID] = 1;
}
if (beginTimer % 2) {
gotoAndPlay("buck1");
} else {
gotoAndPlay("buck2");
}
state_bull["STATE_" + ID] = state_bull.STATE_BUCK;
}
_speed = _Speed();
if (!_speed) {
state_bull["STATE_" + ID] = state_bull.STATE_STOP;
} else if (_currentframe == 1) {
state_bull["STATE_" + ID] = state_bull.STATE_RUN;
gotoAndPlay("run");
}
}
}
function _Speed() {
if (!_parent.AUTOBALANCE) {
if (Key.isDown(32)) {
current_speed = current_speed + delta_speed;
if (current_speed > MAX_SPEED) {
current_speed = MAX_SPEED;
}
} else {
current_speed = current_speed - (delta_speed / 2);
if (current_speed < MIN_SPEED) {
current_speed = MIN_SPEED;
}
}
return(current_speed);
}
if (_regime == Settings.REGIME_MAX) {
var _local2 = (Math.random() * 1) + ((max_speed * MAX_SPEED) / 100);
return(_local2);
}
if (_regime == Settings.REGIME_MEDIUM) {
var _local2 = (Math.random() * 1) + ((medium_speed * MAX_SPEED) / 100);
return(_local2);
}
if (_regime == Settings.REGIME_MIN) {
var _local2 = (Math.random() * 1) + ((min_speed * MAX_SPEED) / 100);
return(_local2);
}
}
function get speed() {
return(_speed);
}
function get realSpeed() {
return(_speed);
}
function setCenter(valY) {
center.y = valY;
}
function get bullStrength() {
var _local2 = bull._rotation - last_rotation;
last_rotation = bull._rotation;
return(_local2);
}
function set ENABLE_RUN(val) {
_enable = val;
if (_enable) {
onEnterFrame = Run;
}
//return(__get__ENABLE_RUN());
}
function setREGIME(_numReg) {
if (_numReg == Settings.REGIME_MAX) {
_regime = Settings.REGIME_MAX;
} else if (_numReg == Settings.REGIME_MEDIUM) {
_regime = Settings.REGIME_MEDIUM;
} else if (_numReg == Settings.REGIME_MIN) {
_regime = Settings.REGIME_MIN;
}
}
var AGGRESSION = 0;
var _speed = 0;
var DISTANCE = 200;
var center = {x:0, y:0};
var stoping_percent = 30;
var last_rotation = 0;
var time_interval = 10000;
var _enable = false;
var max_speed = 100;
var medium_speed = 80;
var min_speed = 60;
var percent_min_speed = 30;
}
Symbol 1317 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 1318 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 1319 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 1320 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1321 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 1322 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var mc_Sound, attachMovie, _numState, _container, createEmptyMovieClip, onEnterFrame, mc_Cursor, _quality, _xmouse, _ymouse;
function Game () {
super();
CSoundService.createSoundService(new Array("SND_MainMenu", "SND_click", "SND_MidleScreen", "SND_GAME", "SND_FINAL", "SND_CLOWN_LAUGH", "SND_COWGIRL_BABY", "SND_COWBOY_IHA", "SND_SIREN", "SND_APPLOD"), _root, 31999);
mc_Sound = attachMovie("mc_Sound", "mc_Sound", 10, {_x:746, _y:20});
mc_Sound.onRelease = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
CSoundService.soundOff();
} else {
this.gotoAndStop(1);
CSoundService.soundOn();
}
};
setState(STATE_MAIN);
}
function setState(__valState) {
_numState = __valState;
var path = this;
switch (__valState) {
case STATE_MAIN :
if (!CSoundService.soundIsPlay(0)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(0);
}
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_MAIN_WINDOW", "WND_MAIN_WINDOW", 1);
onEnterFrame = Run;
Mouse.hide();
if (mc_Cursor == undefined) {
mc_Cursor = attachMovie("CURSOR", "mc_Cursor", 100000);
}
_container.WND_MAIN_WINDOW.BTN_INSTRUCTIONS.onRelease = function () {
path.setState(path.STATE_INSTRUCTIONS);
};
_container.WND_MAIN_WINDOW.BTN_INSTRUCTIONS.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_MAIN_WINDOW.BTN_ABOUT.onRelease = function () {
path.setState(path.STATE_ABOUT);
};
_container.WND_MAIN_WINDOW.BTN_ABOUT.onPress = function () {
CSoundService.playSound(1, 1, true);
};
if (Settings.checkData()) {
_container.WND_MAIN_WINDOW.BTN_CONTINUE._visible = true;
} else {
_container.WND_MAIN_WINDOW.BTN_CONTINUE._visible = false;
}
_container.WND_MAIN_WINDOW.BTN_CONTINUE.onRelease = function () {
Settings.loadSettingth();
path.setState(path.STATE_CHOOSE_CHARACTER);
};
_container.WND_MAIN_WINDOW.BTN_CONTINUE.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_MAIN_WINDOW.BTN_NEW_GAME.onRelease = function () {
if (Settings.checkData()) {
path._container.WND_MAIN_WINDOW.attachMovie("WND_MESSAGE_", "WND_MESSAGE_", 1);
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.txtMessage.text = "All saved data will be deleted!\nContinue?";
var _path = path;
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.BTN_OK.onRelease = function () {
User.BULL = null;
User.RIDER = null;
User.NUM_MONEY = 100;
User.__set__NUM_BIG_BULL_BALLS(0);
var _local2 = 1;
while (_local2 <= 8) {
if ((_local2 == 1) || (_local2 == 2)) {
User.STATE_BULLS["BULL_" + _local2].STATE = Settings.BULL_OPEN;
} else {
User.STATE_BULLS["BULL_" + _local2].STATE = Settings.BULL_LOCKED;
}
User.STATE_BULLS["BULL_" + _local2].RANK = 4;
_local2++;
}
Settings.clear();
_path.setState(path.STATE_CHOOSE_CHARACTER);
this._parent.removeMovieClip();
};
} else {
path.setState(path.STATE_CHOOSE_CHARACTER);
}
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.BTN_CANCEL.onRelease = function () {
this._parent.removeMovieClip();
};
path._container.WND_MAIN_WINDOW.WND_MESSAGE_.BTN_CANCEL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
};
_container.WND_MAIN_WINDOW.BTN_NEW_GAME.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_INSTRUCTIONS :
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_INSTRUCTIONS", "WND_INSTRUCTIONS", 1);
_container.WND_INSTRUCTIONS.BTN_MENU.onRelease = function () {
path.setState(path.STATE_MAIN);
};
_container.WND_INSTRUCTIONS.BTN_MENU.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_INSTRUCTIONS.BTN_NEXT.onRelease = function () {
path.setState(path.STATE_CONTROLS);
};
_container.WND_INSTRUCTIONS.BTN_NEXT.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_CONTROLS :
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_CONTROLS", "WND_CONTROLS", 1);
_container.WND_CONTROLS.BTN_BACK.onRelease = function () {
path.setState(path.STATE_INSTRUCTIONS);
};
_container.WND_CONTROLS.BTN_BACK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_CONTROLS.BTN_MENU.onRelease = function () {
path.setState(path.STATE_MAIN);
};
_container.WND_CONTROLS.BTN_MENU.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_ABOUT :
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_ABOUT", "WND_ABOUT", 1);
_container.WND_ABOUT.BTN_BACK.onRelease = function () {
path.setState(path.STATE_MAIN);
};
_container.WND_ABOUT.BTN_BACK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_CHOOSE_CHARACTER :
_quality = "HIGH";
if (!CSoundService.soundIsPlay(2)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(2);
}
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_CHOOSE_CHARACTER", "WND_CHOOSE_CHARACTER", 1);
_container.WND_CHOOSE_CHARACTER.txtMoney.text = User.NUM_MONEY;
_container.WND_CHOOSE_CHARACTER.txtBBB.text = User.NUM_BIG_BULL_BALLS;
if (!User.RIDER) {
User.RIDER = Settings.RIDERS.COWBOY;
_container.WND_CHOOSE_CHARACTER[User.RIDER.NAME].gotoAndStop(2);
} else {
_container.WND_CHOOSE_CHARACTER[User.RIDER.NAME].gotoAndStop(2);
}
for (var _local5 in Settings.RIDERS) {
if (Settings.RIDERS[_local5] != User.RIDER) {
_container.WND_CHOOSE_CHARACTER[Settings.RIDERS[_local5].NAME].gotoAndStop(1);
}
}
for (var _local5 in Settings.RIDERS) {
_container.WND_CHOOSE_CHARACTER[Settings.RIDERS[_local5].NAME].onPress = function () {
for (var _local3 in Settings.RIDERS) {
if (this == path._container.WND_CHOOSE_CHARACTER[Settings.RIDERS[_local3].NAME]) {
User.RIDER = Settings.RIDERS[_local3];
if (Settings.RIDERS[_local3].NAME == "COWBOY") {
path._container.WND_CHOOSE_CHARACTER.INFO.text = "Rough n' Tumble Cowboy: Ready for Anything";
CSoundService.playSound(7, 1, true);
} else if (Settings.RIDERS[_local3].NAME == "COWGIRL") {
path._container.WND_CHOOSE_CHARACTER.INFO.text = "Sassy Cowgirl: Always in Control";
CSoundService.playSound(6, 1, true);
} else if (Settings.RIDERS[_local3].NAME == "CLOWN") {
path._container.WND_CHOOSE_CHARACTER.INFO.text = "Cooter the Clown: Tired of Being Laughed at";
CSoundService.playSound(5, 1, true);
}
path._container.WND_CHOOSE_CHARACTER[Settings.RIDERS[_local3].NAME].gotoAndStop(2);
for (var _local2 in Settings.RIDERS) {
if (Settings.RIDERS[_local2] != Settings.RIDERS[_local3]) {
path._container.WND_CHOOSE_CHARACTER[Settings.RIDERS[_local2].NAME].gotoAndStop(1);
}
}
}
}
};
}
if (!User.BULL) {
User.BULL = Settings.BULLS.BULL_1;
_container.WND_CHOOSE_CHARACTER[User.BULL.NAME].gotoAndStop(2);
} else {
_container.WND_CHOOSE_CHARACTER[User.BULL.NAME].gotoAndStop(2);
}
_STATE_BULLS();
_setBULLS();
var _local5 = 1;
while (_local5 <= 8) {
_container.WND_CHOOSE_CHARACTER["BULL_" + _local5].onPress = function () {
if (this.LOCKED._visible) {
path._container.WND_CHOOSE_CHARACTER.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_CANCEL._visible = false;
var _local2 = 3;
while (_local2 <= 8) {
if (path._container.WND_CHOOSE_CHARACTER["BULL_" + _local2] == this) {
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.txtMessage.text = ("You need " + ((_local2 - 2) - User.__get__NUM_BIG_BULL_BALLS())) + " more Big Bull Balls\nto unlock!";
}
_local2++;
}
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK.onRelease = function () {
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.removeMovieClip();
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
} else if (this.COST._visible) {
path._container.WND_CHOOSE_CHARACTER.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
var select_bull;
for (var _local2 in Settings.BULLS) {
if (path._container.WND_CHOOSE_CHARACTER[Settings.BULLS[_local2].NAME] == this) {
select_bull = Settings.BULLS[_local2];
if (Settings.BULLS[_local2].COST > User.NUM_MONEY) {
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.txtMessage.text = ("This bull cost " + Settings.BULLS[_local2].COST) + "$\nYou have not got so much money!";
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK._visible = false;
} else {
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.txtMessage.text = ("This bull cost " + Settings.BULLS[_local2].COST) + "$\nDo you want really buy it?";
}
}
}
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK.onRelease = function () {
User.NUM_MONEY = User.NUM_MONEY - select_bull.COST;
path._container.WND_CHOOSE_CHARACTER.txtMoney.text = User.NUM_MONEY;
User.STATE_BULLS[select_bull.NAME].STATE = Settings.BULL_OPEN;
path._container.WND_CHOOSE_CHARACTER[select_bull.NAME].COST._visible = false;
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.removeMovieClip();
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_CANCEL.onRelease = function () {
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.removeMovieClip();
};
path._container.WND_CHOOSE_CHARACTER.WND_MESSAGE.BTN_CANCEL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
} else if (this._currentframe == 1) {
var select_bull;
for (var _local2 in Settings.BULLS) {
if (path._container.WND_CHOOSE_CHARACTER[Settings.BULLS[_local2].NAME] == this) {
User.BULL = Settings.BULLS[_local2];
this.gotoAndStop(2);
path._setBULLS();
} else {
path._container.WND_CHOOSE_CHARACTER[Settings.BULLS[_local2].NAME].gotoAndStop(1);
path._STATE_BULLS();
}
}
}
};
_container.WND_CHOOSE_CHARACTER.CUP.onRollOver = function () {
path._container.WND_CHOOSE_CHARACTER.attachMovie("WND_POPUP_", "WND_POPUP_", 1);
path._container.WND_CHOOSE_CHARACTER.WND_POPUP_._x = _root._xmouse;
path._container.WND_CHOOSE_CHARACTER.WND_POPUP_._y = _root._ymouse;
};
_container.WND_CHOOSE_CHARACTER.CUP.onRollOut = function () {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP_.removeMovieClip();
};
_container.WND_CHOOSE_CHARACTER.CUP.onDragOut = function () {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP_.removeMovieClip();
};
_container.WND_CHOOSE_CHARACTER["BULL_" + _local5].onRollOver = function () {
path._container.WND_CHOOSE_CHARACTER.attachMovie("WND_POPUP", "WND_POPUP", 1);
path._container.WND_CHOOSE_CHARACTER.WND_POPUP._x = _root._xmouse;
path._container.WND_CHOOSE_CHARACTER.WND_POPUP._y = _root._ymouse;
var _local4 = String(this);
var _local5 = _local4.split(".");
var _local7 = String(_local5.pop());
var _local6 = _local4.split("_");
var _local3 = String(_local6.pop());
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.FACE.gotoAndStop(Settings.BULLS["BULL_" + _local3].COLOR);
if (Settings.BULLS["BULL_" + _local3].TYPE_BULL == Settings.TYPE_BULL_STRONG_BULL) {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.FACE.TYPE_BULL_FAT_BULL._visible = false;
} else {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.FACE.TYPE_BULL_STRONG_BULL._visible = false;
}
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.NAME.text = Settings.BULLS["BULL_" + _local3].NICKNAME;
if (User.STATE_BULLS["BULL_" + _local3].STATE == Settings.BULL_LOCKED) {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.CHARACTERISTIC.text = "";
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.NUMBERS.text = "";
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.INFO.text = ("You need " + ((_local3 - 2) - User.__get__NUM_BIG_BULL_BALLS())) + " more\nBig Bull Balls to unlock this bull!";
} else {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.CHARACTERISTIC.text = "SPEED:\nAGGRESSION:";
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.NUMBERS.text = (Settings.BULLS["BULL_" + _local3].SPEED + newline) + (Settings.BULLS["BULL_" + _local3].AGGRESSION * 10);
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.INFO.text = Settings.BULLS["BULL_" + _local3].TEXT;
}
};
_container.WND_CHOOSE_CHARACTER["BULL_" + _local5].onRollOut = function () {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.removeMovieClip();
};
_container.WND_CHOOSE_CHARACTER["BULL_" + _local5].onDragOut = function () {
path._container.WND_CHOOSE_CHARACTER.WND_POPUP.removeMovieClip();
};
_local5++;
}
_container.WND_CHOOSE_CHARACTER.BTN_STORE.onRelease = function () {
path.setState(path.STATE_STORE);
};
_container.WND_CHOOSE_CHARACTER.BTN_STORE.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_CHOOSE_CHARACTER.BNT_MAIN_MENU.onRelease = function () {
path.setState(path.STATE_MAIN);
};
_container.WND_CHOOSE_CHARACTER.BNT_MAIN_MENU.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_STORE :
if (!CSoundService.soundIsPlay(2)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(2);
}
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_STORE", "WND_STORE", 1);
_container.WND_STORE.BOOT_COST.text = "$" + Settings.COST_BOOT;
_container.WND_STORE.FILE_COST.text = "$" + Settings.COST_FILE;
_container.WND_STORE.HAT_COST.text = "$" + Settings.COST_HAT;
_container.WND_STORE.SHIT_COST.text = "$" + Settings.COST_SHIT;
_container.WND_STORE.BNT_CHOOSE_RIDER_AND_BULL.onRelease = function () {
path.setState(path.STATE_CHOOSE_CHARACTER);
};
_container.WND_STORE.BNT_CHOOSE_RIDER_AND_BULL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_STORE.BTN_START_RACING.onRelease = function () {
path.setState(path.STATE_GAME);
};
_container.WND_STORE.BTN_START_RACING.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_STORE.INFO.text = "";
_container.WND_STORE.COST.text = "";
invertStatus();
_container.WND_STORE.HAT.down.onRelease = function () {
if (this._parent.HAT._currentframe == 1) {
this._parent.HAT.gotoAndStop(3);
} else if (this._parent.HAT._currentframe == 2) {
this._parent.HAT.gotoAndStop(1);
} else if (this._parent.HAT._currentframe == 3) {
this._parent.HAT.gotoAndStop(2);
}
};
_container.WND_STORE.HAT.up.onRelease = function () {
if (this._parent.HAT._currentframe == 1) {
this._parent.HAT.gotoAndStop(2);
} else if (this._parent.HAT._currentframe == 2) {
this._parent.HAT.gotoAndStop(3);
} else if (this._parent.HAT._currentframe == 3) {
this._parent.HAT.gotoAndStop(1);
}
};
_container.WND_STORE.BOOT.down.onRelease = function () {
if (this._parent.BOOT._currentframe == 1) {
this._parent.BOOT.gotoAndStop(3);
} else if (this._parent.BOOT._currentframe == 2) {
this._parent.BOOT.gotoAndStop(1);
} else if (this._parent.BOOT._currentframe == 3) {
this._parent.BOOT.gotoAndStop(2);
}
};
_container.WND_STORE.BOOT.up.onRelease = function () {
if (this._parent.BOOT._currentframe == 1) {
this._parent.BOOT.gotoAndStop(2);
} else if (this._parent.BOOT._currentframe == 2) {
this._parent.BOOT.gotoAndStop(3);
} else if (this._parent.BOOT._currentframe == 3) {
this._parent.BOOT.gotoAndStop(1);
}
};
_container.WND_STORE.txtMoney.text = User.NUM_MONEY;
if (User.ITEM_BOOTS) {
_container.WND_STORE.BUY_BOOT._visible = false;
} else {
_container.WND_STORE.BUY_BOOT._visible = true;
}
if (User.ITEM_FILE) {
_container.WND_STORE.BUY_FILE._visible = false;
} else {
_container.WND_STORE.BUY_FILE._visible = true;
}
if (User.ITEM_HAT) {
_container.WND_STORE.BUY_HAT._visible = false;
} else {
_container.WND_STORE.BUY_HAT._visible = true;
}
if (User.ITEM_BULL_SHIT) {
_container.WND_STORE.BUY_SHIT._visible = false;
} else {
_container.WND_STORE.BUY_SHIT._visible = true;
}
for (_local5 in Settings.SHOP) {
_container.WND_STORE["BUY_" + Settings.SHOP[_local5]].onRelease = function () {
if (this == path._container.WND_STORE.BUY_HAT) {
path.current_choose = "HAT";
if (Settings.COST_HAT > User.NUM_MONEY) {
path._container.WND_STORE.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You don't have enough money.";
path._container.WND_STORE.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL._visible = false;
} else {
path._container.WND_STORE.attachMovie("WND_MESSAGE_", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "Do you really want to buy\nCowboy Hat?";
}
} else if (this == path._container.WND_STORE.BUY_BOOT) {
path.current_choose = "BOOT";
if (Settings.COST_BOOT > User.NUM_MONEY) {
path._container.WND_STORE.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You don't have enough money.";
path._container.WND_STORE.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL._visible = false;
} else {
path._container.WND_STORE.attachMovie("WND_MESSAGE_", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "Do you really want to buy\nCowboy Boots?";
}
} else if (this == path._container.WND_STORE.BUY_FILE) {
path.current_choose = "FILE";
if (Settings.COST_FILE > User.NUM_MONEY) {
path._container.WND_STORE.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You don't have enough money.";
path._container.WND_STORE.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL._visible = false;
} else {
path._container.WND_STORE.attachMovie("WND_MESSAGE_", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "Do you really want to buy\nHorn Sharpeners?";
}
} else if (this == path._container.WND_STORE.BUY_SHIT) {
path.current_choose = "SHIT";
if (Settings.COST_SHIT > User.NUM_MONEY) {
path._container.WND_STORE.attachMovie("WND_MESSAGE", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You don't have enough money.";
path._container.WND_STORE.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL._visible = false;
} else {
path._container.WND_STORE.attachMovie("WND_MESSAGE_", "WND_MESSAGE", 1);
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "Do you really want to buy\nBull Poop?";
}
}
path._container.WND_STORE.WND_MESSAGE.BTN_OK.onRelease = function () {
var _local2 = 0;
if (path.current_choose == "BOOT") {
if (Settings.COST_BOOT <= User.NUM_MONEY) {
_local2 = 1;
path._container.WND_STORE.BUY_BOOT._visible = false;
User.ITEM_BOOTS = true;
User.ITEM_BOOT_STYLE = path._container.WND_STORE.BOOT.BOOT._currentframe;
User.NUM_MONEY = User.NUM_MONEY - Settings.COST_BOOT;
Settings.saveSettingth();
}
} else if (path.current_choose == "HAT") {
if (Settings.COST_HAT <= User.NUM_MONEY) {
_local2 = 2;
path._container.WND_STORE.BUY_HAT._visible = false;
User.NUM_MONEY = User.NUM_MONEY - Settings.COST_HAT;
User.ITEM_HAT = true;
User.ITEM_HAT_STYLE = path._container.WND_STORE.HAT.HAT._currentframe;
Settings.saveSettingth();
}
} else if (path.current_choose == "SHIT") {
if (Settings.COST_SHIT <= User.NUM_MONEY) {
_local2 = 3;
path._container.WND_STORE.BUY_SHIT._visible = false;
User.ITEM_BULL_SHIT = true;
User.NUM_MONEY = User.NUM_MONEY - Settings.COST_SHIT;
Settings.saveSettingth();
}
} else if (path.current_choose == "FILE") {
if (Settings.COST_FILE <= User.NUM_MONEY) {
_local2 = 4;
path._container.WND_STORE.BUY_FILE._visible = false;
User.ITEM_FILE = true;
User.NUM_MONEY = User.NUM_MONEY - Settings.COST_FILE;
Settings.saveSettingth();
}
}
path._container.WND_STORE.WND_MESSAGE.removeMovieClip();
path.invertStatus();
path._container.WND_STORE.txtMoney.text = User.NUM_MONEY;
if (_local2 != 0) {
path._container.WND_STORE.attachMovie("WND_MESSAGE", "WND_MESSAGE", 2);
path._container.WND_STORE.WND_MESSAGE.BTN_OK._x = 336;
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL._visible = false;
if (_local2 == 1) {
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You bought the Cowboy Boots!\nYour bull will buck 25% less this\nrace!";
} else if (_local2 == 2) {
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You bought the Cowboy Hat!\nYou will travel 10% faster.";
} else if (_local2 == 3) {
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You bought Bull Poop! In the next\nrace all of your opponent's bulls\nwill buck 25% more!";
} else if (_local2 == 4) {
path._container.WND_STORE.WND_MESSAGE.txtMessage.text = "You bought the Horn Sharpeners!\nYour bull will buck 50% more, but\nif you survive the race you will\nget 2x the cash!";
}
path._container.WND_STORE.WND_MESSAGE.BTN_OK.onRelease = function () {
this._parent.removeMovieClip();
};
path._container.WND_STORE.WND_MESSAGE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
}
};
path._container.WND_STORE.WND_MESSAGE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
path._container.WND_STORE.WND_MESSAGE.BTN_EMPTY.onRollOver = function () {
this.useHandCursor = false;
};
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL.onRelease = function () {
path._container.WND_STORE.WND_MESSAGE.removeMovieClip();
};
path._container.WND_STORE.WND_MESSAGE.BTN_CANCEL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
};
_container.WND_STORE["BUY_" + Settings.SHOP[_local5]].onPress = function () {
CSoundService.playSound(1, 1, true);
};
}
break;
case STATE_GAME :
_quality = "MEDIUM";
if (!CSoundService.soundIsPlay(3)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(3);
}
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("Competitors", "Competitors", 1);
break;
case STATE_LOSE :
_quality = "HIGH";
if (!CSoundService.soundIsPlay(4)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(4);
}
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_LOSE", "WND_LOSE", 1);
_container.WND_LOSE.BTN_OK.onRelease = function () {
path.setState(path.STATE_CHOOSE_CHARACTER);
};
_container.WND_LOSE.BTN_OK.onPress = function () {
CSoundService.playSound(1, 1, true);
};
break;
case STATE_WIN :
_quality = "HIGH";
if (!CSoundService.soundIsPlay(4)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(4);
}
CSoundService.playSound(9, 10000000, true);
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_WIN", "WND_WIN", 1);
_container.WND_WIN.BNT_CHOOSE_RIDER_AND_BULL.onRelease = function () {
CSoundService.stopSound(9);
path.setState(path.STATE_CHOOSE_CHARACTER);
};
_container.WND_WIN.BNT_CHOOSE_RIDER_AND_BULL.onPress = function () {
CSoundService.playSound(1, 1, true);
};
_container.WND_WIN.CUP.onRollOver = function () {
path._container.WND_WIN.attachMovie("WND_POPUP_", "WND_POPUP_", 1);
path._container.WND_WIN.WND_POPUP_._x = _root._xmouse;
path._container.WND_WIN.WND_POPUP_._y = _root._ymouse;
};
_container.WND_WIN.CUP.onRollOut = function () {
path._container.WND_WIN.WND_POPUP_.removeMovieClip();
};
_container.WND_WIN.CUP.onDragOut = function () {
path._container.WND_WIN.WND_POPUP_.removeMovieClip();
};
break;
case STATE_END :
_quality = "HIGH";
if (!CSoundService.soundIsPlay(4)) {
CSoundService.stopCurLoopSound();
CSoundService.playLoopSound(4);
}
CSoundService.playSound(9, 10000000, true);
Message.clear();
_container.removeMovieClip();
_container = createEmptyMovieClip("_container", 1);
_container.attachMovie("WND_END", "WND_END", 1);
_container.WND_END.BTN_NEW_GAME.onRelease = function () {
CSoundService.stopSound(9);
User.BULL = null;
User.RIDER = null;
User.NUM_MONEY = 100;
User.__set__NUM_BIG_BULL_BALLS(0);
var _local1 = 1;
while (_local1 <= 8) {
if ((_local1 == 1) || (_local1 == 2)) {
User.STATE_BULLS["BULL_" + _local1].STATE = Settings.BULL_OPEN;
} else {
User.STATE_BULLS["BULL_" + _local1].STATE = Settings.BULL_LOCKED;
}
User.STATE_BULLS["BULL_" + _local1].RANK = 4;
_local1++;
}
Settings.clear();
path.setState(path.STATE_MAIN);
};
_container.WND_END.CUP.onRollOver = function () {
path._container.WND_END.attachMovie("WND_POPUP_", "WND_POPUP", 1);
path._container.WND_END.WND_POPUP._x = _root._xmouse;
path._container.WND_END.WND_POPUP._y = _root._ymouse;
};
_container.WND_END.CUP.onRollOut = function () {
path._container.WND_END.WND_POPUP.removeMovieClip();
};
_container.WND_END.CUP.onDragOut = function () {
path._container.WND_END.WND_POPUP.removeMovieClip();
};
}
}
function SetPopupShop() {
var _local3 = false;
for (var _local4 in Settings.SHOP) {
if (_container.WND_STORE[Settings.SHOP[_local4]].hitTest(_root._xmouse, _root._ymouse, true)) {
if (Settings.SHOP[_local4] == "BOOT") {
_container.WND_STORE.NAME.text = "Cowboy Boots";
_container.WND_STORE.INFO.text = "Makes you more stable, by causing your\nbull to buck 25% less.";
_container.WND_STORE.COST.text = "$" + Settings.COST_BOOT;
_local3 = true;
} else if (Settings.SHOP[_local4] == "FILE") {
_container.WND_STORE.NAME.text = "Horn Sharpeners";
_container.WND_STORE.INFO.text = "Makes your own bull buck 50% more, but\nalso rewards you with 2x cash if you make\nit it to the end of the race.";
_container.WND_STORE.COST.text = "$" + Settings.COST_FILE;
_local3 = true;
} else if (Settings.SHOP[_local4] == "HAT") {
_container.WND_STORE.NAME.text = "Cowboy Hat";
_container.WND_STORE.INFO.text = "Changes your hat and makes your bull 10%\nfaster.";
_container.WND_STORE.COST.text = "$" + Settings.COST_HAT;
_local3 = true;
} else if (Settings.SHOP[_local4] == "SHIT") {
_container.WND_STORE.NAME.text = "Bull Poop";
_container.WND_STORE.INFO.text = "Special item that allows you to cheat. Play\nBull Poop at the beginning of the race to\nmake all other bulls buck 25% more.";
_container.WND_STORE.COST.text = "$" + Settings.COST_SHIT;
_local3 = true;
}
}
}
if (!_local3) {
_container.WND_STORE.NAME.text = "";
_container.WND_STORE.INFO.text = "";
_container.WND_STORE.COST.text = "";
}
}
function SetPopupPosition() {
var _local3 = 1;
while (_local3 <= 8) {
if (_container.WND_CHOOSE_CHARACTER["BULL_" + _local3].hitTest(_root._xmouse, _root._ymouse, false)) {
_container.WND_CHOOSE_CHARACTER.WND_POPUP._x = _root._xmouse;
_container.WND_CHOOSE_CHARACTER.WND_POPUP._y = _root._ymouse;
}
_local3++;
}
if (_container.WND_CHOOSE_CHARACTER.CUP.hitTest(_root._xmouse, _root._ymouse, true)) {
_container.WND_CHOOSE_CHARACTER.WND_POPUP_._x = _root._xmouse;
_container.WND_CHOOSE_CHARACTER.WND_POPUP_._y = _root._ymouse;
}
if (_container.WND_END.CUP.hitTest(_root._xmouse, _root._ymouse, true)) {
_container.WND_END.WND_POPUP._x = _root._xmouse;
_container.WND_END.WND_POPUP._y = _root._ymouse;
}
if (_container.WND_WIN.CUP(_root._xmouse, _root._ymouse, false)) {
_container.WND_WIN.WND_POPUP_._x = _root._xmouse;
_container.WND_WIN.WND_POPUP_._y = _root._ymouse;
}
}
function invertStatus() {
if (User.ITEM_BOOTS) {
_container.WND_STORE.STATUS.BOOT.gotoAndStop(User.ITEM_BOOT_STYLE);
} else {
_container.WND_STORE.STATUS.BOOT.gotoAndStop("nothing");
}
if (User.ITEM_HAT) {
_container.WND_STORE.STATUS.HAT.gotoAndStop(User.ITEM_HAT_STYLE);
} else {
_container.WND_STORE.STATUS.HAT.gotoAndStop("nothing");
}
if (User.ITEM_FILE) {
_container.WND_STORE.STATUS.FILE.gotoAndStop(1);
} else {
_container.WND_STORE.STATUS.FILE.gotoAndStop("nothing");
}
if (User.ITEM_BULL_SHIT) {
_container.WND_STORE.STATUS.SHIT.gotoAndStop(1);
} else {
_container.WND_STORE.STATUS.SHIT.gotoAndStop("nothing");
}
}
function Run() {
mc_Cursor._x = _xmouse;
mc_Cursor._y = _ymouse;
if (((_numState == STATE_CHOOSE_CHARACTER) || (_numState == STATE_END)) || (_numState == STATE_WIN)) {
SetPopupPosition();
}
if (_numState == STATE_STORE) {
SetPopupShop();
}
}
function endRace() {
setState(STATE_LOSE);
}
function checkFinishGame() {
var _local1 = false;
for (var _local2 in User.STATE_BULLS) {
if ((User.STATE_BULLS[_local2].STATE != Settings.BULL_PLAYING) || (User.STATE_BULLS[_local2].RANK != 1)) {
_local1 = true;
break;
}
}
return(_local1);
}
function finish(place, killed) {
User.ITEM_BOOTS = false;
User.ITEM_BULL_SHIT = false;
User.ITEM_HAT = false;
User.STATE_BULLS[User.BULL.NAME].STATE = Settings.BULL_PLAYING;
if ((place == 1) && (killed != 3)) {
if (User.STATE_BULLS[User.BULL.NAME].STATE == Settings.BULL_PLAYING) {
if (User.STATE_BULLS[User.BULL.NAME].RANK > place) {
if (!checkFinishGame()) {
setState(STATE_END);
return(undefined);
}
setState(STATE_WIN);
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 200;
_container.WND_WIN.MONEY.text = "+200";
} else {
User.NUM_MONEY = User.NUM_MONEY + 100;
_container.WND_WIN.MONEY.text = "+100";
}
User.NUM_BIG_BULL_BALLS = User.NUM_BIG_BULL_BALLS + 1;
User.STATE_BULLS[User.BULL.NAME].RANK = place;
_container.WND_WIN.PLACE.text = "1";
_container.WND_WIN.BALLS.text = "+1";
} else {
setState(STATE_WIN);
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 200;
_container.WND_WIN.MONEY.text = "+200";
} else {
User.NUM_MONEY = User.NUM_MONEY + 100;
_container.WND_WIN.MONEY.text = "+100";
}
_container.WND_WIN.PLACE.text = "1";
_container.WND_WIN.BALLS.text = "+0";
}
}
} else if (killed == 3) {
if (!checkFinishGame()) {
setState(STATE_END);
return(undefined);
}
setState(STATE_WIN);
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 500;
_container.WND_WIN.MONEY.text = "+500";
} else {
User.NUM_MONEY = User.NUM_MONEY + 250;
_container.WND_WIN.MONEY.text = "+250";
}
User.STATE_BULLS[User.BULL.NAME].RANK = place;
setState(STATE_WIN);
_container.WND_WIN.PLACE.text = "1";
_container.WND_WIN.BALLS.text = "+0";
} else if (place == 2) {
setState(STATE_WIN);
if (User.STATE_BULLS[User.BULL.NAME].RANK > place) {
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 100;
_container.WND_WIN.MONEY.text = "+100";
} else {
User.NUM_MONEY = User.NUM_MONEY + 50;
_container.WND_WIN.MONEY.text = "+50";
}
_container.WND_WIN.PLACE.text = "2";
_container.WND_WIN.BALLS.text = "+0";
User.STATE_BULLS[User.BULL.NAME].RANK = place;
} else {
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 100;
_container.WND_WIN.MONEY.text = "+100";
} else {
User.NUM_MONEY = User.NUM_MONEY + 50;
_container.WND_WIN.MONEY.text = "+50";
}
_container.WND_WIN.PLACE.text = "2";
_container.WND_WIN.BALLS.text = "+0";
}
} else if (place == 3) {
setState(STATE_WIN);
if (User.STATE_BULLS[User.BULL.NAME].RANK > place) {
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 50;
_container.WND_WIN.MONEY.text = "+50";
} else {
User.NUM_MONEY = User.NUM_MONEY + 25;
_container.WND_WIN.MONEY.text = "+25";
}
_container.WND_WIN.PLACE.text = "3";
_container.WND_WIN.BALLS.text = "+0";
User.STATE_BULLS[User.BULL.NAME].RANK = place;
} else {
if (User.ITEM_FILE) {
User.ITEM_FILE = false;
User.NUM_MONEY = User.NUM_MONEY + 50;
_container.WND_WIN.MONEY.text = "+50";
} else {
User.NUM_MONEY = User.NUM_MONEY + 25;
_container.WND_WIN.MONEY.text = "+25";
}
_container.WND_WIN.INFO.text = ("Congratulations, You Placed " + place) + "! You have Earned $25.";
_container.WND_WIN.PLACE.text = "3";
_container.WND_WIN.BALLS.text = "+0";
}
}
Message.clear();
Settings.saveSettingth();
}
function _STATE_BULLS() {
for (var _local2 in User.STATE_BULLS) {
switch (User.STATE_BULLS[_local2].STATE) {
case Settings.BULL_LOCKED :
_container.WND_CHOOSE_CHARACTER[_local2].LOCKED._visible = true;
_container.WND_CHOOSE_CHARACTER[_local2].COST._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].RANK._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].BRAND._visible = false;
break;
case Settings.BULL_OPEN :
_container.WND_CHOOSE_CHARACTER[_local2].LOCKED._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].COST._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].RANK._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].BRAND._visible = false;
break;
case Settings.BULL_PLAYING :
_container.WND_CHOOSE_CHARACTER[_local2].LOCKED._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].COST._visible = false;
if (User.STATE_BULLS[_local2].RANK == 1) {
_container.WND_CHOOSE_CHARACTER[_local2].BRAND._visible = true;
_container.WND_CHOOSE_CHARACTER[_local2].RANK._visible = false;
} else {
_container.WND_CHOOSE_CHARACTER[_local2].BRAND._visible = false;
_container.WND_CHOOSE_CHARACTER[_local2].RANK._visible = true;
_container.WND_CHOOSE_CHARACTER[_local2].RANK.txtRank.text = User.STATE_BULLS[_local2].RANK;
}
}
}
}
function _setBULLS() {
for (var _local2 in Settings.BULLS) {
_container.WND_CHOOSE_CHARACTER[_local2].BULL.gotoAndStop(Settings.BULLS[_local2].COLOR);
if (Settings.BULLS[_local2].TYPE_BULL != Settings.TYPE_BULL_STRONG_BULL) {
_container.WND_CHOOSE_CHARACTER[_local2].BULL.TYPE_BULL_STRONG_BULL._visible = false;
} else {
_container.WND_CHOOSE_CHARACTER[_local2].BULL.TYPE_BULL_FAT_BULL._visible = false;
}
}
}
var STATE_MAIN = 1;
var STATE_INSTRUCTIONS = 2;
var STATE_CONTROLS = 3;
var STATE_ABOUT = 4;
var STATE_CHOOSE_CHARACTER = 5;
var STATE_STORE = 6;
var STATE_GAME = 7;
var STATE_LOSE = 8;
var STATE_WIN = 9;
var STATE_END = 10;
}
Symbol 13 MovieClip [Predplechje (zad) Ra] Frame 1
#initclip 121
Object.registerClass("Predplechje (zad) Ra", Attribute);
#endinitclip
stop();
Symbol 14 MovieClip [Predplechje (zad)] Frame 1
#initclip 19
Object.registerClass("Predplechje (zad)", Attribute);
#endinitclip
Symbol 63 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
Symbol 165 MovieClip [rog2] Frame 1
#initclip 20
Object.registerClass("rog2", Attribute);
#endinitclip
stop();
Symbol 169 MovieClip [BASKa] Frame 1
#initclip 21
Object.registerClass("BASKa", Attribute);
#endinitclip
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 224 MovieClip [Stopa (zad) Ra] Frame 1
#initclip 22
Object.registerClass("Stopa (zad) Ra", Attribute);
#endinitclip
stop();
Symbol 233 MovieClip [Stopa Ra] Frame 1
#initclip 23
Object.registerClass("Stopa Ra", Attribute);
#endinitclip
stop();
Symbol 242 MovieClip [Shlyapa Rd] Frame 1
#initclip 24
Object.registerClass("Shlyapa Rd", Attribute);
#endinitclip
stop();
Symbol 245 MovieClip [Golen (zad) Rsa] Frame 1
#initclip 25
Object.registerClass("Golen (zad) Rsa", Attribute);
#endinitclip
stop();
Symbol 248 MovieClip [Plecho (zad) Rd] Frame 1
#initclip 26
Object.registerClass("Plecho (zad) Rd", Attribute);
#endinitclip
stop();
Symbol 251 MovieClip [Predplechje (zad) Rd] Frame 1
#initclip 27
Object.registerClass("Predplechje (zad) Rd", Attribute);
#endinitclip
stop();
Symbol 254 MovieClip [Kist (zad) Ra] Frame 1
#initclip 28
Object.registerClass("Kist (zad) Ra", Attribute);
#endinitclip
stop();
Symbol 257 MovieClip [Bedro (zad) Rs] Frame 1
#initclip 29
Object.registerClass("Bedro (zad) Rs", Attribute);
#endinitclip
stop();
Symbol 260 MovieClip [Popa Rd] Frame 1
#initclip 30
Object.registerClass("Popa Rd", Attribute);
#endinitclip
stop();
Symbol 263 MovieClip [Telo Ra] Frame 1
#initclip 31
Object.registerClass("Telo Ra", Attribute);
#endinitclip
stop();
Symbol 267 MovieClip [Plecho Rd] Frame 1
#initclip 32
Object.registerClass("Plecho Rd", Attribute);
#endinitclip
stop();
Symbol 271 MovieClip [Lokot Ra] Frame 1
#initclip 33
Object.registerClass("Lokot Ra", Attribute);
#endinitclip
stop();
Symbol 273 MovieClip [Predplechje Ra] Frame 1
#initclip 34
Object.registerClass("Predplechje Ra", Attribute);
#endinitclip
stop();
Symbol 276 MovieClip [Koleno Ra] Frame 1
#initclip 35
Object.registerClass("Koleno Ra", Attribute);
#endinitclip
stop();
Symbol 279 MovieClip [a] Frame 1
#initclip 36
Object.registerClass("a", Attribute);
#endinitclip
stop();
Symbol 282 MovieClip [Bedro Rs] Frame 1
#initclip 37
Object.registerClass("Bedro Rs", Attribute);
#endinitclip
stop();
Symbol 285 MovieClip [Kist Ra] Frame 1
#initclip 38
Object.registerClass("Kist Ra", Attribute);
#endinitclip
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 290 MovieClip [Bedro (zad) Rd] Frame 1
#initclip 39
Object.registerClass("Bedro (zad) Rd", Attribute);
#endinitclip
stop();
Symbol 293 MovieClip [Stopa23] Frame 1
#initclip 40
Object.registerClass("Stopa23", Attribute);
#endinitclip
stop();
Symbol 296 MovieClip [Golen Rs] Frame 1
#initclip 41
Object.registerClass("Golen Rs", Attribute);
#endinitclip
stop();
Symbol 301 MovieClip [Golen (zad) Rs] Frame 1
#initclip 42
Object.registerClass("Golen (zad) Rs", Attribute);
#endinitclip
stop();
Symbol 304 MovieClip [Koleno Rs] Frame 1
#initclip 43
Object.registerClass("Koleno Rs", Attribute);
#endinitclip
stop();
Symbol 307 MovieClip [Plecho (zad) Rs] Frame 1
#initclip 44
Object.registerClass("Plecho (zad) Rs", Attribute);
#endinitclip
stop();
Symbol 310 MovieClip [Predplechje (zad) Rs] Frame 1
#initclip 45
Object.registerClass("Predplechje (zad) Rs", Attribute);
#endinitclip
stop();
Symbol 315 MovieClip [Telo Rs] Frame 1
#initclip 46
Object.registerClass("Telo Rs", Attribute);
#endinitclip
stop();
Symbol 318 MovieClip [Popa R] Frame 1
#initclip 47
Object.registerClass("Popa R", Attribute);
#endinitclip
stop();
Symbol 321 MovieClip [Bedro Rd] Frame 1
#initclip 48
Object.registerClass("Bedro Rd", Attribute);
#endinitclip
stop();
Symbol 324 MovieClip [Predplechje Rs] Frame 1
#initclip 49
Object.registerClass("Predplechje Rs", Attribute);
#endinitclip
stop();
Symbol 335 MovieClip [Plecho Rs] Frame 1
#initclip 50
Object.registerClass("Plecho Rs", Attribute);
#endinitclip
stop();
Symbol 338 MovieClip [Lokot Rs] Frame 1
#initclip 51
Object.registerClass("Lokot Rs", Attribute);
#endinitclip
stop();
Symbol 341 MovieClip [Shlyapa2] Frame 1
#initclip 52
Object.registerClass("Shlyapa2", Attribute);
#endinitclip
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 350 MovieClip [Koleno] Frame 1
#initclip 53
Object.registerClass("Koleno", Attribute);
#endinitclip
stop();
Symbol 356 MovieClip [Golen] Frame 1
#initclip 54
Object.registerClass("Golen", Attribute);
#endinitclip
stop();
Symbol 359 MovieClip [Stopa2] Frame 1
#initclip 55
Object.registerClass("Stopa2", Attribute);
#endinitclip
stop();
Symbol 365 MovieClip [Bedro] Frame 1
#initclip 56
Object.registerClass("Bedro", Attribute);
#endinitclip
stop();
Symbol 370 MovieClip [Tit`ss] Frame 1
#initclip 57
Object.registerClass("Tit`ss", Attribute);
#endinitclip
stop();
Symbol 374 MovieClip [hip Ra] Frame 1
#initclip 58
Object.registerClass("hip Ra", Attribute);
#endinitclip
stop();
Symbol 378 MovieClip [Telo Rd] Frame 1
#initclip 59
Object.registerClass("Telo Rd", Attribute);
#endinitclip
stop();
Symbol 379 MovieClip [mc_bust] Frame 1
#initclip 60
Object.registerClass("mc_bust", Attribute);
#endinitclip
Symbol 384 MovieClip [Shlyapa Ra] Frame 1
#initclip 61
Object.registerClass("Shlyapa Ra", Attribute);
#endinitclip
stop();
Symbol 385 MovieClip [Shlyapa] Frame 1
#initclip 62
Object.registerClass("Shlyapa", Attribute);
#endinitclip
stop();
Symbol 395 MovieClip [s] Frame 1
#initclip 63
Object.registerClass("s", Attribute);
#endinitclip
stop();
Symbol 396 MovieClip [Predplechje] Frame 1
#initclip 64
Object.registerClass("Predplechje", Attribute);
#endinitclip
Symbol 401 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
Symbol 443 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 10
stop();
Symbol 525 MovieClip [Competitors] Frame 1
#initclip 65
Object.registerClass("Competitors", Competitors);
#endinitclip
Symbol 547 MovieClip [Command] Frame 1
#initclip 66
Object.registerClass("Command", Command);
#endinitclip
Symbol 558 MovieClip [COWGIRL] Frame 1
#initclip 67
Object.registerClass("COWGIRL", Rider);
#endinitclip
Symbol 583 MovieClip [CLOWN] Frame 1
#initclip 68
Object.registerClass("CLOWN", Rider);
#endinitclip
Symbol 588 MovieClip [Stopa] Frame 1
#initclip 69
Object.registerClass("Stopa", Attribute);
#endinitclip
Symbol 599 MovieClip [COWBOY] Frame 1
#initclip 70
Object.registerClass("COWBOY", Rider);
#endinitclip
Symbol 616 MovieClip [rog3] Frame 1
#initclip 71
Object.registerClass("rog3", Attribute);
#endinitclip
stop();
Symbol 622 MovieClip [Predplechje (zad) R] Frame 1
#initclip 72
Object.registerClass("Predplechje (zad) R", Attribute);
#endinitclip
stop();
Symbol 628 MovieClip [Plecho (zad) R] Frame 1
#initclip 73
Object.registerClass("Plecho (zad) R", Attribute);
#endinitclip
stop();
Symbol 634 MovieClip [Lokot (zad) R] Frame 1
#initclip 74
Object.registerClass("Lokot (zad) R", Attribute);
#endinitclip
stop();
Symbol 640 MovieClip [Kist (zad) R] Frame 1
#initclip 75
Object.registerClass("Kist (zad) R", Attribute);
#endinitclip
stop();
Symbol 646 MovieClip [Bedro (zad) R] Frame 1
#initclip 76
Object.registerClass("Bedro (zad) R", Attribute);
#endinitclip
stop();
Symbol 652 MovieClip [Golen (zad) R] Frame 1
#initclip 77
Object.registerClass("Golen (zad) R", Attribute);
#endinitclip
stop();
Symbol 658 MovieClip [Koleno (zad) R] Frame 1
#initclip 78
Object.registerClass("Koleno (zad) R", Attribute);
#endinitclip
stop();
Symbol 664 MovieClip [Stopa (zad) R] Frame 1
#initclip 79
Object.registerClass("Stopa (zad) R", Attribute);
#endinitclip
stop();
Symbol 670 MovieClip [Yajki Ras] Frame 1
#initclip 80
Object.registerClass("Yajki Ras", Attribute);
#endinitclip
stop();
Symbol 676 MovieClip [Kistochka Rsd] Frame 1
#initclip 81
Object.registerClass("Kistochka Rsd", Attribute);
#endinitclip
stop();
Symbol 682 MovieClip [Hvost 2 Rsd] Frame 1
#initclip 82
Object.registerClass("Hvost 2 Rsd", Attribute);
#endinitclip
stop();
Symbol 688 MovieClip [Hvost 1 Rs] Frame 1
#initclip 83
Object.registerClass("Hvost 1 Rs", Attribute);
#endinitclip
stop();
Symbol 694 MovieClip [Puzo Rs] Frame 1
#initclip 84
Object.registerClass("Puzo Rs", Attribute);
#endinitclip
stop();
Symbol 700 MovieClip [Sheya R] Frame 1
#initclip 85
Object.registerClass("Sheya R", Attribute);
#endinitclip
stop();
Symbol 706 MovieClip [Telo R] Frame 1
#initclip 86
Object.registerClass("Telo R", Attribute);
#endinitclip
stop();
Symbol 711 MovieClip [Golova R] Frame 1
#initclip 87
Object.registerClass("Golova R", Attribute);
#endinitclip
stop();
Symbol 716 MovieClip [Bedro R] Frame 1
#initclip 88
Object.registerClass("Bedro R", Attribute);
#endinitclip
stop();
Symbol 722 MovieClip [Koleno R] Frame 1
#initclip 89
Object.registerClass("Koleno R", Attribute);
#endinitclip
stop();
Symbol 728 MovieClip [Golen R] Frame 1
#initclip 90
Object.registerClass("Golen R", Attribute);
#endinitclip
stop();
Symbol 734 MovieClip [Stopa R] Frame 1
#initclip 91
Object.registerClass("Stopa R", Attribute);
#endinitclip
stop();
Symbol 740 MovieClip [Plecho R] Frame 1
#initclip 92
Object.registerClass("Plecho R", Attribute);
#endinitclip
stop();
Symbol 742 MovieClip [Predplechje R] Frame 1
#initclip 93
Object.registerClass("Predplechje R", Attribute);
#endinitclip
stop();
Symbol 748 MovieClip [Lokot R] Frame 1
#initclip 94
Object.registerClass("Lokot R", Attribute);
#endinitclip
stop();
Symbol 753 MovieClip [Kist R] Frame 1
#initclip 95
Object.registerClass("Kist R", Attribute);
#endinitclip
stop();
Symbol 768 MovieClip Frame 5
stop();
Symbol 775 MovieClip Frame 7
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 1
#initclip 96
Object.registerClass("STRONG_BULL", Bull);
#endinitclip
state_bull.run(this);
Symbol 887 MovieClip [STRONG_BULL] Frame 21
gotoAndPlay (1);
Symbol 887 MovieClip [STRONG_BULL] Frame 37
state_bull.endBuck(this, 1);
Symbol 887 MovieClip [STRONG_BULL] Frame 54
state_bull.endBuck(this, 2);
Symbol 887 MovieClip [STRONG_BULL] Frame 67
gotoAndPlay (1);
Symbol 887 MovieClip [STRONG_BULL] Frame 82
state_bull.lie(this, 1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 101
state_bull.lie(this, -1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 123
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 141
state_bull.lie(this, 1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 160
state_bull.lie(this, -1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 182
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 200
state_bull.lie(this, 1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 219
state_bull.lie(this, -1);
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 240
stop();
Symbol 887 MovieClip [STRONG_BULL] Frame 258
state_bull.shit(this);
stop();
Symbol 893 MovieClip [Golyagka (zad) R] Frame 1
#initclip 97
Object.registerClass("Golyagka (zad) R", Attribute);
#endinitclip
stop();
Symbol 899 MovieClip [Okorok (zad) R] Frame 1
#initclip 98
Object.registerClass("Okorok (zad) R", Attribute);
#endinitclip
stop();
Symbol 905 MovieClip [Sustav 2 (zad) R] Frame 1
#initclip 99
Object.registerClass("Sustav 2 (zad) R", Attribute);
#endinitclip
stop();
Symbol 911 MovieClip [Kopito 2 (zad) R] Frame 1
#initclip 100
Object.registerClass("Kopito 2 (zad) R", Attribute);
#endinitclip
stop();
Symbol 917 MovieClip [Lyagka (zad) R] Frame 1
#initclip 101
Object.registerClass("Lyagka (zad) R", Attribute);
#endinitclip
stop();
Symbol 923 MovieClip [Lopatka (zad) R] Frame 1
#initclip 102
Object.registerClass("Lopatka (zad) R", Attribute);
#endinitclip
stop();
Symbol 929 MovieClip [Kjpito 1 (zad) R] Frame 1
#initclip 103
Object.registerClass("Kjpito 1 (zad) R", Attribute);
#endinitclip
stop();
Symbol 935 MovieClip [Sustav 1 (zad) R] Frame 1
#initclip 104
Object.registerClass("Sustav 1 (zad) R", Attribute);
#endinitclip
stop();
Symbol 941 MovieClip [Yajki R] Frame 1
#initclip 105
Object.registerClass("Yajki R", Attribute);
#endinitclip
stop();
Symbol 947 MovieClip [Hvost 2 R] Frame 1
#initclip 106
Object.registerClass("Hvost 2 R", Attribute);
#endinitclip
stop();
Symbol 953 MovieClip [Hvost 1 R] Frame 1
#initclip 107
Object.registerClass("Hvost 1 R", Attribute);
#endinitclip
stop();
Symbol 959 MovieClip [Kistochka R] Frame 1
#initclip 108
Object.registerClass("Kistochka R", Attribute);
#endinitclip
stop();
Symbol 965 MovieClip [Puzo R] Frame 1
#initclip 109
Object.registerClass("Puzo R", Attribute);
#endinitclip
stop();
Symbol 971 MovieClip [Viya R] Frame 1
#initclip 110
Object.registerClass("Viya R", Attribute);
#endinitclip
stop();
Symbol 977 MovieClip [atrBull_Corpus R] Frame 1
#initclip 111
Object.registerClass("atrBull_Corpus R", Attribute);
#endinitclip
stop();
Symbol 982 MovieClip [Golyagka R] Frame 1
#initclip 112
Object.registerClass("Golyagka R", Attribute);
#endinitclip
stop();
Symbol 987 MovieClip [Kopito 2 R] Frame 1
#initclip 113
Object.registerClass("Kopito 2 R", Attribute);
#endinitclip
stop();
Symbol 993 MovieClip [Okorok R] Frame 1
#initclip 114
Object.registerClass("Okorok R", Attribute);
#endinitclip
stop();
Symbol 995 MovieClip [Sustav 2 R] Frame 1
#initclip 115
Object.registerClass("Sustav 2 R", Attribute);
#endinitclip
stop();
Symbol 1000 MovieClip [Kopito 1 R] Frame 1
#initclip 116
Object.registerClass("Kopito 1 R", Attribute);
#endinitclip
stop();
Symbol 1005 MovieClip [Lyagka R] Frame 1
#initclip 117
Object.registerClass("Lyagka R", Attribute);
#endinitclip
stop();
Symbol 1011 MovieClip [Lopatka R] Frame 1
#initclip 118
Object.registerClass("Lopatka R", Attribute);
#endinitclip
stop();
Symbol 1017 MovieClip [Sustav 1 R] Frame 1
#initclip 119
Object.registerClass("Sustav 1 R", Attribute);
#endinitclip
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 1
#initclip 120
Object.registerClass("FAT_BULL", Bull);
#endinitclip
state_bull.run(this);
Symbol 1128 MovieClip [FAT_BULL] Frame 22
gotoAndPlay (1);
Symbol 1128 MovieClip [FAT_BULL] Frame 39
state_bull.endBuck(this, 1);
Symbol 1128 MovieClip [FAT_BULL] Frame 59
state_bull.endBuck(this, 2);
Symbol 1128 MovieClip [FAT_BULL] Frame 72
gotoAndPlay (1);
Symbol 1128 MovieClip [FAT_BULL] Frame 88
state_bull.lie(this, 1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 109
state_bull.lie(this, -1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 129
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 148
state_bull.lie(this, 1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 169
state_bull.lie(this, -1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 189
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 208
state_bull.lie(this, 1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 230
state_bull.lie(this, -1);
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 250
stop();
Symbol 1128 MovieClip [FAT_BULL] Frame 266
state_bull.shit(this);
stop();
Symbol 1140 MovieClip Frame 9
stop();
Symbol 1150 MovieClip Frame 9
stop();
Symbol 1162 MovieClip Frame 9
stop();
Symbol 1172 MovieClip Frame 9
stop();
Symbol 1192 MovieClip Frame 9
stop();
Symbol 1211 MovieClip Frame 9
stop();
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1233 MovieClip [mc_Sound] Frame 1
stop();
Symbol 1233 MovieClip [mc_Sound] Frame 2
stop();
Symbol 1244 MovieClip Frame 1
stop();
Symbol 1245 MovieClip [mc_message] Frame 43
stop();
this.removeMovieClip();
Symbol 1304 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
_parent.gotoAndStop(4);
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 1305 MovieClip [Game] Frame 1
#initclip 122
Object.registerClass("Game", Game);
#endinitclip