Frame 10
onEnterFrame = function () {
if (getBytesLoaded() == getBytesTotal()) {
delete onEnterFrame;
gotoAndPlay ("skive");
}
};
stop();
Frame 190
churchill.App.main(this);
stop();
Instance of Symbol 358 MovieClip in Frame 210
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 358 MovieClip in Frame 210
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 358 MovieClip in Frame 210
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 358 MovieClip in Frame 210
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 422 MovieClip "miniclipHS_mc" in Frame 239
//component parameters
onClipEvent (construct) {
scoreLocation = "_global.gameScore";
gamename = "balloonchallenge";
saveScore = false;
scoreIsTime = true;
scoreReversed = false;
negativeScoreAllowed = false;
}
Symbol 425 MovieClip [__Packages.churchill.App] Frame 0
class churchill.App
{
var stage;
function App (stage) {
com.skivecreative.log.Logging.trace("New App Created");
this.stage = stage;
init();
}
static function main(pStage) {
Stage.align = "TL";
Stage.scaleMode = "noScale";
pStage._focusRect = false;
var _local2 = new churchill.App(pStage);
}
function init() {
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Shortcuts, com.mosesSupposes.fuse.PennerEasing);
churchill.Navigator.getInstance().init(stage);
churchill.Navigator.getInstance().goto("title");
com.bourre.medias.sound.SoundFactoryManager.getInstance().addSound("churchill_funk");
_global.soundState = "on";
_global.fxState = "on";
_global.shouldSaveScore = false;
}
}
Symbol 426 MovieClip [__Packages.com.skivecreative.log.Logging] Frame 0
class com.skivecreative.log.Logging
{
function Logging () {
}
static function init() {
if (isInitialized) {
return(undefined);
}
isInitialized = true;
com.bourre.log.Logger.getInstance().addLogListener(com.bourre.utils.LuminicTracer.getInstance());
}
static function disable() {
com.bourre.log.Logger.getInstance().removeLogListener(com.bourre.utils.LuminicTracer.getInstance());
isDisabled = true;
}
static function trace(message) {
if (isDisabled) {
return(undefined);
}
if (!isInitialized) {
init();
}
message = message.toString();
var _local3 = message.split(":")[0].toUpperCase();
if (((((_local3 != "DEBUG") && (_local3 != "INFO")) && (_local3 != "WARN")) && (_local3 != "ERROR")) && (_local3 != "FATAL")) {
_local3 = "DEBUG";
} else {
message = message.substring(message.indexOf(": ") + 2, message.length);
}
com.bourre.log.PixlibDebug[_local3]((com.skivecreative.utils.FrameCounter.__get__count() + ": ") + message);
_global.tt((com.skivecreative.utils.FrameCounter.__get__count() + ": ") + message);
_global.trace((com.skivecreative.utils.FrameCounter.__get__count() + ": ") + message);
}
static var isInitialized = false;
static var isDisabled = false;
}
Symbol 427 MovieClip [__Packages.com.bourre.log.Logger] Frame 0
class com.bourre.log.Logger
{
static var _oI;
var _oEB, _oLevel;
function Logger () {
_oEB = new com.bourre.events.EventBroadcaster(this);
_oLevel = com.bourre.log.LogLevel.DEBUG;
}
static function getInstance() {
return(((_oI != undefined) ? (_oI) : (_init())));
}
static function LOG(o, oLevel, channel) {
getInstance().log(o, oLevel, channel);
}
static function SETLEVEL(oLevel) {
getInstance()._oLevel = oLevel;
}
static function GETLEVEL() {
return(getInstance()._oLevel);
}
function addLogListener(listener, channel) {
if (!channel) {
_oEB.addListener(listener, listener.onLog);
} else {
_oEB.addEventListener(channel, listener, listener.onLog);
}
}
function removeLogListener(listener, channel) {
if (!channel) {
_oEB.removeListener(listener);
} else {
_oEB.removeEventListener(channel, listener);
}
}
function log(logContent, oLevel, channel) {
if (oLevel == undefined) {
oLevel = com.bourre.log.LogLevel.DEBUG;
}
if (oLevel.isEnabled()) {
_oEB.broadcastEvent(new com.bourre.log.LogEvent(oLevel, logContent, channel));
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static function _init() {
_oI = new com.bourre.log.Logger();
return(_oI);
}
}
Symbol 428 MovieClip [__Packages.com.bourre.log.LogLevel] Frame 0
class com.bourre.log.LogLevel extends Number
{
var _sName, _nLevel;
function LogLevel (sName, nLevel) {
super(nLevel);
_sName = sName;
_nLevel = nLevel;
}
function getName() {
return(_sName);
}
function getLevel() {
return(_nLevel);
}
function isEnabled() {
return(_nLevel >= com.bourre.log.Logger.GETLEVEL());
}
function toString() {
return(((((com.bourre.log.PixlibStringifier.stringify(this) + "[") + getName()) + ":") + this) + "]");
}
static var DEBUG = new com.bourre.log.LogLevel("DEBUG", 0);
static var INFO = new com.bourre.log.LogLevel("INFO", 1);
static var WARN = new com.bourre.log.LogLevel("WARN", 2);
static var ERROR = new com.bourre.log.LogLevel("ERROR", 3);
static var FATAL = new com.bourre.log.LogLevel("FATAL", 4);
}
Symbol 429 MovieClip [__Packages.com.bourre.log.Stringifier] Frame 0
interface com.bourre.log.Stringifier
{
}
Symbol 430 MovieClip [__Packages.com.bourre.log.BasicStringifier] Frame 0
class com.bourre.log.BasicStringifier implements com.bourre.log.Stringifier
{
function BasicStringifier () {
}
function stringify(target) {
return((("'" + com.bourre.utils.ClassUtils.getFullyQualifiedClassName(target)) + com.bourre.core.HashCodeFactory.getKey(target)) + "'");
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
}
Symbol 431 MovieClip [__Packages.com.bourre.utils.ClassUtils] Frame 0
class com.bourre.utils.ClassUtils
{
function ClassUtils () {
}
static function getClassName(o) {
var _local1 = getFullyQualifiedClassName(o);
return(_local1.substr(_local1.lastIndexOf(".") + 1));
}
static function getFullyQualifiedClassName(o) {
o = ((typeof(o) == "function") ? (Function(o).prototype) : (o.__proto__));
return((_containsKey(o) ? (_getFullyQualifiedClassName(o)) : (_buildPath("", _global, o))));
}
static function _buildPath(s, pack, o) {
for (var _local5 in pack) {
var _local1 = pack[_local5];
if (_local1.__constructor__ === Object) {
var _local5 = _buildPath((s + _local5) + ".", _local1, o);
if (_local5) {
return(_local5);
}
} else if (_local1.prototype === o) {
_setFullyQualifiedClassName(o, s + _local5);
return(s + _local5);
}
}
}
static function _containsKey(o) {
return(Boolean(o.__fullyQualifiedClassName.length > 0));
}
static function _getFullyQualifiedClassName(o) {
return(o.__fullyQualifiedClassName);
}
static function _setFullyQualifiedClassName(o, s) {
o.__fullyQualifiedClassName = s;
_global.ASSetPropFlags(o, ["__fullyQualifiedClassName"], 7, 1);
}
}
Symbol 432 MovieClip [__Packages.com.bourre.core.HashCodeFactory] Frame 0
class com.bourre.core.HashCodeFactory
{
function HashCodeFactory () {
}
static function getNextKEY() {
return(_nKEY++);
}
static function getNextName() {
return(String(_nKEY + 1));
}
static function getKey(o) {
if (o.__KEY == null) {
o.__KEY = getNextKEY();
_global.ASSetPropFlags(o, ["__KEY"], 7, 1);
}
return(o.__KEY);
}
static function buildInstance(sPackage, aArgs) {
var clazz = eval ("_global." + sPackage);
if (!clazz) {
com.bourre.log.PixlibDebug.FATAL(("'_global." + sPackage) + "' class is not available in the current swf");
}
var o = {__constructor__:clazz, __proto__:clazz.prototype};
clazz.apply(o, aArgs);
return(o);
}
static function isSameObject(a, b) {
return(getKey(a) == getKey(b));
}
static var _nKEY = 0;
}
Symbol 433 MovieClip [__Packages.com.bourre.events.EventType] Frame 0
class com.bourre.events.EventType extends String
{
function EventType (s) {
super(s);
}
}
Symbol 434 MovieClip [__Packages.com.bourre.log.LogChannel] Frame 0
class com.bourre.log.LogChannel extends com.bourre.events.EventType
{
function LogChannel (s) {
super(s);
}
}
Symbol 435 MovieClip [__Packages.com.bourre.log.PixlibDebug] Frame 0
class com.bourre.log.PixlibDebug
{
function PixlibDebug () {
}
static function DEBUG(o) {
if (isOn) {
com.bourre.log.Logger.LOG(o, com.bourre.log.LogLevel.DEBUG, channel);
}
}
static function INFO(o) {
if (isOn) {
com.bourre.log.Logger.LOG(o, com.bourre.log.LogLevel.INFO, channel);
}
}
static function WARN(o) {
if (isOn) {
com.bourre.log.Logger.LOG(o, com.bourre.log.LogLevel.WARN, channel);
}
}
static function ERROR(o) {
if (isOn) {
com.bourre.log.Logger.LOG(o, com.bourre.log.LogLevel.ERROR, channel);
}
}
static function FATAL(o) {
if (isOn) {
com.bourre.log.Logger.LOG(o, com.bourre.log.LogLevel.FATAL, channel);
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static var isOn = true;
static var channel = new com.bourre.log.LogChannel(com.bourre.utils.ClassUtils.getFullyQualifiedClassName(new com.bourre.log.PixlibDebug()));
}
Symbol 436 MovieClip [__Packages.com.bourre.log.PixlibStringifier] Frame 0
class com.bourre.log.PixlibStringifier
{
function PixlibStringifier () {
}
static function setStringifier(o) {
_STRINGIFIER = o;
}
static function getStringifier() {
return(_STRINGIFIER);
}
static function stringify(target) {
return(_STRINGIFIER.stringify(target));
}
static var _STRINGIFIER = new com.bourre.log.BasicStringifier();
}
Symbol 437 MovieClip [__Packages.com.bourre.events.IEventDispatcher] Frame 0
interface com.bourre.events.IEventDispatcher
{
}
Symbol 438 MovieClip [__Packages.com.bourre.events.IEvent] Frame 0
interface com.bourre.events.IEvent
{
}
Symbol 439 MovieClip [__Packages.com.bourre.events.EventBroadcaster] Frame 0
class com.bourre.events.EventBroadcaster implements com.bourre.events.IEventDispatcher
{
static var _oI;
var _oOwner, _oL, _aAll, _oE;
function EventBroadcaster (owner) {
_oOwner = (owner ? (owner) : this);
_init();
}
static function getInstance() {
return(((_oI instanceof com.bourre.events.EventBroadcaster) ? (_oI) : (_buildInstance())));
}
function getListenerArray(t) {
return(((t == undefined) ? (_aAll) : (_oL[t])));
}
function listenerArrayExists(t) {
return(_oL[t] != undefined);
}
function addListener(oL, f) {
if (f) {
oL = _getEventProxy.apply(this, arguments);
}
if (_aAll.insert(oL)) {
_clean((f ? (com.bourre.core.HashCodeFactory.getKey(oL.t)) : (com.bourre.core.HashCodeFactory.getKey(oL))));
}
}
function removeListener(oL) {
_clean(com.bourre.core.HashCodeFactory.getKey(oL));
_aAll.remove(oL);
}
function removeAllListeners() {
_init();
}
function addEventListener(t, oL) {
var _local6 = arguments[2];
if (_local6) {
oL = _getEventProxy.apply(this, arguments.splice(1));
}
if (!_aAll.listenerExists(oL)) {
if (!listenerArrayExists(t)) {
_oL[t] = new com.bourre.events.ListenerArray();
}
if (getListenerArray(t).insert(oL)) {
var _local4 = (_local6 ? (com.bourre.core.HashCodeFactory.getKey(oL.t)) : (com.bourre.core.HashCodeFactory.getKey(oL)));
if (_oE[_local4] == undefined) {
_oE[_local4] = new Object();
}
_oE[_local4][t] = oL;
}
}
}
function removeEventListener(t, oL) {
if (listenerArrayExists(t)) {
var _local3 = getListenerArray(t);
if (_local3.remove(oL)) {
delete _oE[com.bourre.core.HashCodeFactory.getKey(oL)][t];
if (_local3.isEmpty()) {
delete _oL[t];
}
}
}
}
function removeAllEventListeners(t) {
if (listenerArrayExists(t)) {
delete _oL[t];
for (var _local3 in _oE) {
delete _oE[_local3][t];
}
}
}
function broadcastEvent(e) {
if (e.getTarget() == undefined) {
e.setTarget(_oOwner);
}
var _local3 = getListenerArray(e.getType());
if (_local3 != undefined) {
_broadcast(_local3, e);
}
if (_aAll.length > 0) {
_broadcast(_aAll, e);
}
}
function dispatchEvent(o) {
var _local3 = new com.bourre.events.DynBasicEvent(o.type, o.target);
for (var _local4 in o) {
if ((o[_local4] != "type") && (o[_local4] != "target")) {
_local3[_local4] = o[_local4];
}
}
broadcastEvent(_local3);
}
function isEmpty() {
var _local2;
do {
if ((in _oL) == null) {
break;
}
_local2 = in _oL;
} while (!_local2);
do {
} while ("isEmpty" != null);
return((_aAll.length == 0) && (_local2 == undefined));
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static function _buildInstance() {
_oI = new com.bourre.events.EventBroadcaster();
return(_oI);
}
function _init() {
_oL = new Object();
_aAll = new com.bourre.events.ListenerArray();
_oE = new Object();
}
function _broadcast(aL, e) {
var _local5 = aL.length;
while (_local5-- , _local5 > -1) {
var _local2 = aL[_local5];
var _local4 = typeof(_local2);
if ((_local4 == "object") || (_local4 == "movieclip")) {
if (_local2.handleEvent != undefined) {
_local2.handleEvent(e);
} else {
_local2[String(e.getType())](e);
}
} else {
_local2.apply(this, [e]);
}
}
}
function _clean(key) {
if (_oE[key] != undefined) {
var _local2 = _oE[key];
for (var _local3 in _local2) {
removeEventListener(_local3, _local2[_local3]);
}
delete _oE[key];
}
}
function _getEventProxy(oL, f) {
return(com.bourre.commands.Delegate.create.apply(com.bourre.commands.Delegate, [oL, f].concat(arguments.splice(2))));
}
static var _bInitialization = com.bourre.core.HashCodeFactory;
}
Symbol 440 MovieClip [__Packages.com.bourre.events.ListenerArray] Frame 0
class com.bourre.events.ListenerArray extends Array
{
var splice, length, push;
function ListenerArray () {
super();
splice.apply(this, [0, 0].concat(arguments));
}
function getIndex(oL) {
if (typeof(oL) == "function") {
oL = oL.t;
}
var _local3 = length;
while (_local3-- , _local3 > -1) {
var _local2 = this[_local3];
if (_local2 == oL) {
return(_local3);
}
if (typeof(_local2) == "function") {
if (_local2.t == oL) {
return(_local3);
}
}
}
return(-1);
}
function listenerExists(oL) {
return(getIndex(oL) != -1);
}
function insert(oL) {
if (!listenerExists(oL)) {
push(oL);
return(true);
}
return(false);
}
function remove(oL) {
var _local2 = getIndex(oL);
if (_local2 != -1) {
splice(_local2, 1);
return(true);
}
return(false);
}
function isEmpty() {
return(length < 1);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
}
Symbol 441 MovieClip [__Packages.com.bourre.events.BasicEvent] Frame 0
class com.bourre.events.BasicEvent implements com.bourre.events.IEvent
{
var _e, _oT;
function BasicEvent (e, oT) {
_e = e;
_oT = oT;
}
function getType() {
return(_e);
}
function setType(e) {
_e = e;
}
function getTarget() {
return(_oT);
}
function setTarget(oT) {
_oT = oT;
}
function toString() {
return((com.bourre.log.PixlibStringifier.stringify(this) + " : ") + getType());
}
}
Symbol 442 MovieClip [__Packages.com.bourre.events.DynBasicEvent] Frame 0
class com.bourre.events.DynBasicEvent extends com.bourre.events.BasicEvent
{
var _e, _oT;
function DynBasicEvent (s, oT) {
super(new com.bourre.events.EventType(s), oT);
}
function get type() {
return(_e.toString());
}
function set type(s) {
_e = new com.bourre.events.EventType(s);
//return(type);
}
function get target() {
return(_oT);
}
function set target(oT) {
_oT = oT;
//return(target);
}
function toString() {
return((com.bourre.log.PixlibStringifier.stringify(this) + " : ") + type);
}
}
Symbol 443 MovieClip [__Packages.com.bourre.commands.Command] Frame 0
interface com.bourre.commands.Command
{
}
Symbol 444 MovieClip [__Packages.com.bourre.transitions.IFrameListener] Frame 0
interface com.bourre.transitions.IFrameListener
{
}
Symbol 445 MovieClip [__Packages.com.bourre.commands.Delegate] Frame 0
class com.bourre.commands.Delegate implements com.bourre.commands.Command, com.bourre.transitions.IFrameListener
{
var _o, _f, _a, _fProxy;
function Delegate (o, f) {
_o = o;
_f = f;
_a = arguments.splice(2);
_fProxy = Function(create.apply(this, [_o].concat([_f], _a)));
}
function handleEvent(e) {
return(_f.apply(_o, [e].concat(_a)));
}
static function create(o, f) {
var _local2 = function () {
var _local3 = arguments.callee.t;
var _local2 = arguments.callee.f;
var _local4 = arguments.concat(arguments.callee.a);
return(_local2.apply(_local3, _local4));
};
_local2.t = o;
_local2.f = f;
_local2.a = arguments.splice(2);
return(_local2);
}
function getScope() {
return(_o);
}
function getFunction() {
return(_fProxy);
}
function callFunction() {
return(_fProxy());
}
function execute(e) {
_fProxy();
}
function setArguments() {
if (arguments.length > 0) {
_a = arguments;
_fProxy.a = _a;
}
}
function addArguments() {
if (arguments.length > 0) {
_a = _a.concat(arguments);
_fProxy.a = _a;
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function onEnterFrame() {
_fProxy();
}
}
Symbol 446 MovieClip [__Packages.com.bourre.log.LogListener] Frame 0
interface com.bourre.log.LogListener
{
}
Symbol 447 MovieClip [__Packages.com.bourre.log.LogEvent] Frame 0
class com.bourre.log.LogEvent extends com.bourre.events.BasicEvent
{
var level, content, timestamp;
function LogEvent (oLevel, oContent, channel) {
super((channel ? (channel) : (onLogEVENT)));
level = oLevel;
content = oContent;
timestamp = new Date().getTime();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static var onLogEVENT = new com.bourre.events.EventType("onLog");
}
Symbol 448 MovieClip [__Packages.com.bourre.utils.LuminicTracer] Frame 0
class com.bourre.utils.LuminicTracer implements com.bourre.log.LogListener
{
static var _oInstance;
var _lc, isCollapsable, _nCollapseDepth;
function LuminicTracer () {
_lc = new LocalConnection();
isCollapsable = true;
setCollapseDepth(4);
}
static function getInstance() {
if (!_oInstance) {
_oInstance = new com.bourre.utils.LuminicTracer();
}
return(_oInstance);
}
function setCollapseDepth(n) {
if (n < 1) {
n = 1;
}
_nCollapseDepth = Math.min(n, 255);
}
function onLog(e) {
var _local2 = new Object();
_local2.loggerId = null;
_local2.levelName = e.level.getName();
_local2.time = new Date();
if (isCollapsable) {
_local2.argument = _serializeObj(e.content, 1);
} else {
var _local3 = new Object();
_local3.type = "string";
_local3.value = e.content.toString();
_local2.argument = _local3;
}
_lc.send("_luminicbox_log_console", "log", _local2);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function _serializeObj(o, depth) {
var _local9 = _getType(o);
var _local8 = new Object();
if (!_local9.inspectable) {
_local8.value = o;
} else if (_local9.stringify) {
_local8.value = o + "";
} else if (depth <= _nCollapseDepth) {
if ((_local9.name == "movieclip") || (_local9.name == "button")) {
_local8.id = o + "";
}
var _local4 = new Array();
if (o instanceof Array) {
var _local2 = 0;
while (_local2 < o.length) {
_local4.push({property:_local2, value:_serializeObj(o[_local2], depth + 1)});
_local2++;
}
} else {
for (var _local10 in o) {
_local4.push({property:_local10, value:_serializeObj(o[_local10], depth + 1)});
}
}
_local8.value = _local4;
} else {
_local8.reachLimit = true;
}
_local8.type = _local9.name;
return(_local8);
}
function _getType(o) {
var _local2 = typeof(o);
var _local1 = new Object();
_local1.inspectable = true;
_local1.name = _local2;
if (((((_local2 == "string") || (_local2 == "boolean")) || (_local2 == "number")) || (_local2 == "undefined")) || (_local2 == "null")) {
_local1.inspectable = false;
} else if (o instanceof Date) {
_local1.inspectable = false;
_local1.name = "date";
} else if (o instanceof Array) {
_local1.name = "array";
} else if (o instanceof Button) {
_local1.name = "button";
} else if (o instanceof MovieClip) {
_local1.name = "movieclip";
} else if (o instanceof XML) {
_local1.name = "xml";
_local1.stringify = true;
} else if (o instanceof XMLNode) {
_local1.name = "xmlnode";
_local1.stringify = true;
} else if (o instanceof Color) {
_local1.name = "color";
}
return(_local1);
}
}
Symbol 449 MovieClip [__Packages.com.skivecreative.utils.FrameCounter] Frame 0
class com.skivecreative.utils.FrameCounter implements com.bourre.transitions.IFrameListener
{
static var fc;
function FrameCounter () {
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
}
static function getInstance() {
if (fc == undefined) {
fc = new com.skivecreative.utils.FrameCounter();
}
return(fc);
}
function onEnterFrame() {
_count++;
}
static function get count() {
return(getInstance()._count);
}
var _count = 1;
}
Symbol 450 MovieClip [__Packages.com.bourre.transitions.IFrameBeacon] Frame 0
interface com.bourre.transitions.IFrameBeacon
{
}
Symbol 451 MovieClip [__Packages.com.bourre.transitions.FPSBeacon] Frame 0
class com.bourre.transitions.FPSBeacon implements com.bourre.transitions.IFrameBeacon
{
static var _oB;
var _mc, _f, broadcastMessage, _listeners, addListener, removeListener;
function FPSBeacon () {
AsBroadcaster.initialize(this);
_mc = _level0.createEmptyMovieClip("__mcBeacon", 9997);
_f = com.bourre.commands.Delegate.create(this, broadcastMessage, onEnterFrameEVENT);
}
static function getInstance() {
if (!_oB) {
_oB = new com.bourre.transitions.FPSBeacon();
}
return(_oB);
}
static function release() {
_oB.stop();
_oB._mc.removeMovieClip();
delete _oB;
}
function start() {
_mc.onEnterFrame = _f;
}
function stop() {
delete _mc.onEnterFrame;
}
function isPlaying() {
return(_mc.onEnterFrame == _f);
}
function addFrameListener(oL) {
if (_listeners.length < 1) {
start();
}
addListener(oL);
}
function removeFrameListener(oL) {
removeListener(oL);
if (_listeners.length < 1) {
stop();
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static var onEnterFrameEVENT = new com.bourre.events.EventType("onEnterFrame");
}
Symbol 452 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|easyfunc|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|extra1|extra2|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local5 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local4 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local4 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local4 + " ZigoEngine.simpleSetup(Shortcuts);") + _local4);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local4 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local4);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "]. If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **");
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local5) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local5) + "]");
break;
case "008" :
_local2 = _local2 + "** ZigoEngine: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("-ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized.");
break;
case "010" :
_local2 = _local2 + ((("-Engine unable to parse " + ((_local3 == 1) ? "callback[" : (String(_local3) + " callbacks["))) + _local5) + "]. Try using the syntax {scope:this, func:\"myFunction\"}");
break;
case "011" :
_local2 = _local2 + (((("-ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local5) + "].");
break;
case "012" :
_local2 = _local2 + (((((("-Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local5) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("-Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local5) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local4 + " You must now use the following commands:");
_local2 = _local2 + ((_local4 + _local4) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local4 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local4 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local4);
break;
case "102" :
_local2 = _local2 + (("** Fuse skipTo label not found: \"" + _local3) + "\" **");
break;
case "103" :
_local2 = _local2 + (("** Fuse skipTo failed (" + _local3) + ") **");
break;
case "104" :
_local2 = _local2 + (((("** Fuse command skipTo (" + _local3) + ") ignored - targets the current index (") + _local5) + "). **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local4 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local4 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local4 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local4);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Commands other than \"delay\" are not allowed within groups. Command discarded (\"" + _local3) + "\")");
break;
case "110" :
_local2 = _local2 + (("** A Fuse.addCommand parameter (\"" + _local3) + "\") is not valid and was discarded. If you are trying to add a function-call try the syntax Fuse.addCommand(this,\"myCallback\",param1,param2); **");
break;
case "111" :
_local2 = _local2 + (("** A Fuse command parameter failed. (\"" + _local3) + "\") **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "114" :
_local2 = _local2 + (("** FuseItem: command (\"" + _local3) + "\") discarded. Commands may not appear within action groups (arrays). **");
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local5);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local4);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + (("** Fuse Error: No targets in " + _local3) + ((_local5 == true) ? " [Unable to set start props] **" : " [Skipping this action] **"));
break;
case "119" :
_local2 = _local2 + (((("** Fuse warning: " + _local5) + ((_local5 == 1) ? " target missing in " : " targets missing in ")) + _local6) + ((_local3 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local5) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + "** FuseItem: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "123" :
_local2 = _local2 + "** FuseItem unable to target callback. Try using the syntax {scope:this, func:\"myFunction\"} **";
break;
case "124" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "125" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "126" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local5) + " ignored - only one trigger is allowed per action **");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "301" :
_local2 = _local2 + "** The shortcuts fadeIn or fadeOut only accept 3 arguments: seconds, ease, and delay. **";
}
output(_local2);
}
static var VERSION = "Fuse Kit 2.0 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
}
Symbol 453 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if ((extensions.fuseItem != null) && (typeof(_local7[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", String(arguments.length));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
var _local12 = parseCallback(callback, _local7);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (((typeof(ease) == "object") && (ease.ease != null)) && (ease.pts != null)) {
_local9 = Function(ease.ease);
_local12.extra1 = ease.pts;
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props) {
instance.alterTweens("ff", targs, props);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local3 = {};
var _local7 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local9 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local5 = ((_local7 == true) ? (100 - _local1.ra) : 0);
if (_local5 != 0) {
var _local6 = 100 / _local5;
_local3.tint = (((_local1.rb * _local6) << 16) | ((_local1.gb * _local6) << 8)) | (_local1.bb * _local6);
_local3.tintPercent = _local5;
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local7 == true) && (_local9 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static function parseCallback(callback, targets) {
var validCBs = {skipLevel:SKIP_LEVEL, cycles:1};
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
var ezf;
if (typeof(callback) == "string") {
ezf = String(callback);
} else if (typeof(callback.easyfunc) == "string") {
ezf = callback.easyfunc;
}
if (((ezf != undefined) && (ezf.indexOf("(") > -1)) && (ezf.indexOf(")") > -1)) {
if (extensions.shortcuts != undefined) {
callback = extensions.shortcuts.parseStringTypeCallback(ezf);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("008");
}
} else if ((typeof(callback) == "function") || (typeof(callback) == "string")) {
callback = {func:callback};
}
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = callback[prefix + "scope"];
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((i + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args, id:cbTicker++};
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (com.mosesSupposes.fuse.FuseKitCommon._cbprops().indexOf(("|" + i) + "|") == -1) {
com.mosesSupposes.fuse.FuseKitCommon.error("009", i);
}
}
if ((cbErrors.length > 0) && (OUTPUT_LEVEL > 0)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("010", cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by Ladislav Zigo, laco.wz.cz/tween";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var cbTicker = 0;
}
Symbol 454 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local20 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local38 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local25 = callback.extra1;
var _local24 = callback.extra2;
var _local19 = [];
var _local15 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local37 = String(("|" + _local15.getAllShortcuts().join("|")) + "|");
var _local36 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local21 = "";
var _local23 = "";
var _local7 = tweens[String(obj.__zigoID__)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local34 in _local7.props) {
_local19.unshift(_local34);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local41 in props) {
var _local6 = props[_local41];
var _local13 = _local36.indexOf(("|" + _local6) + "|") > -1;
var _local16 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local13 == true) && (_local16 != undefined)) {
_local19.unshift(_local16);
delete _local7.props[_local16];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local6] != undefined) {
_local19.unshift(_local6);
delete _local7[_local6];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1};
var _local4 = endvals[_local41];
var _local11 = ((_local20 == 0) && ((seconds + delay) == 0)) || ((_local20 > 0) && (seconds == 0));
var _local10 = false;
var _local14 = (_local15 != undefined) && (_local37.indexOf(("|" + _local6) + "|") > -1);
if (_local14 == true) {
_local3.fmp = _local15;
_local3.ps = _local15.getFilterProp(obj, _local6, true);
_local3.special = true;
}
if ((_local13 == true) || ((((_local14 == true) && (_local6.indexOf("lor") > -1)) && (_local6.charAt(2) != "l")) && (_local11 == false))) {
if (_local13 == true) {
_local3.c = new Color(obj);
_local3.ps = _local3.c.getTransform();
if (_local6 != "_colorTransform") {
var _local17 = ((((_local6 == "_tint") || (_local6 == "_tintPercent")) || (_local6 == "_colorReset")) ? "tint" : (_local6.slice(1)));
var _local8 = null;
var _local12 = null;
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local8 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local6 == "_tintPercent") || (_local6 == "_colorReset")) {
var _local18 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
_local8 = ((typeof(_local4) == "string") ? ((_local18 || 0) + Number(_local4)) : Number(_local4));
_local8 = Math.max(0, Math.min(_local8, 100));
if (_local6 == "_colorReset") {
_local8 = Math.min(_local18, 100 - _local8);
}
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local8 = 100;
}
} else {
_local8 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local8, _local12);
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4);
}
if (_local11 == true) {
_local3.c.setTransform(_local4);
} else {
_local3.ch = {};
for (var _local34 in _local4) {
if (((((_local3.c === 1) && (_local34.charAt(1) == "b")) || (_local4[_local34] != _local3.ps[_local34])) && (_local4[_local34] != null)) && (_global.isNaN(Number(_local4[_local34])) == false)) {
_local3.ch[_local34] = ((typeof(_local4[_local34]) == "string") ? (Number(_local4[_local34])) : (_local4[_local34] - _local3.ps[_local34]));
if (_global.isNaN(_local3.ch[_local34]) == true) {
_local3.ch[_local34] = 0;
} else if (_local3.ch[_local34] != 0) {
_local10 = true;
}
}
}
}
} else if (_local6 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if ((_local6 == "_x") || (_local6 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local6 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local14 == false) {
_local3.ps = obj[_local6];
}
if (_local11 == true) {
_local4 = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local14 == true) {
_local15.setFilterProp(obj, _local6, _local4);
} else {
obj[_local6] = _local4;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local20 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local38;
if (_local25 != undefined) {
_local3.e1 = _local25;
}
if (_local24 != undefined) {
_local3.e2 = _local24;
}
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (tweens[String(obj.__zigoID__)] == undefined) {
_local7 = (tweens[String(obj.__zigoID__)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:obj.__zigoID__, props:{}});
numTweens++;
}
if (_local13 == true) {
_local7.colorProp = _local6;
}
_local7.props[_local6] = _local3;
_local7.numProps++;
_local21 = (_local6 + ",") + _local21;
_local23 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local23;
}
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local19.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local19, __zigoID__:obj.__zigoID__});
}
if (_local21 == "") {
if (_local20 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local42 = obj._listeners.length > 0;
if (_local42 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local42 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local42 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local21 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local21.slice(0, -1), _local23.slice(0, -1));
}
}
return(((_local21 == "") ? null : (_local21.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local15 = _local11.all;
var _local16 = _local11.allprops;
var _local9 = ((_local15 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = false;
for (var _local18 in _local9) {
var _local3 = ((_local15 == true) ? (_local18) : (String(_local9[_local18].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local16 == true) ? (_local2.props) : (_local11.props));
for (var _local13 in _local6) {
var _local5 = (_local13 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local13] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local13);
if ((_local13 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local13];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local17 in _local4) {
var _local7 = tweens[_local17].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local17].targID) + "\")]")), props:_local4[_local17], __zigoID__:tweens[_local17].targZID});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, suppressStartEvents) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = Boolean(props == true);
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local13 = _local11.all;
var _local14 = _local11.allprops;
var _local8 = ((_local13 == true) ? (tweens) : (Object(_local11.tg)));
var _local7 = 0;
for (var _local15 in _local8) {
var _local6 = ((_local13 == true) ? (_local15) : (String(_local8[_local15].__zigoID__)));
var _local5 = tweens[_local6];
var _local4 = ((_local14 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local9 in _local4) {
_local7++;
var _local2 = _local5.props[_local9];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (suppressStartEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local7 > 0)) {
update();
} else if ((type == "rewind") && (_local7 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local17 = {};
var _local19 = {};
var _local18 = {};
var _local13 = {};
var _local11 = {};
var _local12 = {};
var _local22 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local29 in tweens) {
var _local10 = tweens[_local29];
var _local6 = _local10.targ;
var _local28 = _local10.props;
var _local16 = _local6._listeners.length > 0;
if (_local6.__zigoID__ == undefined) {
_local22 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local21 = [];
for (var _local24 in _local28) {
_local21.unshift(_local24);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local6.addProperty) == "function") ? (_local6) : (("[MISSING:" + _local10.targID) + "]")), props:_local21, __zigoID__:_local10.targZID});
}
continue;
}
for (var _local24 in _local28) {
var _local3 = _local28[_local24];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local7 = now >= (_local3.ts + _local3.d);
if (_local3.c == -1) {
var _local5;
if (_local7 == true) {
_local5 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local5;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local7 = false;
}
} else {
_local5 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local5) == false) {
if (_local20 == true) {
_local5 = Math.round(Number(_local5));
}
if (_local3.special != true) {
_local6[_local24] = _local5;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local6, _local24, _local5);
} else if (_local24 == "_bezier_") {
var _local8 = _local3.bz;
_local6._x = _local8.sx + (_local5 * (((2 * (1 - _local5)) * _local8.ctrlx) + (_local5 * _local8.chx)));
_local6._y = _local8.sy + (_local5 * (((2 * (1 - _local5)) * _local8.ctrly) + (_local5 * _local8.chy)));
} else if (_local24 == "_frame") {
MovieClip(_local6).gotoAndStop(Math.round(_local5));
}
}
} else {
var _local4 = {};
var _local15 = (_local7 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
for (var _local23 in _local3.ch) {
var _local9 = _local3.ch[_local23];
if (_local7 == true) {
_local4[_local23] = _local3.ps[_local23] + _local9;
if (_local15 == true) {
_local3.ch[_local23] = -_local9;
}
} else {
_local4[_local23] = _local3.ef(now - _local3.ts, _local3.ps[_local23], _local9, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local23]) == false) {
if (_local20 == true) {
_local4[_local23] = Math.round(_local4[_local23]);
}
if (_local3.fmp == -1) {
_local3.c.setTransform(_local4);
} else {
var _local14 = ((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb;
_local3.fmp.setFilterProp(_local6, _local24, _local14);
}
}
}
if (_local15 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local7 = false;
_local3.ts = now;
_local3.ps = _local4;
}
}
if (_local3.sf == false) {
if (_local16 == true) {
if (_local13[_local29] == undefined) {
_local13[_local29] = [_local6, []];
}
_local13[_local29][1].unshift(_local24);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local17[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local16 == true) {
if (_local11[_local29] == undefined) {
_local11[_local29] = [_local6, []];
}
_local11[_local29][1].unshift(_local24);
}
if (_local3.ucb != undefined) {
_local19[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local7 == true) {
if (_local16 == true) {
if (_local12[_local29] == undefined) {
_local12[_local29] = [_local6, []];
}
_local12[_local29][1].unshift(_local24);
}
if (_local3.ecb != undefined) {
_local18[String(_local3.ecb.id)] = _local3.ecb;
}
delete _local28[_local24];
if (_local24 == _local10.colorProp) {
delete _local10.colorProp;
}
_local10.numProps--;
if (_local10.numProps <= 0) {
_local22 = true;
}
}
}
}
for (var _local29 in _local13) {
_local13[_local29][0].broadcastMessage("onTweenStart", {target:_local13[_local29][0], props:_local13[_local29][1]});
}
for (var _local29 in _local17) {
_local17[_local29].f.apply(_local17[_local29].s, _local17[_local29].a);
}
for (var _local29 in _local11) {
_local11[_local29][0].broadcastMessage("onTweenUpdate", {target:_local11[_local29][0], props:_local11[_local29][1]});
}
for (var _local29 in _local19) {
_local19[_local29].f.apply(_local19[_local29].s, _local19[_local29].a);
}
for (var _local29 in _local12) {
_local12[_local29][0].broadcastMessage("onTweenEnd", {target:_local12[_local29][0], props:_local12[_local29][1]});
}
for (var _local29 in _local18) {
_local18[_local29].f.apply(_local18[_local29].s, _local18[_local29].a);
}
if (_local22) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if (((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
var numTweens = 0;
}
Symbol 455 MovieClip [__Packages.com.mosesSupposes.fuse.Shortcuts] Frame 0
class com.mosesSupposes.fuse.Shortcuts
{
function Shortcuts () {
}
static function initialize() {
if (shortcuts == null) {
initShortcuts();
}
}
static function doShortcut(obj, methodName) {
initialize();
var _local5 = shortcuts[methodName];
if (_local5 == undefined) {
if (typeof(obj) == "movieclip") {
_local5 = mcshortcuts[methodName];
}
}
if (_local5 == undefined) {
return(null);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (!(obj instanceof Array)) {
obj = [obj];
}
var _local3 = "";
for (var _local6 in obj) {
var _local2 = String(_local5.apply(obj[_local6], arguments));
if ((_local2 != null) && (_local2.length > 0)) {
if (_local3.length > 0) {
_local3 = (_local2 + "|") + _local3;
} else {
_local3 = _local2;
}
}
}
return(((_local3 == "") ? null : (_local3)));
}
static function addShortcutsTo() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, _local2.getter, _local2.setter);
_global.ASSetPropFlags(o, _local5, 3, 1);
} else {
o[_local5] = _local2;
_global.ASSetPropFlags(o, _local5, 7, 1);
}
}
};
for (var _local7 in arguments) {
var _local4 = arguments[_local7];
if ((_local4 == MovieClip.prototype) || (typeof(_local4) == "movieclip")) {
_local5(_local4, mcshortcuts);
}
_local5(_local4, shortcuts);
}
}
static function removeShortcutsFrom() {
initialize();
var _local5 = function (o, so) {
for (var _local5 in so) {
_global.ASSetPropFlags(o, _local5, 0, 2);
var _local2 = so[_local5];
if (_local2.getter || (_local2.setter)) {
o.addProperty(_local5, null, null);
}
delete o[_local5];
}
};
for (var _local7 in arguments) {
var _local3 = arguments[_local7];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local5(_local3, mcshortcuts);
}
_local5(_local3, shortcuts);
}
}
static function parseStringTypeCallback(callbackStr) {
var evaluate = function (val) {
var first = val.charAt(0);
if ((first == val.slice(-1)) && ((first == "\"") || (first == "'"))) {
return(val.slice(1, -1));
}
if (val == "true") {
return(Object(true));
}
if (val == "false") {
return(Object(false));
}
if (val == "null") {
return(Object(null));
}
if (_global.isNaN(Number(val)) == false) {
return(Object(Number(val)));
}
return(Object(eval (val)));
};
var trimWhite = function (str) {
while (str.charAt(0) == " ") {
str = str.slice(1);
}
while (str.slice(-1) == " ") {
str = str.slice(0, -1);
}
return(str);
};
var evaluateList = function (list) {
var _local11 = [];
var _local4 = 0;
while (_local4 < list.length) {
var _local3 = list[_local4];
_local3 = trimWhite(_local3);
var _local5 = (_local3.charAt(0) == "{") && ((_local3.indexOf("}") > -1) || (_local3.indexOf(":") > -1));
var _local10 = _local3.charAt(0) == "[";
if ((_local5 || (_local10)) == true) {
var _local6 = ((_local5 == true) ? ({}) : ([]));
var _local2 = _local4;
while (_local2 < list.length) {
if (_local2 == _local4) {
_local3 = _local3.slice(1);
}
var _local1;
var _local8 = (_local1.slice(-1) == ((_local5 == true) ? "}" : "]")) || (_local2 == (list.length - 1));
if (_local8 == true) {
_local1 = _local1.slice(0, -1);
}
if ((_local5 == true) && (_local1.indexOf(":") > -1)) {
var _local7 = _local1.split(":");
_local6[trimWhite(_local7[0])] = evaluate(trimWhite(_local7[1]));
} else if (_local10 == true) {
_local6.push(evaluate(trimWhite(_local1)));
}
if (_local8 == true) {
_local11.push(_local6);
_local4 = _local2;
break;
}
_local2++;
}
} else {
_local11.push(evaluate(trimWhite(_local3)));
}
_local4++;
}
return(_local11);
};
var parts = callbackStr.split("(");
var p0 = parts[0];
var p1 = parts[1];
return({func:p0.slice(p0.lastIndexOf(".") + 1), scope:eval (p0.slice(0, p0.lastIndexOf("."))), args:evaluateList(p1.slice(0, p1.lastIndexOf(")")).split(","))});
}
static function initShortcuts() {
shortcuts = new Object();
var methods = {alphaTo:"_alpha", scaleTo:"_scale", sizeTo:"_size", rotateTo:"_rotation", brightnessTo:"_brightness", brightOffsetTo:"_brightOffset", contrastTo:"_contrast", colorTo:"_tint", tintPercentTo:"_tintPercent", colorResetTo:"_colorReset", invertColorTo:"_invertColor"};
var _local4 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts();
var _local6 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1};
for (var _local9 in _local4) {
if (_local6[_local4[_local9].split("_")[1]] === 1) {
methods[_local4[_local9] + "To"] = _local4[_local9];
}
}
var _local7 = {__resolve:function (name) {
var propName = methods[name];
return(function () {
var _local4 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments));
return(_local4);
});
}};
var _local5 = {__resolve:function (name) {
var prop = name.slice(1);
var _local3 = {getter:function () {
return(_global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this)[prop]);
}};
if ((prop == "tintString") || (prop == "tint")) {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tintPercent || 100, v);
};
} else if (prop == "tintPercent") {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", v, _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this).tint);
};
} else if (prop == "colorReset") {
_local3.setter = function (v) {
var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(this);
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, "tint", Math.min(100, Math.max(0, Math.min(_local3.tintPercent, 100 - v))), _local3.tint);
};
} else {
_local3.setter = function (v) {
_global.com.mosesSupposes.fuse.ZigoEngine.setColorByKey(this, prop, v);
};
}
return(_local3);
}};
for (var _local9 in methods) {
shortcuts[_local9] = _local7[_local9];
if (_local9 == "colorTo") {
shortcuts._tintString = _local5._tintString;
}
if ((((((_local9.indexOf("bright") == 0) || (_local9 == "contrastTo")) || (_local9 == "colorTo")) || (_local9 == "invertColor")) || (_local9 == "tintPercentTo")) || (_local9 == "colorResetTo")) {
shortcuts[methods[_local9]] = _local5[methods[_local9]];
}
}
shortcuts.tween = function (props, endVals, seconds, ease, delay, callback) {
if ((arguments.length == 1) && (typeof(props) == "object")) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween({target:this, action:props}));
}
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, props, endVals, seconds, ease, delay, callback));
};
shortcuts.removeTween = (shortcuts.stopTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.removeTween(this, props);
});
shortcuts.removeAllTweens = (shortcuts.stopAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.removeTween("ALL");
});
shortcuts.isTweening = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweening(this, prop));
};
shortcuts.getTweens = function () {
return(com.mosesSupposes.fuse.ZigoEngine.getTweens(this));
};
shortcuts.lockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, true);
};
shortcuts.unlockTween = function () {
com.mosesSupposes.fuse.ZigoEngine.lockTween(this, false);
};
shortcuts.isTweenLocked = function () {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenLocked(this));
};
shortcuts.isTweenPaused = function (prop) {
return(com.mosesSupposes.fuse.ZigoEngine.isTweenPaused(this, prop));
};
shortcuts.pauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.pauseTween(this, props);
};
shortcuts.resumeTween = (shortcuts.unpauseTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween(this, props);
});
shortcuts.pauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.pauseTween("ALL");
};
shortcuts.resumeAllTweens = (shortcuts.unpauseAllTweens = function () {
com.mosesSupposes.fuse.ZigoEngine.unpauseTween("ALL");
});
shortcuts.ffTween = function (props) {
com.mosesSupposes.fuse.ZigoEngine.ffTween(this, props);
};
shortcuts.rewTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, false, suppressStartEvents);
};
shortcuts.rewAndPauseTween = function (props, suppressStartEvents) {
com.mosesSupposes.fuse.ZigoEngine.rewTween(this, props, true, suppressStartEvents);
};
shortcuts.fadeIn = function (seconds, ease, delay, callback) {
this._visible = true;
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 100, seconds, ease, delay));
};
shortcuts.fadeOut = function (seconds, ease, delay, callback) {
if (this.__fadeOutEnd == undefined) {
this.__fadeOutEnd = {__owner:this, onTweenEnd:function (o) {
this.onTweenInterrupt(o);
if ((String(o.props.join(",")).indexOf("_alpha") > -1) && (this.__owner._alpha < 1)) {
o.target._visible = false;
}
}, onTweenInterrupt:function (o) {
if ((o.target == this.__owner) && (String(o.props.join(",")).indexOf("_alpha") > -1)) {
this.__owner.removeListener(this);
com.mosesSupposes.fuse.ZigoEngine.removeListener(this);
}
}};
_global.ASSetPropFlags(this, "__fadeOutEnd", 7, 1);
}
this.addListener(this.__fadeOutEnd);
var _local3 = com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 0, seconds, ease, delay, callback);
com.mosesSupposes.fuse.ZigoEngine.addListener(this.__fadeOutEnd);
return(_local3);
};
shortcuts.bezierTo = function (destX, destY, controlX, controlY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_bezier_", {x:destX, y:destY, controlX:controlX, controlY:controlY}, seconds, ease, delay, callback));
};
shortcuts.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_colorTransform", {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab}, seconds, ease, delay, callback));
};
shortcuts.tintTo = function (rgb, percent, seconds, ease, delay, callback) {
var _local3 = {};
_local3.rgb = arguments.shift();
_local3.percent = arguments.shift();
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_tint", {tint:rgb, percent:percent}, seconds, ease, delay, callback));
};
shortcuts.slideTo = function (destX, destY, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_x,_y", [destX, destY], seconds, ease, delay, callback));
};
shortcuts._size = {getter:function () {
return(((this._width == this._height) ? (this._width) : null));
}, setter:function (v) {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_size", v, 0);
}};
shortcuts._scale = {getter:function () {
return(((this._xscale == this._yscale) ? (this._xscale) : null));
}, setter:function (v) {
com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_scale", v, 0);
}};
mcshortcuts = new Object();
mcshortcuts._frame = {getter:function () {
return(this._currentframe);
}, setter:function (v) {
this.gotoAndStop(Math.round(v));
}};
mcshortcuts.frameTo = function (endframe, seconds, ease, delay, callback) {
return(com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_frame", ((endframe != undefined) ? (endframe) : (this._totalframes)), seconds, ease, delay, callback));
};
}
static var registryKey = "shortcuts";
static var shortcuts = null;
static var mcshortcuts = null;
}
Symbol 456 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(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 easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(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 function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 457 MovieClip [__Packages.churchill.Navigator] Frame 0
class churchill.Navigator
{
static var instance;
var stage, currentSection;
function Navigator () {
}
function init(pStage) {
stage = pStage;
}
static function getInstance() {
if (instance == undefined) {
instance = new churchill.Navigator();
}
return(instance);
}
function goto(section, endType, endTime) {
currentSection.destroy();
stage.gotoAndStop(section);
if (endType == undefined) {
currentSection = churchill.SectionFactory.getObjectByName(section, stage);
} else {
currentSection = churchill.SectionFactory.getObjectByName(section, stage, endType, endTime);
}
}
}
Symbol 458 MovieClip [__Packages.churchill.SectionFactory] Frame 0
class churchill.SectionFactory
{
function SectionFactory () {
}
static function getObjectByName(section, stage, endType, endTime) {
switch (section) {
case "title" :
return(new churchill.Title(stage));
case "instructions" :
return(new churchill.Instructions(stage));
case "game" :
return(new churchill.Game(stage));
case "endGame" :
return(new churchill.EndGame(stage, endType, endTime));
case "highscore" :
return(new churchill.HighScores(stage));
}
}
}
Symbol 459 MovieClip [__Packages.churchill.Title] Frame 0
class churchill.Title
{
var stage, emptyVar;
function Title (stage) {
com.skivecreative.log.Logging.trace("created new Title");
this.stage = stage;
Stage.showMenu = false;
stage._quality = "HIGH";
init();
}
function init() {
stage.titleClip._y = -313;
var _local4 = stage.bPlay._x;
stage.bPlay._x = -300;
var _local3 = stage.bHighScores._x;
stage.bHighScores._x = -300;
var _local2 = stage.bInstructions._x;
stage.bInstructions._x = -300;
var _local5 = stage.soundToggle_mc._x;
stage.soundToggle_mc._x = stage.soundToggle_mc._x + 200;
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bInstructions, "_x", _local2, 1.6, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.soundToggle_mc, "_x", _local5, 0.8, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bHighScores, "_x", _local3, 1.8, "easeOutExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bPlay, "_x", _local4, 2, "easeOutExpo", 0.4);
stage.bgImg.gotoAndPlay(1);
stage.titleClip.gotoAndPlay(1);
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.titleClip, "_y", -113, 0.6, "easeOutCirc");
stage.bPlay.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.bPlay);
stage.bInstructions.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.bInstructions);
stage.bHighScores.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.bHighScores);
stage.bPlay.onRollOut = (stage.bPlay.onDragOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.bPlay));
stage.bInstructions.onRollOut = (stage.bInstructions.onDragOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.bInstructions));
stage.bHighScores.onRollOut = (stage.bHighScores.onDragOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.bHighScores));
stage.bPlay.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "game");
stage.bInstructions.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "instructions");
stage.bHighScores.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "highscore");
stage.soundToggle_mc.onRelease = com.bourre.commands.Delegate.create(this, soundRelease);
}
function soundRelease() {
if (_global.soundState == "on") {
_global.soundState = "off";
stage.soundToggle_mc.gotoAndStop("off");
} else {
_global.soundState = "on";
stage.soundToggle_mc.gotoAndStop("on");
}
}
function onRelease(targetSection) {
if (targetSection == "game") {
var _local2 = new LoadVars();
_local2.load("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/churchill_plays/142334@x01");
_local2.load("http://www.skivedomain.com/churchill_balloon/flashtracking.asp", emptyVar);
com.skivecreative.log.Logging.trace("tracker?");
}
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bInstructions, "_x", 900, 0.4, "easeInExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bHighScores, "_x", 900, 0.4, "easeInExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.bPlay, "_x", 900, 0.4, "easeInExpo", 0.4, {scope:this, func:"goSection", args:[targetSection]});
}
function goSection(targetSection) {
stage.titleClip.gotoAndPlay("out");
stage.bgImg.gotoAndPlay("out");
stage.bowWow.gotoAndPlay("out");
churchill.Navigator.getInstance().goto(targetSection);
}
function onRollOver(btn) {
btn.gotoAndPlay("over");
}
function onRollOut(btn) {
btn.gotoAndPlay("out");
}
}
Symbol 460 MovieClip [__Packages.churchill.Instructions] Frame 0
class churchill.Instructions
{
var stage;
function Instructions (pStage) {
com.skivecreative.log.Logging.trace("Created Instructions");
stage = pStage;
init();
}
function init() {
var _local2 = stage.instructions_mc;
var _local3 = stage.back_mc;
var _local4 = _local2._x;
_local2._x = 820;
var _local5 = _local3._x;
_local3._x = -300;
com.mosesSupposes.fuse.ZigoEngine.doTween(_local2, "_x", _local4, 1, "easeOutExpo", 0.3);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_x", _local5, 1, "easeOutExpo", 0.5);
stage.back_mc.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.back_mc);
stage.back_mc.onRollOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.back_mc);
stage.back_mc.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "title");
}
function onRelease(targetSection) {
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.instructions_mc, "_x", 820, 1, "easeInExpo", 0, {scope:this, func:"goSection", args:[targetSection]});
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.back_mc, "_x", -300, 1, "easeInExpo");
}
function goSection(targetSection) {
churchill.Navigator.getInstance().goto(targetSection);
}
function onRollOver(btn) {
btn.gotoAndPlay("over");
}
function onRollOut(btn) {
btn.gotoAndPlay("out");
}
}
Symbol 461 MovieClip [__Packages.churchill.Game] Frame 0
class churchill.Game
{
var stage, g;
function Game (pStage) {
com.skivecreative.log.Logging.trace("created a new Game");
stage = pStage;
init();
}
function init() {
stage.pause_mc._visible = false;
g = new churchill.game.GameEngine(stage.gameContainer_mc);
}
function destroy() {
g.destroy();
}
}
Symbol 462 MovieClip [__Packages.churchill.game.GameEngine] Frame 0
class churchill.game.GameEngine implements com.bourre.transitions.IFrameListener
{
var stage, items_array, active_items, deleted_items, flying_items, road_obstacles, zCross_stack, deDuped_zcIndexes, deleted_flyers, road_array, plane_count, bird_count, chopper_count, glider_count, airplane_interval, birds_interval, chopper_interval, glider_interval, onEnterFrameHandler, isDemo, balloon, headsUpDisplay, stage2_start_pos, stage3_start_pos, background, foreground, finishLine, churchill_coach, fuel_interval;
function GameEngine (stage) {
com.skivecreative.log.Logging.trace("created new GameEngine");
com.skivecreative.log.Logging.trace("ge stage: " + stage);
this.stage = stage;
init();
}
function init() {
items_array = new Array();
active_items = new Array();
deleted_items = new Array();
flying_items = new Array();
road_obstacles = new Array();
zCross_stack = new Array();
deDuped_zcIndexes = new Array();
deleted_flyers = new Array();
road_array = new Array();
plane_count = 0;
bird_count = 0;
chopper_count = 0;
glider_count = 0;
create_background();
create_foreground();
create_balloon();
generate_clouds();
build_stage_one();
build_stage_two();
build_stage_three();
randomise_currents();
randomise_static_choppers();
randomise_static_gliders();
randomise_rainclouds();
randomise_fuelPickups();
airplane_interval = setInterval(com.bourre.commands.Delegate.create(this, create_airplane), 10000);
birds_interval = setInterval(com.bourre.commands.Delegate.create(this, create_flockOfBirds), 5000);
chopper_interval = setInterval(com.bourre.commands.Delegate.create(this, create_chopper), 15000);
glider_interval = setInterval(com.bourre.commands.Delegate.create(this, create_glider), 7000);
create_churchillCoach();
generate_zebraCrossings();
create_finishLine();
set_road_activity();
create_hud();
startLights();
set_demo_movement();
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, update);
}
function set_demo_movement() {
isDemo = true;
}
function startGame() {
isDemo = false;
Mouse.addListener(this);
Key.addListener(this);
balloon.initialise_values();
headsUpDisplay.timer.setModifier();
}
function randomise_currents() {
var _local9 = 400;
var _local8 = 1000;
var _local10 = Math.ceil(((stage1_length + stage2_length) + stage3_length) / _local8);
var _local7 = new Array(300, 800);
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = ((_local2 * _local8) + churchill.game.MathPlus.getRandBetweenRange(-75, 100)) + _local9;
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local7[0], _local7[1]);
create_wind(_local4, _local3, "westerly", 0.3, _local2);
if (Math.round(Math.random()) && (_local3)) {
var _local6 = _local4 + 150;
var _local5 = _local3 + 200;
create_wind(_local6, _local5, "southerly", 1, _local2);
}
_local2++;
}
}
function randomise_rainclouds() {
var _local9 = 5;
var _local11 = 350;
var _local12 = ((stage1_length + stage2_length) + stage3_length) - _local11;
var _local10 = Math.ceil(_local12 / _local9);
var _local7 = new Array(1000, 1100);
var _local8;
var _local2 = 0;
while (_local2 < _local9) {
var _local4 = (_local2 * _local10) + churchill.game.MathPlus.getRandBetweenRange(-75, 100);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local7[0], _local7[1]);
create_raincloud(_local4, _local3, _local2);
var _local6 = _local4 + 200;
var _local5 = _local3 + churchill.game.MathPlus.getRandBetweenRange(-50, 50);
create_wind(_local6, _local5, "northerly", 0.5, _local2);
_local8 = _local2;
_local2++;
}
_local2 = 0;
while (_local2 < 3) {
var _local4 = 5000 + (_local2 * 300);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(500, 700);
create_raincloud(_local4, _local3, (_local8 + _local2) + 1);
_local2++;
}
}
function randomise_fuelPickups() {
var _local6 = new Array(300, 450);
var _local3 = new Array([1000, 2250], [3000, 4250], [5000, 6000]);
var _local2 = 0;
while (_local2 < _local3.length) {
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local3[_local2][0], _local3[_local2][1]);
var _local4 = churchill.game.MathPlus.getRandBetweenRange(_local6[0], _local6[1]);
create_fuelPickup(_local5, _local4, _local2);
_local2++;
}
}
function randomise_static_choppers() {
var _local6 = 6;
var _local8 = ((stage1_length + stage2_length) + stage3_length) - 600;
var _local7 = Math.ceil(_local8 / _local6);
var _local5 = new Array(300, 750);
var _local2 = 0;
while (_local2 < _local6) {
var _local4 = (_local2 + 1) * _local7;
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local5[0], _local5[1]);
create_static_chopper(_local4, _local3);
_local2++;
}
}
function randomise_static_gliders() {
var _local6 = 4;
var _local8 = ((stage1_length + stage2_length) + stage3_length) - 600;
var _local7 = Math.ceil(_local8 / _local6);
var _local5 = new Array(450, 850);
var _local2 = 0;
while (_local2 < _local6) {
var _local4 = (_local2 + 1) * _local7;
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local5[0], _local5[1]);
create_static_glider(_local4, _local3);
_local2++;
}
}
function generate_zebraCrossings() {
var _local5;
var _local4 = 10;
var _local6 = 500;
var _local7 = Math.ceil((((stage1_length + stage2_length) + stage3_length) - _local6) / _local4);
var _local2 = 0;
while (_local2 < _local4) {
var _local3 = (_local2 * _local7) + _local6;
_local5 = ((_local2 == (_local4 - 1)) ? true : false);
create_zebraCrossing(_local3, _local2, _local5);
_local2++;
}
}
function generate_clouds() {
var _local2 = 0;
while (_local2 < 8) {
var _local7 = "low1";
var _local9 = _local2 * 200;
var _local6 = (_local2 + 1) * 150;
var _local8 = 100;
var _local4 = 400;
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local9, _local6);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local8, _local4);
create_cloud(_local5, _local3, _local7, "back", _local2);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
var _local7 = "low2";
var _local9 = _local2 * 400;
var _local6 = (_local2 + 1) * 300;
var _local8 = 250;
var _local4 = 750;
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local9, _local6);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local8, _local4);
create_cloud(_local5, _local3, _local7, "back", _local2);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
var _local7 = "mid";
var _local9 = _local2 * 400;
var _local6 = (_local2 + 1) * 350;
var _local8 = 600;
var _local4 = 900;
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local9, _local6);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local8, _local4);
create_cloud(_local5, _local3, _local7, "back", _local2);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
var _local7 = "high1";
var _local9 = _local2 * 400;
var _local6 = (_local2 + 1) * 350;
var _local8 = 700;
var _local4 = 1000;
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local9, _local6);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local8, _local4);
create_cloud(_local5, _local3, _local7, "back", _local2);
_local2++;
}
_local2 = 0;
while (_local2 < 8) {
var _local7 = "high1";
var _local9 = _local2 * 400;
var _local6 = (_local2 + 1) * 350;
var _local8 = 700;
var _local4 = 1000;
var _local5 = churchill.game.MathPlus.getRandBetweenRange(_local9, _local6);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local8, _local4);
create_cloud(_local5, _local3, _local7, "front", _local2);
_local2++;
}
}
function build_stage_one() {
var _local7;
var _local3 = -150;
var _local4;
var _local6 = 0;
while (_local3 < stage1_length) {
var _local2 = churchill.game.MathPlus.getRandBetweenRange(1, 8);
if (_local2 == _local4) {
_local2 = prevent_duplicates(_local4, 8);
}
var _local5 = "stage1_" + _local2;
_local7 = create_game_object(_local5, "stage1", _local3, 45, _local6, true, false);
_local3 = _local7 + churchill.game.MathPlus.getRandBetweenRange(0, 5);
stage2_start_pos = _local3;
_local4 = _local2;
_local6++;
}
}
function build_stage_two() {
var _local8;
var _local3 = stage2_start_pos;
var _local7;
var _local6 = 0;
while (_local3 < (stage1_length + stage2_length)) {
var _local2 = churchill.game.MathPlus.getRandBetweenRange(1, 9);
if (_local2 == _local7) {
_local2 = prevent_duplicates(_local7, 9);
}
var _local9 = "stage2_" + _local2;
var _local4 = true;
var _local5 = false;
if (_local2 == 9) {
_local4 = false;
}
if ((_local2 == 5) || (_local2 == 9)) {
_local5 = true;
}
_local8 = create_game_object(_local9, "stage2", _local3, 45, _local6, _local4, _local5);
_local3 = _local8 + churchill.game.MathPlus.getRandBetweenRange(0, 40);
stage3_start_pos = _local3;
_local7 = _local2;
_local6++;
if (_local2 == 9) {
create_wind(_local8 - 70, 280, "southerly", 2, _local6 + 10000);
}
}
}
function build_stage_three() {
var _local9;
var _local3 = stage3_start_pos;
var _local6;
var _local8 = 0;
while (_local3 < ((stage1_length + stage2_length) + stage3_length)) {
var _local2 = churchill.game.MathPlus.getRandBetweenRange(1, 8);
if (_local2 == _local6) {
_local2 = prevent_duplicates(_local6, 8);
}
var _local7 = "stage3_" + _local2;
var _local4 = true;
var _local5 = false;
if ((_local2 == 3) || (_local2 == 6)) {
_local4 = false;
}
if (_local2 == 7) {
_local5 = true;
}
_local9 = create_game_object(_local7, "stage3", _local3, 45, _local8, _local4, _local5);
_local3 = _local9 + churchill.game.MathPlus.getRandBetweenRange(0, 5);
stage3_start_pos = _local3;
_local6 = _local2;
_local8++;
}
}
function prevent_duplicates(object_id, maximum_id) {
var _local1;
if (object_id == 1) {
_local1 = churchill.game.MathPlus.getRandBetweenRange(2, maximum_id);
return(_local1);
}
if (object_id == maximum_id) {
_local1 = churchill.game.MathPlus.getRandBetweenRange(1, maximum_id - 1);
return(_local1);
}
_local1 = object_id;
while (_local1 == object_id) {
_local1 = churchill.game.MathPlus.getRandBetweenRange(1, maximum_id);
}
return(_local1);
}
function startLights() {
var _local2 = stage.attachMovie("mcStartLights", "startLights_mc", stage.getNextHighestDepth(), {_x:330, _y:110});
var _local5 = new churchill.game.StartLights(stage, _local2, this);
}
function create_background() {
var _local10 = stage.attachMovie("mcBackground", "background_mc", stage.getNextHighestDepth());
background = new churchill.game.Background(stage, _local10);
var _local5 = stage.createEmptyMovieClip("grass_mc", stage.getNextHighestDepth());
_local5._x = 0;
_local5._y = 500;
var _local9 = 1584;
var _local8 = 0;
var _local11 = 0;
var _local2 = 0;
while (_local2 < 10) {
var _local3 = ("grass" + _local2) + "_mc";
var _local4 = _local2 * _local9;
_local5.attachMovie("mcRollingHills", _local3, _local5.getNextHighestDepth(), {_x:_local4, _y:_local8});
_local2++;
}
background.grassTarget = _local5;
}
function create_balloon() {
var _local2 = stage.attachMovie("mcBalloon", "balloon_mc", stage.getNextHighestDepth());
var _local3 = new churchill.game.Coordinate(200, 200);
balloon = new churchill.game.Balloon(stage, _local2, background, foreground, _local3);
}
function create_foreground() {
var _local2 = stage.attachMovie("mcForeground", "foreground_mc", stage.getNextHighestDepth());
foreground = new churchill.game.Foreground(stage, _local2);
foreground.__set__overlayTarget(stage._parent.overlay_mc);
}
function create_hud() {
headsUpDisplay = new churchill.game.HeadsUpDisplayUnit(stage._parent.hudContainer_mc, finishLine.__get__endPosition(), balloon.maxFuelLevel, balloon.maxHealth);
}
function create_churchillCoach() {
var _local3 = "coach1_mc";
var _local4 = foreground.__get__targetRef().attachMovie("mcCoach", _local3, foreground.__get__targetRef().getNextHighestDepth());
var _local2 = new churchill.game.Coordinate(0, 50);
churchill_coach = new churchill.game.ChurchillCoach(stage, _local4, _local2, balloon, 6.8);
}
function create_cloud(x_co, y_co, cloudType, stacking, instance_id) {
var _local2 = ((cloudType + "Cloud") + instance_id) + "_mc";
var _local3;
if (stacking == "back") {
_local3 = background.__get__targetRef().attachMovie("mcCloud", _local2, background.__get__targetRef().getNextHighestDepth());
} else {
_local3 = foreground.__get__overlayTarget().attachMovie("mcCloud", _local2, foreground.__get__overlayTarget().getNextHighestDepth());
}
var _local4 = new churchill.game.Coordinate(x_co, y_co);
var _local5 = new churchill.game.Cloud(stage, _local3, _local4, balloon, cloudType);
}
function create_fuelPickup(x_co, y_co, instance_id) {
var _local4 = ("fuel" + instance_id) + "_mc";
var _local5 = foreground.__get__targetRef().attachMovie("fuelPickup", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local3 = new churchill.game.Coordinate(x_co, y_co);
var _local2 = new churchill.game.FuelPickup(stage, _local5, _local3, balloon);
items_array.push(_local2);
}
function create_wind(x_co, y_co, direction, speed, instance_id) {
var _local4 = ((direction + "Wind") + instance_id) + "_mc";
var _local2 = foreground.__get__targetRef().attachMovie("mcWind", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local3 = new churchill.game.Coordinate(x_co, y_co);
var _local5 = new churchill.game.Wind(stage, _local2, speed, direction, _local3, balloon);
_local2.cacheAsBitmap = true;
items_array.push(_local5);
}
function create_raincloud(x_co, y_co, instance_id) {
var _local3 = ("rc" + instance_id) + "_mc";
var _local5 = foreground.__get__overlayTarget().attachMovie("mcRainCloud", _local3, foreground.__get__overlayTarget().getNextHighestDepth());
var _local4 = new churchill.game.Coordinate(x_co, y_co);
var _local2 = new churchill.game.RainCloud(stage, _local5, _local4, balloon);
items_array.push(_local2);
create_lightningBold(x_co, y_co, instance_id);
}
function create_lightningBold(cloud_xCo, cloud_yCo, instance_id) {
var _local4 = ("lb" + instance_id) + "_mc";
var _local2 = foreground.__get__targetRef().attachMovie("mcLightning", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local3 = new churchill.game.Coordinate(cloud_xCo, cloud_yCo);
var _local5 = new churchill.game.LightningBolt(stage, _local2, _local3, balloon);
items_array.push(_local5);
}
function create_airplane() {
var _local4 = ("plane" + plane_count) + "_mc";
var _local5 = foreground.__get__targetRef().attachMovie("mcPlane", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local7 = balloon.__get__xPosition() + 100;
var _local8 = churchill.game.MathPlus.getRandBetweenRange(1150, 1300);
var _local6 = new churchill.game.Coordinate(_local7, _local8);
var _local3 = churchill.game.MathPlus.getRandBetweenRange(5, 8);
var _local2 = new churchill.game.Airplane(stage, _local5, _local6, balloon, _local3);
items_array.push(_local2);
flying_items.push(_local2);
plane_count++;
}
function create_flockOfBirds() {
var _local3 = ("birds" + bird_count) + "_mc";
var _local6 = foreground.__get__targetRef().attachMovie("mcBirds", _local3, foreground.__get__targetRef().getNextHighestDepth());
var _local8 = balloon.__get__yPosition() + 250;
var _local5 = balloon.__get__xPosition() + 100;
var _local7 = churchill.game.MathPlus.getRandBetweenRange(3, 7);
var _local4 = new churchill.game.Coordinate(_local5, _local8);
var _local2 = new churchill.game.FlockOfBirds(stage, _local6, _local4, balloon, _local7);
items_array.push(_local2);
flying_items.push(_local2);
bird_count++;
}
function create_chopper() {
var _local3 = ("chopper" + chopper_count) + "_mc";
var _local4 = foreground.__get__targetRef().attachMovie("mcChopper", _local3, foreground.__get__targetRef().getNextHighestDepth());
var _local8 = churchill.game.MathPlus.getRandBetweenRange(600, 950);
var _local5 = balloon.__get__xPosition() + 100;
var _local6 = churchill.game.MathPlus.getRandBetweenRange(3, 7);
var _local7 = new churchill.game.Coordinate(_local5, _local8);
var _local2 = new churchill.game.Helicopter(stage, _local4, _local7, balloon, _local6);
items_array.push(_local2);
flying_items.push(_local2);
chopper_count++;
}
function create_static_chopper(x_co, y_co) {
var _local2 = ("mcStaticChop" + chopper_count) + "_mc";
var _local3 = foreground.__get__targetRef().attachMovie("mcStaticChopper", _local2, foreground.__get__targetRef().getNextHighestDepth());
var _local5 = new churchill.game.Coordinate(x_co, y_co);
var _local4 = new churchill.game.Helicopter(stage, _local3, _local5, balloon, 0);
items_array.push(_local4);
chopper_count++;
}
function create_static_glider(x_co, y_co) {
var _local4 = ("mcStaticGlide" + glider_count) + "_mc";
var _local2 = foreground.__get__targetRef().attachMovie("mcStaticGlider", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local3 = new churchill.game.Coordinate(x_co, y_co);
var _local5 = new churchill.game.Hanglider(stage, _local2, _local3, balloon, 0);
items_array.push(_local5);
glider_count++;
}
function create_glider() {
var _local7 = ("glider" + glider_count) + "_mc";
var _local3 = foreground.__get__targetRef().attachMovie("mcHanglider", _local7, foreground.__get__targetRef().getNextHighestDepth());
var _local8 = balloon.__get__yPosition() + 300;
var _local6 = balloon.__get__xPosition() + 100;
var _local4 = churchill.game.MathPlus.getRandBetweenRange(2, 5);
var _local5 = new churchill.game.Coordinate(_local6, _local8);
var _local2 = new churchill.game.Hanglider(stage, _local3, _local5, balloon, _local4);
items_array.push(_local2);
flying_items.push(_local2);
glider_count++;
}
function create_zebraCrossing(x_co, instance_id, isLast) {
var _local4 = ("zebra" + instance_id) + "_mc";
var _local2 = foreground.__get__targetRef().attachMovie("mcZebra", _local4, foreground.__get__targetRef().getNextHighestDepth());
var _local5 = new churchill.game.Coordinate(x_co, 43);
var _local3 = new churchill.game.RoadObstacle(stage, _local2, _local5, balloon, churchill_coach);
road_obstacles.push(_local3);
zCross_stack.push(_local3);
if (isLast) {
churchill_coach.__get__targetRef().swapDepths(_local2);
}
}
function create_finishLine() {
var _local3 = "finishLine_mc";
var _local2 = foreground.__get__targetRef().attachMovie("mcFinishLine", _local3, foreground.__get__targetRef().getNextHighestDepth());
var _local4 = ((stage1_length + stage2_length) + stage3_length) - 150;
var _local5 = new churchill.game.Coordinate(_local4, 10);
finishLine = new churchill.game.FinishLine(stage, _local2, _local5, balloon);
_local2.swapDepths(churchill_coach.__get__targetRef());
}
function create_game_object(linkage_id, instance_name, x_co, y_co, instance_id, isBitmapWorthy, isCollision) {
var _local8 = (instance_name + instance_id) + "_mc";
var _local2 = foreground.__get__targetRef().attachMovie(linkage_id, _local8, foreground.__get__targetRef().getNextHighestDepth());
var _local4 = new churchill.game.Coordinate(x_co, y_co);
var _local6;
var _local5;
if (isCollision) {
var _local3 = new churchill.game.CollisionScenery(stage, _local2, _local4, balloon);
_local6 = _local3.__get__targetRef()._x + _local3.__get__targetRef()._width;
_local5 = _local3.__get__targetRef()._y;
items_array.push(_local3);
} else {
var _local3 = new churchill.game.GameObject(stage, _local2, _local4, balloon);
_local6 = _local3.__get__targetRef()._x + _local3.__get__targetRef()._width;
_local5 = _local3.__get__targetRef()._y;
}
var _local7 = churchill.game.MathPlus.getCordsByStagePostion(_local6, _local5, balloon);
_local2.cacheAsBitmap = isBitmapWorthy;
return(_local7.__get____x());
}
function getItemsInRange() {
var _local2 = 0;
while (_local2 < items_array.length) {
if ((((items_array[_local2].minimum.__x < balloon.action_range.__get__maximum_x()) && (items_array[_local2].maximum.__x > balloon.action_range.__get__minimum_x())) && (items_array[_local2].minimum.__y < balloon.action_range.__get__maximum_y())) && (items_array[_local2].maximum.__y > balloon.action_range.__get__minimum_y())) {
active_items.push(items_array[_local2]);
}
_local2++;
}
_local2 = 0;
while (_local2 < active_items.length) {
com.skivecreative.arrays.ArrayTools.remove(items_array, active_items[_local2]);
_local2++;
}
}
function activeItemsCollisionTest() {
var _local2 = 0;
while (_local2 < active_items.length) {
if (balloon.__get__targetRef().hitTest(active_items[_local2].targetRef)) {
if (active_items[_local2].secondaryTarget == undefined) {
active_items[_local2].action();
} else if (!balloon.__get__targetRef().hitTest(active_items[_local2].secondaryTarget)) {
active_items[_local2].action();
} else if ((active_items[_local2].secondaryTarget != undefined) && (balloon.__get__targetRef().hitTest(active_items[_local2].secondaryTarget))) {
active_items[_local2].secondary_action();
}
}
_local2++;
}
_local2 = 0;
while (_local2 < deleted_items.length) {
if (deleted_items[_local2] != undefined) {
com.skivecreative.arrays.ArrayTools.remove(active_items, deleted_items[_local2]);
delete deleted_items[_local2];
}
_local2++;
}
}
function removeItemsOutOfRange() {
var _local2 = 0;
while (_local2 < active_items.length) {
if ((((active_items[_local2].maximum.__x < balloon.action_range.__get__minimum_x()) || (active_items[_local2].minimum.__x > balloon.action_range.__get__maximum_x())) || (active_items[_local2].maximum.__y < balloon.action_range.__get__minimum_y())) || (active_items[_local2].minimum.__y > balloon.action_range.__get__maximum_y())) {
deleted_items.push(active_items[_local2]);
items_array.push(active_items[_local2]);
}
_local2++;
}
_local2 = 0;
while (_local2 < deleted_items.length) {
if (deleted_items[_local2] != undefined) {
com.skivecreative.arrays.ArrayTools.remove(active_items, deleted_items[_local2]);
}
_local2++;
}
}
function checkCoachObstacles() {
var _local2 = 0;
while (_local2 < road_obstacles.length) {
if (churchill_coach.__get__targetRef().hitTest(road_obstacles[_local2].targetRef)) {
if (road_obstacles[_local2].isActive) {
road_obstacles[_local2].action();
road_obstacles[_local2].isActive = false;
}
}
_local2++;
}
}
function simulate_flight() {
var _local2 = 0;
while (_local2 < flying_items.length) {
flying_items[_local2].fly();
if ((flying_items[_local2].maximum.__x < balloon.action_range.__get__minimum_x()) && (!flying_items[_local2].deleted)) {
flying_items[_local2].deleted = true;
flying_items[_local2].targetRef.removeMovieClip();
}
_local2++;
}
}
function set_road_activity() {
while (deDuped_zcIndexes.length < active_zebraCrossings) {
randomise_road_activity();
}
var _local2 = 0;
while (_local2 < deDuped_zcIndexes.length) {
zCross_stack[deDuped_zcIndexes[_local2]].isActive = true;
_local2++;
}
com.skivecreative.log.Logging.trace("zebra crossings to activate: " + deDuped_zcIndexes);
}
function randomise_road_activity() {
var _local5 = 0;
var _local6 = zCross_stack.length - 1;
var _local4 = new Array();
var _local2 = 0;
while (_local2 < active_zebraCrossings) {
var _local3 = churchill.game.MathPlus.getRandBetweenRange(_local5, _local6);
_local4.push(_local3);
_local2++;
}
deDuped_zcIndexes = com.skivecreative.arrays.ArrayTools.dedupe(_local4);
}
function check_racer_positions() {
if (churchill_coach.__get__xPosition() >= finishLine.__get__endPosition()) {
if (!gameEnded) {
race_over("lose");
}
} else if ((balloon.__get__xPosition() / 2) >= finishLine.__get__endPosition()) {
if (!gameEnded) {
race_over("win");
}
}
}
function race_over(outcome) {
com.skivecreative.sounds.SoundEffects.fadeOut(com.bourre.medias.sound.SoundFactoryManager.getInstance().getSound("churchill_funk"), 2);
Mouse.removeListener(this);
Key.removeListener(this);
clearInterval(airplane_interval);
clearInterval(birds_interval);
clearInterval(chopper_interval);
clearInterval(glider_interval);
gameEnded = true;
isDemo = true;
headsUpDisplay.slide_out_items();
var _local3 = headsUpDisplay.timer.getEndTime();
var _local4 = headsUpDisplay.timer.getEndScore();
_global.gameScore = _local4;
churchill.Navigator.getInstance().goto("endGame", outcome, _local3);
}
function onMouseDown() {
if ((balloon.__get__yPosition() + balloon.__get__startPosition_y()) < balloon.__get__maxAltitude()) {
fuel_interval = setInterval(balloon, "burn_fuel", 100);
}
}
function onMouseUp() {
clearInterval(fuel_interval);
balloon.releaseFlame();
}
function onKeyDown() {
if (Key.getCode() == 80) {
toggle_gamePaused();
}
}
function update() {
balloon.movement();
churchill_coach.drive();
headsUpDisplay.raceProgressBar.__set__balloonDistance(balloon.xPosition);
headsUpDisplay.raceProgressBar.__set__coachDistance(churchill_coach.xPosition);
if (isDemo) {
balloon.__set__verticalSpeed(0);
if (gameEnded) {
balloon.horizontalSpeed = balloon.horizontalSpeed - 0.1;
if (balloon.__get__horizontalSpeed() <= 0) {
balloon.__set__horizontalSpeed(0);
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
}
}
} else {
balloon.setActionRange();
getItemsInRange();
activeItemsCollisionTest();
removeItemsOutOfRange();
simulate_flight();
checkCoachObstacles();
check_racer_positions();
headsUpDisplay.fuelBar.update_fuel_marker(balloon.__get__fuelLevel());
headsUpDisplay.healthBar.update_health_marker(balloon.__get__healthLevel());
headsUpDisplay.timer.run();
headsUpDisplay.pIndicator.setPosition(balloon.__get__xPosition(), churchill_coach.__get__xPosition());
if ((balloon.__get__healthLevel() <= 0) || (balloon.__get__yPosition() <= -250)) {
race_over("dead");
balloon.__get__targetRef().gotoAndStop(2);
}
}
}
function onEnterFrame() {
onEnterFrameHandler();
}
function toggle_gamePaused() {
if (isPaused) {
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, update);
isPaused = false;
headsUpDisplay.timer.unPause();
stage._parent.pause_mc._visible = false;
} else {
delete onEnterFrameHandler;
isPaused = true;
headsUpDisplay.timer.pause();
stage._parent.pause_mc._visible = true;
}
}
function destroy() {
stage._parent.music_mc.gotoAndStop(1);
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
}
var item_count = 0;
var active_zebraCrossings = 5;
var isPaused = false;
var gameEnded = false;
var stage1_length = 2000;
var stage2_length = 2000;
var stage3_length = 2000;
}
Symbol 463 MovieClip [__Packages.churchill.game.Balloon] Frame 0
class churchill.game.Balloon extends com.bourre.events.EventBroadcaster
{
var stage, target, background, foreground, health, default_xSpeed, default_ySpeed, maxFuelLevel, vertical_damp, xPos, yPos, isBeingShocked, isImpacting, action_range, shock_interval, impact_interval;
function Balloon (stage, target, background, foreground) {
super();
this.stage = stage;
this.target = target;
this.background = background;
this.foreground = foreground;
xPosition = (0);
yPosition = (0);
health = maxHealth;
default_xSpeed = horizontalSpeed;
default_ySpeed = verticalSpeed;
maxFuelLevel = fuelLevel;
vertical_damp = 0.95;
init();
}
function get vDamp() {
return(vertical_damp);
}
function set vDamp(vertical_damp) {
this.vertical_damp = vertical_damp;
//return(vDamp);
}
function get xPosition() {
return(xPos);
}
function set xPosition(newPosition) {
xPos = newPosition;
//return(xPosition);
}
function get yPosition() {
return(yPos);
}
function set yPosition(newPosition) {
yPos = newPosition;
//return(yPosition);
}
function get fuelLevel() {
return(fuel);
}
function set fuelLevel(newFuelLevel) {
fuel = newFuelLevel;
//return(fuelLevel);
}
function get healthLevel() {
return(health);
}
function set healthLevel(health) {
this.health = health;
//return(healthLevel);
}
function get horizontalSpeed() {
return(xSpeed);
}
function set horizontalSpeed(newSpeed) {
xSpeed = newSpeed;
//return(horizontalSpeed);
}
function get verticalSpeed() {
return(ySpeed);
}
function set verticalSpeed(newSpeed) {
ySpeed = newSpeed;
//return(verticalSpeed);
}
function get startPosition_x() {
return(startX);
}
function get startPosition_y() {
return(startY);
}
function get targetRef() {
return(target);
}
function get maxAltitude() {
return(max_height);
}
function get shocking() {
return(isBeingShocked);
}
function set shocking(isBeingShocked) {
this.isBeingShocked = isBeingShocked;
//return(shocking);
}
function init() {
target._x = startX;
target._y = startY;
isBeingShocked = false;
isImpacting = false;
}
function initialise_values() {
action_range = new churchill.game.Range();
setActionRange();
}
function setActionRange() {
action_range.__set__minimum_x((xPosition - 400) / 2);
action_range.__set__maximum_x((xPosition + 400) / 2);
action_range.__set__minimum_y(yPosition - 85);
action_range.__set__maximum_y(yPosition + 600);
}
function electric_shock(isThunder) {
if (isThunder == undefined) {
isThunder = false;
}
if (!isBeingShocked) {
target.shock_mc.gotoAndPlay("electricute");
isBeingShocked = true;
shock_interval = setInterval(com.bourre.commands.Delegate.create(this, clear_shock), 3000);
if (_global.fxState == "on") {
if (isThunder) {
target._parent._parent.fx_mc.gotoAndStop("thunder");
} else {
target._parent._parent.fx_mc.gotoAndStop("electric");
}
}
}
}
function impact_sound() {
if ((!isImpacting) && (_global.fxState == "on")) {
target._parent._parent.fx_mc.gotoAndStop("impact");
isImpacting = true;
impact_interval = setInterval(com.bourre.commands.Delegate.create(this, clear_impact), 2500);
}
}
function clear_impact() {
clearInterval(impact_interval);
target._parent._parent.fx_mc.gotoAndStop(1);
isImpacting = false;
}
function clear_shock() {
clearInterval(shock_interval);
target._parent._parent.fx_mc.gotoAndStop(1);
isBeingShocked = false;
}
function burn_fuel() {
if ((yPosition + startPosition_y) < maxAltitude) {
if (fuelLevel > 0) {
if (verticalSpeed < max_ySpeed) {
verticalSpeed = verticalSpeed + 1.8;
}
fuelLevel = fuelLevel - 2;
}
if (!isBurning) {
target.basket_mc.gotoAndPlay(2);
target.canvas_mc.fire_mc.gotoAndPlay(2);
isBurning = true;
if (_global.fxState == "on") {
target._parent._parent.fx_mc.gotoAndStop("flames");
target._parent._parent.fx_mc.gotoAndStop(1);
}
}
}
}
function releaseFlame() {
if (isBurning) {
target.basket_mc.gotoAndPlay("releaseFlame");
target.canvas_mc.fire_mc.gotoAndPlay("releaseFlame");
isBurning = false;
}
}
function movement() {
background.scroll_horizontal(horizontalSpeed / 2);
foreground.scroll_horizontal(horizontalSpeed);
var _local2 = getMovementType();
horizontalSpeed = horizontalSpeed - default_xSpeed;
horizontalSpeed = horizontalSpeed * 0.985;
horizontalSpeed = horizontalSpeed + default_xSpeed;
verticalSpeed = verticalSpeed - default_ySpeed;
verticalSpeed = verticalSpeed * vertical_damp;
verticalSpeed = verticalSpeed + default_ySpeed;
switch (_local2) {
case "Normal flight" :
background.scroll_vertical((verticalSpeed * -1) / 2, this);
foreground.scroll_vertical(verticalSpeed * -1, this);
break;
case "Low flyer - going down" :
lowFlying_descent();
break;
case "Low flyer - going up" :
lowFlying_ascent();
break;
default :
lowFlying_descent();
}
yPosition = yPosition + verticalSpeed;
xPosition = xPosition + horizontalSpeed;
swingBasket();
}
function swingBasket() {
swingSpeed = swingSpeed + ((horizontalSpeed - default_xSpeed) * 0.01);
target.basket_mc._rotation = target.basket_mc._rotation + swingSpeed;
target.canvas_mc._rotation = target.canvas_mc._rotation + (swingSpeed * 0.8);
target.basket_mc._rotation = target.basket_mc._rotation * 0.95;
target.canvas_mc._rotation = target.canvas_mc._rotation * 0.9;
swingSpeed = swingSpeed * 0.9;
}
function getMovementType() {
if (((verticalSpeed < 0) && (yPosition > 0)) || (((verticalSpeed > 0) && (yPosition < (maxAltitude + startPosition_y))) && (yPosition >= 0))) {
return("Normal flight");
}
if ((verticalSpeed < 0) && (yPosition <= 0)) {
return("Low flyer - going down");
}
if ((verticalSpeed > 0) && (yPosition <= 0)) {
return("Low flyer - going up");
}
}
function lowFlying_descent() {
if ((yPosition + startY) > 0) {
target._y = target._y - verticalSpeed;
} else {
verticalSpeed = (0);
}
}
function lowFlying_ascent() {
target._y = target._y - verticalSpeed;
}
var startX = 300;
var startY = 250;
var xSpeed = 5;
var ySpeed = -2.5;
static var max_ySpeed = 6;
var fuel = 300;
var maxHealth = 600;
var swingSpeed = 0;
var isBurning = false;
var max_height = 1000;
}
Symbol 464 MovieClip [__Packages.churchill.game.Range] Frame 0
class churchill.game.Range
{
var min_x, max_x, min_y, max_y;
function Range () {
}
function get minimum_x() {
return(min_x);
}
function set minimum_x(newMin) {
min_x = newMin;
//return(minimum_x);
}
function get maximum_x() {
return(max_x);
}
function set maximum_x(newMax) {
max_x = newMax;
//return(maximum_x);
}
function get minimum_y() {
return(min_y);
}
function set minimum_y(newMin) {
min_y = newMin;
//return(minimum_y);
}
function get maximum_y() {
return(max_y);
}
function set maximum_y(newMax) {
max_y = newMax;
//return(maximum_y);
}
}
Symbol 465 MovieClip [__Packages.churchill.game.IScenery] Frame 0
interface churchill.game.IScenery
{
}
Symbol 466 MovieClip [__Packages.churchill.game.Background] Frame 0
class churchill.game.Background implements churchill.game.IScenery
{
var stage, target, grassTarget;
function Background (stage, target) {
this.stage = stage;
this.target = target;
init();
}
function init() {
target._y = min_yPos;
target.cacheAsBitmap = true;
tile_sky();
}
function tile_sky() {
var _local8 = 750;
var _local7 = target.sky_mc._y;
var _local9 = 0;
var _local2 = 0;
while (_local2 < 8) {
var _local3 = ("sky" + _local2) + "_mc";
var _local4 = (_local2 + 1) * _local8;
target.attachMovie("mcSky", _local3, target.getNextHighestDepth(), {_x:_local4, _y:_local7});
_local2++;
}
}
function tile_grass() {
var _local8 = 1584;
var _local7 = 0;
var _local9 = 0;
var _local2 = 0;
while (_local2 < 3) {
var _local3 = ("grass" + _local2) + "_mc";
var _local4 = _local2 * _local8;
target.attachMovie("mcRollingHills", _local3, target.getNextHighestDepth(), {_x:_local4, _y:_local7});
_local2++;
}
}
function get targetRef() {
return(target);
}
function scroll_horizontal(speed) {
target._x = target._x - speed;
grassTarget._x = grassTarget._x - (speed / 2);
}
function scroll_vertical(speed, balloon) {
target._y = target._y - speed;
grassTarget._y = grassTarget._y - speed;
if (target._y < min_yPos) {
target._y = min_yPos;
}
}
var min_yPos = 500;
}
Symbol 467 MovieClip [__Packages.churchill.game.Foreground] Frame 0
class churchill.game.Foreground implements churchill.game.IScenery
{
var stage, target, overlay_target;
function Foreground (stage, target) {
this.stage = stage;
this.target = target;
init();
}
function init() {
target._y = min_yPos;
tile_road();
}
function set overlayTarget(target) {
overlay_target = target;
//return(overlayTarget);
}
function get overlayTarget() {
return(overlay_target);
}
function tile_road() {
var _local8 = 777;
var _local7 = target.road_mc._y;
var _local9 = 0;
var _local2 = 0;
while (_local2 < 16) {
var _local4 = ("road" + _local2) + "_mc";
var _local3 = (_local2 + 1) * _local8;
target.attachMovie("mcRoad", _local4, target.getNextHighestDepth(), {_x:_local3, _y:_local7});
_local2++;
}
}
function get targetRef() {
return(target);
}
function scroll_horizontal(speed) {
target._x = target._x - speed;
overlay_target._x = overlay_target._x - speed;
}
function scroll_vertical(speed, balloon) {
target._y = target._y - speed;
overlay_target._y = overlay_target._y - speed;
if (target._y < min_yPos) {
target._y = min_yPos;
overlay_target._y = min_yPos;
balloon.__set__yPosition(0);
}
}
var min_yPos = 500;
}
Symbol 468 MovieClip [__Packages.churchill.game.GameObject] Frame 0
class churchill.game.GameObject extends com.bourre.events.EventBroadcaster
{
var stage, target, balloon, xPos, yPos, real_cords, minimum, maximum;
function GameObject (stage, target, cords, balloon) {
super();
this.stage = stage;
this.target = target;
if (balloon != undefined) {
this.balloon = balloon;
}
xPosition = (cords.__x);
yPosition = (cords.__y);
positionTarget();
set_targetBounds();
}
function get xPosition() {
return(xPos);
}
function set xPosition(newPosition) {
xPos = newPosition;
//return(xPosition);
}
function get yPosition() {
return(yPos);
}
function set yPosition(newPosition) {
yPos = newPosition;
//return(yPosition);
}
function get targetRef() {
return(target);
}
function positionTarget() {
real_cords = churchill.game.MathPlus.getStagePositionByCords(xPosition, yPosition, balloon);
target._x = real_cords.__x;
target._y = real_cords.__y;
}
function set_targetBounds() {
var _local3 = real_cords.__get____y() + target._height;
var _local4 = real_cords.__get____x() + target._width;
var _local2 = churchill.game.MathPlus.getCordsByStagePostion(_local4, _local3, balloon);
minimum = new churchill.game.Coordinate(xPosition, _local2.__get____y());
maximum = new churchill.game.Coordinate(_local2.__get____x(), yPosition);
}
}
Symbol 469 MovieClip [__Packages.churchill.game.Coordinate] Frame 0
class churchill.game.Coordinate
{
var x, y;
function Coordinate (x, y) {
this.x = x;
this.y = y;
}
function get __x() {
return(x);
}
function set __x(x) {
this.x = x;
//return(__x);
}
function get __y() {
return(y);
}
function set __y(y) {
this.y = y;
//return(__y);
}
}
Symbol 470 MovieClip [__Packages.churchill.game.MathPlus] Frame 0
class churchill.game.MathPlus extends Math
{
function MathPlus () {
super();
}
static function getRandBetweenRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
static function getCordsByStagePostion(x, y, balloon) {
var _local2 = (x - balloon.__get__startPosition_x()) / 2;
var _local1 = y * -1;
var _local3 = new churchill.game.Coordinate(_local2, _local1);
return(_local3);
}
static function getStagePositionByCords(x, y, balloon) {
var _local3 = (2 * x) + balloon.__get__startPosition_x();
var _local2 = y / -1;
var _local1 = new churchill.game.Coordinate(_local3, _local2);
return(_local1);
}
}
Symbol 471 MovieClip [__Packages.churchill.game.ChurchillCoach] Frame 0
class churchill.game.ChurchillCoach extends churchill.game.GameObject
{
var speed, target, balloon, __set__xPosition;
function ChurchillCoach (stage, target, cords, balloon, speed) {
super(stage, target, cords, balloon);
this.speed = speed;
}
function get isWaiting() {
return(stopped);
}
function set isWaiting(stopped) {
this.stopped = stopped;
//return(isWaiting);
}
function drive() {
if (!isWaiting) {
target._x = target._x + speed;
update_targetBounds();
}
}
function update_targetBounds() {
var _local2 = churchill.game.MathPlus.getCordsByStagePostion(target._x, target._y, balloon);
__set__xPosition(Math.round(_local2.__get____x()));
}
var stopped = false;
}
Symbol 472 MovieClip [__Packages.churchill.game.FinishLine] Frame 0
class churchill.game.FinishLine extends churchill.game.GameObject
{
var end_position;
function FinishLine (stage, target, cords, balloon) {
super(stage, target, cords, balloon);
end_position = cords.__x;
}
function get endPosition() {
return(end_position);
}
}
Symbol 473 MovieClip [__Packages.churchill.game.HeadsUpDisplay] Frame 0
class churchill.game.HeadsUpDisplay
{
var stage, target;
function HeadsUpDisplay (stage, target) {
this.stage = stage;
this.target = target;
init();
}
function init() {
target._y = 15;
target._x = 735;
}
function set_fuelDisplay(e) {
var _local2 = e.getNumber();
target.fuel_txt.text = _local2;
}
function set_altitudeDisplay(e) {
var _local2 = Math.round(e.getNumber()) + 250;
_local2 = ((_local2 < 0) ? 0 : (_local2));
target.altitude_txt.text = _local2;
}
function set_distance(e) {
var _local2 = Math.round(e.getNumber() / 2);
target.horizontal_txt.text = _local2;
}
function set_inRange(e) {
var _local2 = e.getTarget();
target.range_txt.text = _local2 + " objects in range!";
}
}
Symbol 474 MovieClip [__Packages.com.bourre.events.NumberEvent] Frame 0
class com.bourre.events.NumberEvent extends com.bourre.events.BasicEvent
{
var _n, getType;
function NumberEvent (e, n) {
super(e);
_n = n;
}
function getNumber() {
return(_n);
}
function setNumber(n) {
_n = n;
}
function toString() {
return((((com.bourre.log.PixlibStringifier.stringify(this) + " : ") + getType()) + ", ") + getNumber());
}
}
Symbol 475 MovieClip [__Packages.churchill.game.HeadsUpDisplayUnit] Frame 0
class churchill.game.HeadsUpDisplayUnit
{
var stage, raceProgressBar, fuelBar, timer, pIndicator, healthBar, soundToggle, fxToggle;
function HeadsUpDisplayUnit (stage, totalDistance, maxFuelLevel, maxHealth) {
this.stage = stage;
create_progressBar(totalDistance);
create_healthBar(maxHealth);
create_fuelBar(maxFuelLevel);
create_timer();
create_positionIndicator();
create_fxToggle();
create_soundToggle();
bring_in_items();
}
function bring_in_items() {
var _local4 = raceProgressBar.__get__targetRef();
var _local5 = fuelBar.__get__targetRef();
var _local2 = timer.__get__targetRef();
var _local6 = pIndicator.__get__targetRef();
var _local7 = healthBar.__get__targetRef();
var _local3 = stage.soundToggle_mc;
var _local13 = _local4._x;
var _local10 = _local5._x;
var _local12 = _local2._x;
var _local11 = _local6._x;
var _local9 = _local7._x;
var _local8 = _local3._x;
_local4._x = 800;
_local5._x = 800;
_local7._x = 800;
_local2._x = 800;
_local6._x = -250;
_local3._x = -300;
com.mosesSupposes.fuse.ZigoEngine.doTween(_local6, "_x", _local11, 0.4, "easeInOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local2, "_x", _local12, 0.4, "easeInOutExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_x", _local8, 0.4, "easeInOutExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local7, "_x", _local9, 0.4, "easeInOutExpo", 0.4);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local5, "_x", _local10, 0.4, "easeInOutExpo", 0.6);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_x", _local13, 0.6, "easeInOutExpo", 0.8);
}
function slide_out_items() {
var _local3 = raceProgressBar.__get__targetRef();
var _local4 = fuelBar.__get__targetRef();
var _local2 = timer.__get__targetRef();
var _local5 = pIndicator.__get__targetRef();
var _local6 = healthBar.__get__targetRef();
com.mosesSupposes.fuse.ZigoEngine.doTween(_local5, "_x", -250, 0.4, "easeInOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local2, "_x", 800, 0.4, "easeInOutExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local6, "_x", 800, 0.4, "easeInOutExpo", 0.3);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_x", 800, 0.4, "easeInOutExpo", 0.4);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_x", 800, 0.4, "easeInOutExpo", 0.5);
}
function create_soundToggle() {
var _local2 = stage.attachMovie("soundToggle", "soundToggle_mc", stage.getNextHighestDepth(), {_x:13, _y:475});
soundToggle = new churchill.game.hud.SoundToggle(stage, _local2);
}
function create_fxToggle() {
var _local2 = stage.attachMovie("fxToggle", "fxToggle_mc", stage.getNextHighestDepth(), {_x:50, _y:465});
fxToggle = new churchill.game.hud.FxToggle(stage, _local2);
}
function create_progressBar(totalDistance) {
var _local2 = "progressBar_mc";
var _local3 = stage.attachMovie("mcProgress", _local2, stage.getNextHighestDepth(), {_x:572, _y:440});
raceProgressBar = new churchill.game.hud.ProgressBar(stage, _local3, totalDistance);
}
function create_healthBar(maxHealth) {
var _local2 = "healthBar_mc";
var _local3 = stage.attachMovie("mcHealthBar", _local2, stage.getNextHighestDepth(), {_x:528, _y:75});
healthBar = new churchill.game.hud.HealthBar(stage, _local3, maxHealth);
}
function create_fuelBar(maxFuelLevel) {
var _local3 = "fuelBar_mc";
var _local2 = stage.attachMovie("mcFuelBar", _local3, stage.getNextHighestDepth(), {_x:528, _y:110});
fuelBar = new churchill.game.hud.FuelBar(stage, _local2, maxFuelLevel);
}
function create_timer() {
var _local3 = "timer_mc";
var _local2 = stage.attachMovie("mcTimer", _local3, stage.getNextHighestDepth(), {_x:560, _y:3});
timer = new churchill.game.hud.Timer(stage, _local2);
}
function create_positionIndicator() {
var _local3 = "position_mc";
var _local2 = stage.attachMovie("mcPositionIndicator", _local3, stage.getNextHighestDepth(), {_x:5, _y:3});
pIndicator = new churchill.game.hud.PositionIndicator(stage, _local2);
}
}
Symbol 476 MovieClip [__Packages.churchill.game.hud.ProgressBar] Frame 0
class churchill.game.hud.ProgressBar
{
var stage, target, totalDistance, markerIncrement, balloon_distance, coach_distance;
function ProgressBar (stage, target, totalDistance) {
this.stage = stage;
this.target = target;
this.totalDistance = totalDistance;
markerIncrement = set_increment_value();
}
function get balloonDistance() {
return(balloon_distance);
}
function set balloonDistance(new_distance) {
balloon_distance = new_distance;
balloon_distance = balloon_distance * 0.5;
update_balloon_tracker(balloon_distance);
//return(balloonDistance);
}
function get coachDistance() {
return(coach_distance);
}
function set coachDistance(new_distance) {
coach_distance = new_distance;
update_coach_tracker(coach_distance);
//return(coachDistance);
}
function get targetRef() {
return(target);
}
function set_increment_value() {
var _local2 = barLength / totalDistance;
return(_local2);
}
function update_balloon_tracker(distance) {
target.balloonMarker._x = (distance * markerIncrement) + markerStartPos;
}
function update_coach_tracker(distance) {
target.coachMarker._x = (distance * markerIncrement) + markerStartPos;
}
var barLength = 127;
var markerStartPos = 8.3;
}
Symbol 477 MovieClip [__Packages.churchill.game.hud.FuelBar] Frame 0
class churchill.game.hud.FuelBar
{
var stage, target, maxFuelLevel, markerIncrement;
function FuelBar (stage, target, maxFuelLevel) {
this.stage = stage;
this.target = target;
this.maxFuelLevel = maxFuelLevel;
markerIncrement = set_increment_value();
}
function get targetRef() {
return(target);
}
function set_increment_value() {
var _local2 = fuelBarLength / maxFuelLevel;
return(_local2);
}
function update_fuel_marker(fuelAmount) {
target.fuelMarker._x = ((maxFuelLevel - fuelAmount) * markerIncrement) + markerStartPos;
}
static var fuelBarLength = 186;
static var markerStartPos = -8;
}
Symbol 478 MovieClip [__Packages.churchill.game.hud.Timer] Frame 0
class churchill.game.hud.Timer
{
var stage, target, timeAtStart, pausedAt, unPausedAt, minutes, seconds, milliseconds, mins_string, secs_string, mSecs_string;
function Timer (stage, target) {
this.stage = stage;
this.target = target;
target.timer_mc.time_mc.masked.time_txt.text = (target.timer_mc.time_mc.txt2.text = (target.timer_mc.time_mc.txt3.text = "00'00''00"));
}
function get targetRef() {
return(target);
}
function setModifier() {
timeAtStart = getTimer();
}
function pause() {
pausedAt = getTimer();
}
function unPause() {
unPausedAt = getTimer();
pauseLength = pauseLength + (unPausedAt - pausedAt);
com.skivecreative.log.Logging.trace("paused for: " + pauseLength);
}
function run() {
var _local2 = (getTimer() - timeAtStart) - pauseLength;
minutes = getMinutes(_local2);
seconds = getSeconds(_local2, minutes);
milliseconds = getMilliseconds(_local2, minutes, seconds);
mins_string = formatTime(minutes);
secs_string = formatTime(seconds);
mSecs_string = formatTime(milliseconds);
var _local3 = (((mins_string + "'") + secs_string) + "''") + mSecs_string;
target.timer_mc.time_mc.masked.time_txt.text = (target.timer_mc.time_mc.txt2.text = (target.timer_mc.time_mc.txt3.text = _local3));
}
function getEndTime() {
var _local2 = (((mins_string + "'") + secs_string) + "''") + mSecs_string;
return(_local2);
}
function getEndScore() {
var _local2;
if (String(minutes) == "0") {
_local2 = String(seconds) + String(milliseconds);
} else {
_local2 = (String(minutes) + String(seconds)) + String(milliseconds);
}
return(_local2);
}
function getMinutes(mSecsElapsed) {
var _local1 = Math.floor(mSecsElapsed / 60000);
return(_local1);
}
function getSeconds(mSecsElapsed, minsElapsed) {
var _local2 = mSecsElapsed - (minsElapsed * 60000);
var _local1 = Math.floor(_local2 / 1000);
return(_local1);
}
function getMilliseconds(mSecsElapsed, minsElapsed, secsElapsed) {
var _local2 = mSecsElapsed - (minsElapsed * 60000);
var _local1 = Math.floor((_local2 - (secsElapsed * 1000)) / 10);
return(_local1);
}
function formatTime(timeVal) {
var _local1;
if (timeVal < 10) {
_local1 = "0" + String(timeVal);
} else {
_local1 = String(timeVal);
}
return(_local1);
}
var pauseLength = 0;
}
Symbol 479 MovieClip [__Packages.churchill.game.hud.PositionIndicator] Frame 0
class churchill.game.hud.PositionIndicator
{
var stage, target;
function PositionIndicator (stage, target) {
this.stage = stage;
this.target = target;
}
function get targetRef() {
return(target);
}
function setPosition(balloonPosition, coachPosition) {
if ((balloonPosition / 2) >= coachPosition) {
target.gotoAndStop(1);
} else {
target.gotoAndStop(2);
}
}
}
Symbol 480 MovieClip [__Packages.churchill.game.hud.HealthBar] Frame 0
class churchill.game.hud.HealthBar
{
var stage, target, maxLevel, markerIncrement;
function HealthBar (stage, target, maxLevel) {
this.stage = stage;
this.target = target;
this.maxLevel = maxLevel;
markerIncrement = set_increment_value();
}
function get targetRef() {
return(target);
}
function set_increment_value() {
var _local2 = barLength / maxLevel;
return(_local2);
}
function update_health_marker(healthLevel) {
target.healthMarker._x = ((maxLevel - healthLevel) * markerIncrement) + markerStartPos;
}
var barLength = 187;
var markerStartPos = 30;
}
Symbol 481 MovieClip [__Packages.churchill.game.hud.SoundToggle] Frame 0
class churchill.game.hud.SoundToggle
{
var stage, target;
function SoundToggle (stage, target) {
this.stage = stage;
this.target = target;
if (_global.soundState == "off") {
target.gotoAndStop("off");
}
target.onRelease = com.bourre.commands.Delegate.create(this, toggle);
}
function toggle() {
if (_global.soundState == "on") {
_global.soundState = "off";
target.gotoAndStop("off");
com.skivecreative.sounds.SoundEffects.fadeOut(com.bourre.medias.sound.SoundFactoryManager.getInstance().getSound("churchill_funk"), 1);
} else {
_global.soundState = "on";
target.gotoAndStop("on");
com.bourre.medias.sound.SoundFactoryManager.getInstance().getSound("churchill_funk").start(2, 3);
}
}
}
Symbol 482 MovieClip [__Packages.churchill.game.hud.FxToggle] Frame 0
class churchill.game.hud.FxToggle
{
var stage, target;
function FxToggle (stage, target) {
this.stage = stage;
this.target = target;
if (_global.fxState == "off") {
target.gotoAndStop("off");
}
target.onRelease = com.bourre.commands.Delegate.create(this, toggle);
}
function toggle() {
if (_global.fxState == "on") {
_global.fxState = "off";
target.gotoAndStop("off");
} else {
_global.fxState = "on";
target.gotoAndStop("on");
}
}
}
Symbol 483 MovieClip [__Packages.churchill.game.StartLights] Frame 0
class churchill.game.StartLights
{
var stage, target, g, redInterval, amberInterval, greenInterval, startInterval, removeInterval;
function StartLights (stage, target, g) {
this.stage = stage;
this.target = target;
this.g = g;
redInterval = setInterval(com.bourre.commands.Delegate.create(this, goRed), 100);
}
function goRed() {
clearInterval(redInterval);
target.gotoAndStop("three");
amberInterval = setInterval(com.bourre.commands.Delegate.create(this, goAmber), 1000);
}
function goAmber() {
clearInterval(amberInterval);
target.gotoAndStop("two");
greenInterval = setInterval(com.bourre.commands.Delegate.create(this, goGreen), 1000);
}
function goGreen() {
clearInterval(greenInterval);
target.gotoAndStop("one");
startInterval = setInterval(com.bourre.commands.Delegate.create(this, start), 1000);
if (_global.soundState == "on") {
com.bourre.medias.sound.SoundFactoryManager.getInstance().getSound("churchill_funk").start(2, 3);
}
}
function start() {
clearInterval(startInterval);
target.gotoAndStop("go");
g.startGame();
removeInterval = setInterval(com.bourre.commands.Delegate.create(this, remove), 1500);
}
function remove() {
clearInterval(removeInterval);
target.removeMovieClip();
}
}
Symbol 484 MovieClip [__Packages.com.bourre.medias.sound.SoundFactory] Frame 0
class com.bourre.medias.sound.SoundFactory
{
var _oEB, _bIsInitialized, _oSounds, _nDepth, _bIsOn, _noSound, _oContainer;
function SoundFactory () {
_oEB = new com.bourre.events.EventBroadcaster(this);
_bIsInitialized = false;
_oSounds = new Object();
_nDepth = 1;
_bIsOn = true;
}
function addListener(oL) {
_oEB.addListener(oL);
}
function addEventListener(e, oL) {
_oEB.addEventListener(e, oL);
}
function removeListener(oL) {
_oEB.removeListener(oL);
}
function removeEventListener(e, oL) {
_oEB.removeEventListener(e, oL);
}
function init(mcTarget) {
_init(mcTarget);
}
function getSound(sID) {
return((_bIsOn ? (_oSounds[sID]) : (_noSound)));
}
function playSoundLoop(sID) {
getSound(sID).start(0, 65535);
}
function loadSound(sURL, linkageID) {
if (!_bIsInitialized) {
_init();
}
if (!linkageID) {
linkageID = sURL.substring(sURL.lastIndexOf("/") + 1, sURL.lastIndexOf("."));
}
_oSounds[linkageID] = _makeSound(linkageID, _nDepth, sURL);
_nDepth++;
return(linkageID);
}
function removeSound(sID) {
var _local2 = _oContainer["sound" + sID];
_local2.removeMovieClip();
delete _oSounds[sID];
}
function addSound(linkageID) {
if (!_bIsInitialized) {
_init();
}
_oSounds[linkageID] = _makeSound(linkageID, _nDepth);
_nDepth++;
return(linkageID);
}
function addSounds(a) {
var _local3 = a.length;
var _local2 = 0;
while (_local2 < _local3) {
addSound(a[_local2]);
_local2++;
}
}
function toggleOnOff() {
if (_bIsOn) {
goOff();
} else {
goOn();
}
}
function get isOn() {
return(_bIsOn);
}
function goOn() {
_bIsOn = true;
}
function goOff() {
_bIsOn = false;
for (var _local2 in _oSounds) {
_oSounds[_local2].stop();
}
}
function getAllSounds() {
var _local2 = new Array();
for (var _local3 in _oSounds) {
_local2.push(_oSounds[_local3]);
}
return(_local2);
}
function clear() {
_oEB.removeAllListeners();
delete _oSounds;
_oContainer.removeMovieClip();
_bIsInitialized = false;
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function _init(mcTarget) {
_oContainer = ((mcTarget == undefined) ? (_level0.createEmptyMovieClip("__snd__", 65535)) : (mcTarget));
_noSound = _makeSound("", 0);
_bIsInitialized = true;
}
function _makeSound(sLinkageID, nSoundID, sURL) {
var _local5 = _oContainer.createEmptyMovieClip("sound" + sLinkageID, nSoundID);
var _local2 = new Sound(_local5);
if (sURL) {
var _local3 = new com.bourre.events.DynBasicEvent(onSoundLoadEVENT);
_local3.soundID = sLinkageID;
_local3.soundURL = sURL;
_local2.onLoad = com.bourre.commands.Delegate.create(this, _fireEvent, _local3);
_local2.loadSound(sURL, false);
} else {
_local2.attachSound(sLinkageID);
}
return(_local2);
}
function _fireEvent(b, e) {
e.success = b;
_oEB.broadcastEvent(e);
}
static var onSoundLoadEVENT = new com.bourre.events.EventType("onSoundLoad");
}
Symbol 485 MovieClip [__Packages.com.bourre.medias.sound.SoundFactoryManager] Frame 0
class com.bourre.medias.sound.SoundFactoryManager extends com.bourre.medias.sound.SoundFactory
{
static var _oI;
function SoundFactoryManager () {
super();
}
static function getInstance() {
return(((_oI instanceof com.bourre.medias.sound.SoundFactoryManager) ? (_oI) : (_buildInstance())));
}
static function release() {
_oI.clear();
delete _oI;
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
static function _buildInstance() {
_oI = new com.bourre.medias.sound.SoundFactoryManager();
return(_oI);
}
}
Symbol 486 MovieClip [__Packages.churchill.game.Cloud] Frame 0
class churchill.game.Cloud extends churchill.game.GameObject
{
var cloudType, target;
function Cloud (stage, target, cords, balloon, cloudType) {
super(stage, target, cords, balloon);
this.cloudType = cloudType;
setCloudType();
}
function setCloudType() {
switch (cloudType) {
case "low1" :
target._width = 295;
target._height = 80;
target._alpha = 50;
break;
case "low2" :
target._width = 383;
target._height = 104;
break;
case "mid" :
target._width = 442;
target._height = 120;
break;
case "high1" :
target._width = 590;
target._height = 160;
}
if (Math.round(Math.random())) {
var _local2 = target._xscale;
target._xscale = _local2 * -1;
}
target.cacheAsBitmap = true;
}
}
Symbol 487 MovieClip [__Packages.churchill.game.IAerialObject] Frame 0
interface churchill.game.IAerialObject
{
}
Symbol 488 MovieClip [__Packages.churchill.game.FuelPickup] Frame 0
class churchill.game.FuelPickup extends churchill.game.GameObject implements churchill.game.IAerialObject
{
var target, balloon;
function FuelPickup (stage, target, cords, balloon) {
super(stage, target, cords, balloon);
}
function action() {
target.removeMovieClip();
balloon.fuelLevel = balloon.fuelLevel + fuelAmount;
if (balloon.__get__fuelLevel() > balloon.maxFuelLevel) {
balloon.__set__fuelLevel(balloon.maxFuelLevel);
}
}
var fuelAmount = 75;
}
Symbol 489 MovieClip [__Packages.churchill.game.Wind] Frame 0
class churchill.game.Wind extends churchill.game.GameObject implements churchill.game.IAerialObject
{
var speed, direction, set_targetBounds, target, balloon;
function Wind (stage, target, speed, direction, cords, balloon) {
super(stage, target, cords, balloon);
this.speed = speed;
this.direction = direction;
setTargetDisplay();
set_targetBounds();
}
function setTargetDisplay() {
target.gotoAndStop(direction);
}
function action() {
switch (direction) {
case "easterly" :
balloon.horizontalSpeed = balloon.horizontalSpeed - speed;
break;
case "westerly" :
balloon.horizontalSpeed = balloon.horizontalSpeed + speed;
break;
case "northerly" :
balloon.verticalSpeed = balloon.verticalSpeed - speed;
break;
case "southerly" :
balloon.verticalSpeed = balloon.verticalSpeed + speed;
}
}
}
Symbol 490 MovieClip [__Packages.churchill.game.RainCloud] Frame 0
class churchill.game.RainCloud extends churchill.game.GameObject implements churchill.game.IAerialObject
{
var balloon;
function RainCloud (stage, target, cords, balloon) {
super(stage, target, cords, balloon);
target.cacheAsBitmap = true;
}
function action() {
balloon.verticalSpeed = balloon.verticalSpeed - rainStrength;
}
static var rainStrength = 0.08;
}
Symbol 491 MovieClip [__Packages.churchill.game.LightningBolt] Frame 0
class churchill.game.LightningBolt extends churchill.game.GameObject
{
var balloon;
function LightningBolt (stage, target, cords, balloon) {
super(stage, target, cords, balloon);
}
function action() {
balloon.healthLevel = balloon.healthLevel - damage;
balloon.electric_shock(true);
}
var damage = 1;
}
Symbol 492 MovieClip [__Packages.churchill.game.FlyingObject] Frame 0
class churchill.game.FlyingObject extends churchill.game.GameObject
{
var speed, __name, start_cords, isDeleted, target, balloon, minimum, maximum;
function FlyingObject (stage, target, cords, balloon, speed, __name) {
super(stage, target, cords, balloon);
this.speed = speed;
this.__name = __name;
start_cords = cords;
isDeleted = false;
}
function get nameString() {
return(__name);
}
function get deleted() {
return(isDeleted);
}
function set deleted(value) {
isDeleted = value;
//return(deleted);
}
function fly() {
if (!isDeleted) {
target._x = target._x - speed;
update_targetBounds();
}
}
function update_targetBounds() {
var _local2 = churchill.game.MathPlus.getCordsByStagePostion(target._x, target._y, balloon);
minimum.__set____x(_local2.__x);
_local2 = churchill.game.MathPlus.getCordsByStagePostion(target._x + target._width, target._y, balloon);
maximum.__set____x(_local2.__x);
}
}
Symbol 493 MovieClip [__Packages.churchill.game.Airplane] Frame 0
class churchill.game.Airplane extends churchill.game.FlyingObject implements churchill.game.IAerialObject
{
var secondary_target, target, isDeleted, balloon;
function Airplane (stage, target, cords, balloon, speed) {
super(stage, target, cords, balloon, speed, "airplane");
create_slipStream();
target.cacheAsBitmap = true;
}
function get secondaryTarget() {
return(secondary_target);
}
function create_slipStream() {
var _local3 = "slipstream_mc";
var _local2 = target.attachMovie("mcSlipStream", _local3, target.getNextHighestDepth());
_local2._x = target._width;
secondary_target = _local2;
}
function action() {
if (!isDeleted) {
balloon.healthLevel = balloon.healthLevel - damage;
balloon.impact_sound();
}
}
function secondary_action() {
if (!isDeleted) {
balloon.horizontalSpeed = balloon.horizontalSpeed + slipSpeed;
}
}
static var slipSpeed = 0.4;
var damage = 2;
}
Symbol 494 MovieClip [__Packages.churchill.game.FlockOfBirds] Frame 0
class churchill.game.FlockOfBirds extends churchill.game.FlyingObject implements churchill.game.IAerialObject
{
var isDeleted, balloon;
function FlockOfBirds (stage, target, cords, balloon, speed) {
super(stage, target, cords, balloon, speed, "birds");
}
function action() {
if (!isDeleted) {
balloon.verticalSpeed = balloon.verticalSpeed - down_speed;
balloon.horizontalSpeed = balloon.horizontalSpeed - slow_speed;
balloon.healthLevel = balloon.healthLevel - damage;
balloon.impact_sound();
}
}
var slow_speed = 0.1;
var down_speed = 0.05;
var damage = 0.8;
}
Symbol 495 MovieClip [__Packages.churchill.game.Helicopter] Frame 0
class churchill.game.Helicopter extends churchill.game.FlyingObject implements churchill.game.IAerialObject
{
var isDeleted, balloon;
function Helicopter (stage, target, cords, balloon, speed) {
super(stage, target, cords, balloon, speed, "chopper");
}
function action() {
if (!isDeleted) {
balloon.verticalSpeed = balloon.verticalSpeed - down_speed;
balloon.horizontalSpeed = balloon.horizontalSpeed - slow_speed;
balloon.healthLevel = balloon.healthLevel - damage;
balloon.impact_sound();
}
}
var slow_speed = 0.1;
var down_speed = 0.05;
var damage = 2;
}
Symbol 496 MovieClip [__Packages.churchill.game.Hanglider] Frame 0
class churchill.game.Hanglider extends churchill.game.FlyingObject implements churchill.game.IAerialObject
{
var isDeleted, balloon;
function Hanglider (stage, target, cords, balloon, speed) {
super(stage, target, cords, balloon, speed, "glider");
}
function action() {
if (!isDeleted) {
balloon.verticalSpeed = balloon.verticalSpeed - down_speed;
balloon.horizontalSpeed = balloon.horizontalSpeed - slow_speed;
balloon.healthLevel = balloon.healthLevel - damage;
balloon.impact_sound();
}
}
var slow_speed = 0.1;
var down_speed = 0.05;
var damage = 2;
}
Symbol 497 MovieClip [__Packages.churchill.game.RoadObstacle] Frame 0
class churchill.game.RoadObstacle extends churchill.game.GameObject
{
var coach, coachInterval;
function RoadObstacle (stage, target, cords, balloon, coach) {
super(stage, target, cords, balloon);
this.coach = coach;
}
function get isActive() {
return(used);
}
function set isActive(used) {
this.used = used;
//return(isActive);
}
function action() {
coach.__set__isWaiting(true);
coachInterval = setInterval(this, "releaseCoach", wait * 1000);
}
function releaseCoach() {
clearInterval(coachInterval);
coach.__set__isWaiting(false);
}
var used = false;
static var wait = 3;
}
Symbol 498 MovieClip [__Packages.churchill.game.CollisionScenery] Frame 0
class churchill.game.CollisionScenery extends churchill.game.GameObject
{
var balloon;
function CollisionScenery (stage, target, cords, balloon) {
super(stage, target, cords, balloon);
}
function action() {
balloon.healthLevel = balloon.healthLevel - damage;
balloon.electric_shock();
}
var damage = 1;
}
Symbol 499 MovieClip [__Packages.com.skivecreative.arrays.ArrayTools] Frame 0
class com.skivecreative.arrays.ArrayTools
{
function ArrayTools () {
}
static function dedupe(a) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < a.length) {
if (!contains(_local3, a[_local1])) {
_local3.push(a[_local1]);
}
_local1++;
}
return(_local3);
}
static function clone(a, isAssociative) {
var _local4 = new Array();
var _local1;
var _local3;
if (isAssociative) {
for (_local3 in a) {
_local4[_local3] = a[_local3];
}
} else {
_local1 = 0;
while (_local1 < a.length) {
_local4[_local1] = a[_local1];
_local1++;
}
}
return(_local4);
}
static function contains(a, e) {
return(getIndex(a, e) > -1);
}
static function getIndex(a, e) {
var _local1;
_local1 = 0;
while (_local1 < a.length) {
if (a[_local1] == e) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function equals(a, b) {
if (a.length != b.length) {
return(false);
}
var _local1 = 0;
while (_local1 < a.length) {
if (a[_local1] != b[_local1]) {
return(false);
}
_local1++;
}
return(true);
}
static function pushFirst(a, e) {
a.splice(0, 0, e);
}
static function randomize(a) {
var _local5 = new Array();
var _local4 = new Array();
var _local1;
var _local3 = 0;
while (_local3 < a.length) {
do {
_local1 = random(a.length);
} while (contains(_local4, _local1));
_local4.push(_local1);
_local5.push(a[_local1]);
_local3++;
}
return(_local5);
}
static function remove(a, e, n) {
if (n == undefined) {
n = a.length;
}
var _local4 = 0;
var _local1;
while (contains(a, e) && (_local4 < n)) {
_local1 = 0;
while (a[_local1] != e) {
_local1++;
}
a.splice(_local1, 1);
_local4++;
}
return(_local4);
}
static function reverse(a) {
var _local3 = new Array();
var _local1 = a.length - 1;
while (_local1 >= 0) {
_local3.push(a[_local1]);
_local1--;
}
return(_local3);
}
}
Symbol 500 MovieClip [__Packages.com.skivecreative.sounds.SoundEffects] Frame 0
class com.skivecreative.sounds.SoundEffects implements com.bourre.transitions.IFrameListener
{
static var o;
var sounds;
function SoundEffects () {
sounds = new Array();
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
}
static function getInstance() {
if (o == undefined) {
o = new com.skivecreative.sounds.SoundEffects();
}
return(o);
}
static function fadeIn(s, time, isLooping) {
var _local3 = getInstance();
_local3.sounds.push({s:s, init:0, target:s.getVolume(), start:getTimer(), end:getTimer() + (time * 1000), setter:s.setVolume});
var _local2 = (isLooping ? 65535 : 0);
s.setVolume(0);
s.start(0, _local2);
}
static function fadeOut(s, time) {
var _local1 = getInstance();
_local1.sounds.push({s:s, init:s.getVolume(), target:0, start:getTimer(), end:getTimer() + (time * 1000), setter:s.setVolume, finalAction:s.stop, finalValue:s.getVolume()});
var doOnce;
doOnce = setInterval(function () {
clearInterval(doOnce);
s.stop();
}, time * 1000);
}
function onEnterFrame() {
var _local3 = sounds.length - 1;
while (_local3 >= 0) {
var _local2 = sounds[_local3];
var _local4 = (getTimer() - _local2.start) / (_local2.end - _local2.start);
var _local5 = Math.round(_local2.init + (_local4 * (_local2.target - _local2.init)));
if (_local4 >= 1) {
Function(_local2.setter).apply(_local2.s, [_local2.target]);
if (_local2.finalValue) {
Function(_local2.setter).apply(_local2.s, [_local2.finalValue]);
}
if (_local2.finalAction) {
Function(_local2.finalAction).apply(_local2.s);
}
sounds.splice(_local3, 1);
} else {
Function(_local2.setter).apply(_local2.s, [_local5]);
}
_local3--;
}
}
}
Symbol 501 MovieClip [__Packages.churchill.EndGame] Frame 0
class churchill.EndGame
{
var stage, outcome;
function EndGame (stage, endType, endTime) {
this.stage = stage;
outcome = endType;
com.skivecreative.log.Logging.trace(endType);
stage.endGame_mc.header_mc.gotoAndStop(endType);
stage.endGame_mc.panel_mc.gotoAndStop(endType);
if (endType == "win") {
stage.endGame_mc.panel_mc.endTime_txt.text = endTime;
stage.highscores_mc.scoreText_mc.gotoAndStop(2);
}
init();
com.skivecreative.log.Logging.trace("gamescore = " + _global.gameScore);
}
function init() {
var _local3 = stage.restart_mc._x;
var _local2 = stage.highscores_mc._x;
var _local4 = stage.endGame_mc._x;
stage.restart_mc._x = -400;
stage.highscores_mc._x = 1000;
stage.endGame_mc._x = 1300;
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.endGame_mc, "_x", _local4, 1.2, "easeOutExpo", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.restart_mc, "_x", _local3, 1.6, "easeOutExpo", 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.highscores_mc, "_x", _local2, 1.6, "easeOutExpo", 0.5);
stage.restart_mc.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.restart_mc);
stage.highscores_mc.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.highscores_mc);
stage.restart_mc.onRollOut = (stage.restart_mc.onDragOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.restart_mc));
stage.highscores_mc.onRollOut = (stage.highscores_mc.onDragOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.highscores_mc));
stage.restart_mc.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "title");
stage.highscores_mc.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "highscore");
}
function onRelease(targetSection) {
if ((outcome == "win") && (targetSection == "highscore")) {
_global.shouldSaveScore = true;
}
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.endGame_mc, "_x", 1300, 1.6, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.restart_mc, "_x", -400, 1.6, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.highscores_mc, "_x", 1000, 1, "easeOutExpo", 0, {scope:this, func:"goSection", args:[targetSection]});
}
function goSection(targetSection) {
churchill.Navigator.getInstance().goto(targetSection);
}
function onRollOver(btn) {
btn.gotoAndPlay("over");
}
function onRollOut(btn) {
btn.gotoAndPlay("out");
}
function destroy() {
}
}
Symbol 502 MovieClip [__Packages.churchill.HighScores] Frame 0
class churchill.HighScores
{
var stage;
function HighScores (stage) {
this.stage = stage;
init();
}
function init() {
com.skivecreative.log.Logging.trace("mc highscore comp: " + stage.miniclipHS_mc);
stage.miniclipHS_mc.scoreLocation = "_global.gameScore";
stage.miniclipHS_mc.gamename = "balloonchallenge";
stage.miniclipHS_mc.saveScore = _global.shouldSaveScore;
com.skivecreative.log.Logging.trace("mc highscore comp gamename: " + stage.miniclipHS_mc.gamename);
com.skivecreative.log.Logging.trace("mc highscore comp scoreLocation: " + stage.miniclipHS_mc.scoreLocation);
com.skivecreative.log.Logging.trace("mc highscore comp saveScore: " + stage.miniclipHS_mc.saveScore);
var _local4 = stage.menu_mc._x;
stage.menu_mc._x = -400;
var _local3 = stage.start_mc._x;
stage.start_mc._x = -400;
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.start_mc, "_x", _local3, 1.3, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.menu_mc, "_x", _local4, 1, "easeOutExpo", 0.3);
stage.start_mc.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.start_mc);
stage.start_mc.onRollOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.start_mc);
stage.start_mc.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "game");
stage.menu_mc.onRollOver = com.bourre.commands.Delegate.create(this, onRollOver, stage.menu_mc);
stage.menu_mc.onRollOut = com.bourre.commands.Delegate.create(this, onRollOut, stage.menu_mc);
stage.menu_mc.onRelease = com.bourre.commands.Delegate.create(this, onRelease, "title");
}
function onRelease(targetSection) {
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.start_mc, "_x", 1100, 0.8, "easeInExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.menu_mc, "_x", 1100, 0.8, "easeInExpo", 0.3, {scope:this, func:"goSection", args:[targetSection]});
}
function goSection(targetSection) {
churchill.Navigator.getInstance().goto(targetSection);
}
function onRollOver(btn) {
btn.gotoAndPlay("over");
}
function onRollOut(btn) {
btn.gotoAndPlay("out");
}
}
Symbol 5 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 6 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 6 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 60
Symbol 21 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 23 MovieClip Frame 1
this._visible = false;
Symbol 28 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 33 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 33 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 33 MovieClip Frame 12
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 100
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 47 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 23 MovieClip "mcIntro" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 47 MovieClip Frame 2
_visible = true;
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 46 MovieClip "mcLoadingAnimated" in Symbol 47 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 47 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 47 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
_root.gotoAndStop(2);
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 25
stop();
Symbol 71 MovieClip Frame 50
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 25
stop();
Symbol 77 MovieClip Frame 50
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 37
stop();
Symbol 90 MovieClip Frame 136
stop();
Symbol 91 MovieClip [mcBalloon] Frame 1
stop();
this.hitArea = hit_mc;
hit_mc._visible = false;
Symbol 91 MovieClip [mcBalloon] Frame 2
stop();
Instance of Symbol 149 MovieClip [mcCloud] in Symbol 150 MovieClip [mcRainCloud] Frame 1
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Symbol 165 MovieClip [mcPositionIndicator] Frame 1
stop();
Symbol 165 MovieClip [mcPositionIndicator] Frame 2
stop();
Symbol 175 MovieClip Frame 1
masked.cacheAsBitmap = true;
mask.cacheAsBitmap = true;
masked.setMask(mask);
Symbol 196 MovieClip [mcStartLights] Frame 1
stop();
Symbol 196 MovieClip [mcStartLights] Frame 10
stop();
Symbol 196 MovieClip [mcStartLights] Frame 20
stop();
Symbol 196 MovieClip [mcStartLights] Frame 30
stop();
Symbol 222 MovieClip [fuelPickup] Frame 1
this.hitArea = hit_mc;
hit_mc._visible = false;
Symbol 299 MovieClip [fxToggle] Frame 1
stop();
Symbol 299 MovieClip [fxToggle] Frame 10
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 318 MovieClip Frame 60
stop();
Symbol 324 MovieClip Frame 30
stop();
Symbol 324 MovieClip Frame 37
stop();
Symbol 330 MovieClip Frame 6
t_title_g.cacheAsBitmap = true;
titleMask.cacheAsBitmap = true;
t_title_g.setMask(titleMask);
Symbol 330 MovieClip Frame 22
stop();
Symbol 330 MovieClip Frame 34
stop();
Symbol 334 MovieClip Frame 21
stop();
Symbol 334 MovieClip Frame 25
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 8
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 8
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 8
stop();
Symbol 354 MovieClip [soundToggle] Frame 1
stop();
Symbol 354 MovieClip [soundToggle] Frame 5
stop();
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Instance of Symbol 358 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (load) {
_x = ((math.random() * 800) - 150);
speed = (math.random() * 1) + 0.5;
}
onClipEvent (enterFrame) {
_x = (_x + speed);
if (_x > 650) {
_x = -150;
}
}
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 8
stop();
Symbol 394 MovieClip Frame 1
hit_mc.onRelease = function () {
getURL ("http://clk.atdmt.com/CHU/go/bltxxchi0080000019chu/direct/01/", "_blank");
var _local1 = new LoadVars();
_local1.load("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/churchill_clicks/142334@x01");
};
Symbol 394 MovieClip Frame 2
hit_mc.onRelease = function () {
getURL ("http://clk.atdmt.com/CHU/go/bltxxchi0080000019chu/direct/01/", "_blank");
var _local1 = new LoadVars();
_local1.load("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/churchill_clicks/142334@x01");
};
Symbol 394 MovieClip Frame 3
hit_mc.onRelease = function () {
getURL ("http://clk.atdmt.com/CHU/go/bltxxchi0080000019chu/direct/01/", "_blank");
var _local1 = new LoadVars();
_local1.load("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/churchill_clicks/142334@x01");
};
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
stop();
Symbol 399 MovieClip Frame 3
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 8
stop();
Symbol 411 MovieClip Frame 1
this._visible = false;
Symbol 420 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 422 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 411 MovieClip "mcHighscores" in Symbol 422 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 422 MovieClip Frame 2
if (scoreLocation == undefined) {
}
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 422 MovieClip Frame 3
stop();