Frame 1
function showAudioPrompt() {
soundPrompt_mc._alpha = 0;
soundPrompt_mc._visible = true;
trace("fade up audio");
com.mosesSupposes.fuse.ZigoEngine.doTween(soundPrompt_mc, "_alpha", 100, 0.5, "linear", 0.5, {scope:this, func:"removeAudioPrompt"});
}
function removeAudioPrompt() {
soundPrompt_mc.audio_mc._visible = true;
soundPrompt_mc.audio_mc.gotoAndPlay(2);
trace("fade down audio");
com.mosesSupposes.fuse.ZigoEngine.doTween(soundPrompt_mc, "_alpha", 0, 0.5, "linear", 2.5, {scope:this, func:"initializeApplication"});
}
function initializeApplication() {
gotoAndStop ("init");
}
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.PennerEasing);
var loadBar = loader_mc.loadBar_mc;
loadBar._xscale = 0;
loader_mc._alpha = 0;
trace("fade up loader");
com.mosesSupposes.fuse.ZigoEngine.doTween(loader_mc, "_alpha", 100, 0.5, "linear");
soundPrompt_mc.audio_mc.gotoAndStop(1);
soundPrompt_mc.audio_mc._visible = false;
soundPrompt_mc._visible = false;
var loader = loader_mc;
this.onEnterFrame = function () {
var _local3 = getBytesLoaded();
var _local2 = getBytesTotal();
if (_local3 == _local2) {
loadBar._xscale = 100;
delete this.onEnterFrame;
com.mosesSupposes.fuse.ZigoEngine.doTween(loader, "_alpha", 0, 0.5, "linear", 0, {scope:this, func:"showAudioPrompt"});
} else {
var _local4 = Math.round((_local3 / _local2) * 100);
loadBar._xscale = _local4;
}
};
stop();
patapon.App.main(this);
Frame 32
patapon.App.main(this);
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 55
stop();
Symbol 20480 MovieClip [__Packages.patapon.LocalisationManager] Frame 0
class patapon.LocalisationManager
{
static var instance;
var sharedObject, langCode, locale, callBack, localXML, localisedNodes, DOWNLOADS_UNLOCKED, levelType, muteButton, stage, isMute, muteSound;
function LocalisationManager () {
sharedObject = SharedObject.getLocal("patapon_unlocked_downloads");
}
static function getInstance() {
if (instance == undefined) {
instance = new patapon.LocalisationManager();
}
return(instance);
}
function setLangCode(langCode) {
this.langCode = langCode;
}
function setLocale(locale) {
this.locale = locale;
}
function getLocale() {
return(locale);
}
function getLangCode() {
return(langCode);
}
function loadXML(callBack) {
this.callBack = callBack;
localXML = new XML();
localXML.ignoreWhite = true;
localXML.onLoad = com.bourre.commands.Delegate.create(this, onLoadXML);
localXML.load(("xml/patapon_" + langCode) + ".xml");
com.skivecreative.log.Logging.trace(("LOCAL DATA: xml/patapon_" + langCode) + ".xml");
}
function getLocalisedNodes() {
return(localisedNodes);
}
function setDownloadsUnlocked(d) {
if ((DOWNLOADS_UNLOCKED == undefined) || (d > DOWNLOADS_UNLOCKED)) {
sharedObject.data.unlocked = d;
sharedObject.flush();
DOWNLOADS_UNLOCKED = d;
}
}
function getDownloadsUnlocked() {
var _local2 = sharedObject.data.unlocked;
if (_local2 == undefined) {
return(DOWNLOADS_UNLOCKED);
}
return(_local2);
}
function downloadWallpaper(type, ID) {
var _local4 = ((("downloads/" + type) + "/patapon_") + ID) + ".jpg";
getURL (_local4, "_blank");
}
function getLevelType() {
return(levelType);
}
function setLevelType(levelType) {
this.levelType = levelType;
}
function addMuteButton(stage) {
if (muteButton == undefined) {
this.stage = stage;
muteButton = stage.attachMovie("MUTE BUTTON", "muteButton_mc", stage.getNextHighestDepth());
muteButton._x = 755;
muteButton._y = 430;
muteButton._xscale = (muteButton._yscale = 30);
muteButton.gotoAndStop("on");
isMute = false;
muteSound = new Sound(stage);
muteButton.onRelease = com.bourre.commands.Delegate.create(this, toggleMute);
} else {
flushMuteButton();
}
}
function flushMuteButton() {
muteButton.swapDepths(stage.getNextHighestDepth());
}
function toggleMute() {
if (isMute) {
muteSound.setVolume(100);
muteButton.gotoAndStop("on");
isMute = false;
} else {
muteSound.setVolume(0);
muteButton.gotoAndStop("off");
isMute = true;
}
}
function onLoadXML(success) {
if (success) {
localisedNodes = new com.skivecreative.xml.XMLSA(localXML);
com.skivecreative.text.Formatter.addStyles(localisedNodes.styles.style);
} else {
com.skivecreative.log.Logging.trace("FATAL: COULD NOT LOAD XML");
}
callBack();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
}
}
Symbol 20481 MovieClip [__Packages.com.bourre.transitions.IFrameBeacon] Frame 0
class com.bourre.transitions.IFrameBeacon
{
function IFrameBeacon () {
}
}
Symbol 20482 MovieClip [__Packages.com.bourre.events.EventType] Frame 0
class com.bourre.events.EventType extends String
{
function EventType (s) {
super(s);
}
}
Symbol 20483 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 20484 MovieClip [__Packages.com.bourre.events.IEventDispatcher] Frame 0
class com.bourre.events.IEventDispatcher
{
function IEventDispatcher () {
}
}
Symbol 20485 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));
}
static function getKey(o) {
if (o.__KEY == null) {
o.__KEY = getNextKEY();
_global.ASSetPropFlags(o, ["__KEY"], 7, 1);
}
return(o.__KEY);
}
static function previewNextKey() {
return(_nKEY);
}
static function buildInstance(sPackage, aArgs, factoryMethod, singletonAccess) {
var _local6 = eval ("_global." + sPackage);
if (!_local6) {
com.bourre.log.PixlibDebug.FATAL(("'_global." + sPackage) + "' class is not available in the current swf");
return(null);
}
if (factoryMethod) {
if (singletonAccess) {
var _local8 = _local6[singletonAccess].call();
if (!_local8) {
com.bourre.log.PixlibDebug.FATAL(((("'_global." + sPackage) + ".") + singletonAccess) + "()' singleton access failed.");
return(null);
}
var _local7 = _local8[factoryMethod].apply(_local8, aArgs);
if (!_local7) {
com.bourre.log.PixlibDebug.FATAL(((((("'_global." + sPackage) + ".") + singletonAccess) + "().") + factoryMethod) + "()' factory method call failed.");
return(null);
}
} else {
var _local7 = _local6[factoryMethod].apply(_local6, aArgs);
if (!_local7) {
com.bourre.log.PixlibDebug.FATAL(((("'_global." + sPackage) + ".") + factoryMethod) + "()' factory method call failed.");
return(null);
}
}
} else {
var _local7 = {__constructor__:_local6, __proto__:_local6.prototype};
_local6.apply(_local7, aArgs);
}
return(_local7);
}
static function isSameObject(a, b) {
return(getKey(a) == getKey(b));
}
static var _nKEY = 0;
}
Symbol 20486 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 _local4 = arguments[2];
if (_local4) {
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 _local5 = (_local4 ? (com.bourre.core.HashCodeFactory.getKey(oL.t)) : (com.bourre.core.HashCodeFactory.getKey(oL)));
if (_oE[_local5] == undefined) {
_oE[_local5] = new Object();
}
_oE[_local5][t] = oL;
}
}
}
function removeEventListener(t, oL) {
if (listenerArrayExists(t)) {
var _local4 = getListenerArray(t);
if (_local4.remove(oL)) {
delete _oE[com.bourre.core.HashCodeFactory.getKey(oL)][t];
if (_local4.isEmpty()) {
delete _oL[t];
}
}
}
}
function removeAllEventListeners(t) {
if (listenerArrayExists(t)) {
delete _oL[t];
for (var n in _oE) {
delete _oE[n][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 p in o) {
if ((o[p] != "type") && (o[p] != "target")) {
_local3[p] = o[p];
}
}
broadcastEvent(_local3);
}
function isEmpty() {
do {
if ((in _oL) == null) {
break;
}
var _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 _local4 = aL.length;
while (_local4-- , _local4 > -1) {
var _local5 = aL[_local4];
var _local6 = typeof(_local5);
if ((_local6 == "object") || (_local6 == "movieclip")) {
if (_local5.handleEvent != undefined) {
_local5.handleEvent(e);
} else {
_local5[String(e.getType())](e);
}
} else {
_local5.apply(this, [e]);
}
}
}
function _clean(key) {
if (_oE[key] != undefined) {
var _local3 = _oE[key];
for (var p in _local3) {
removeEventListener(p, _local3[p]);
}
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 20487 MovieClip [__Packages.patapon.game.SequenceManager] Frame 0
class patapon.game.SequenceManager extends com.bourre.events.EventBroadcaster
{
var stage, mainSequenceType, secondarySequenceType, BPM, keyIsDown, pastSequences, mc, beatMarker, beatMachine, currentSeqType, isSecondary, currentSequence, nextSequence, lastSequence, broadcastEvent;
function SequenceManager (stage, mainSequenceType, secondarySequenceType) {
super();
this.stage = stage;
this.mainSequenceType = mainSequenceType;
this.secondarySequenceType = secondarySequenceType;
init();
}
function init() {
BPM = patapon.game.rythm.BeatMachine.BPM;
keyIsDown = false;
pastSequences = new Array();
mc = stage.attachMovie("sequence bar", "sequenceBG", stage.getNextHighestDepth(), {_x:0, _y:-85});
beatMarker = stage.attachMovie("barOverlay", "sequenceBG", stage.getNextHighestDepth(), {_x:0, _y:-85});
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", 0, 0.5, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(beatMarker, "_y", 0, 0.5, "easeOutExpo");
}
function start(isPractice) {
beatMachine = new patapon.game.rythm.BeatMachine(stage, isPractice);
beatMachine.addEventListener(patapon.events.EventList.onNormaliseBeat, this, onNormaliseBeat);
switchToPrimarySequence();
newSequence();
beatMachine.start();
Key.addListener(this);
}
function switchToPrimarySequence() {
currentSeqType = mainSequenceType;
isSecondary = false;
}
function switchToSecondarySequence() {
currentSeqType = secondarySequenceType;
isSecondary = true;
}
function disable() {
Key.removeListener(this);
}
function enable() {
Key.addListener(this);
}
function kill() {
Key.removeListener(this);
currentSequence.removeListener(this);
beatMachine.destroy();
currentSequence.hide();
nextSequence.hide();
lastSequence.hide();
var _local2 = 0;
for ( ; _local2 < pastSequences.length ; _local2++) {
patapon.game.rythm.Sequence(pastSequences[_local2]).hide();
}
killAllSequences();
com.mosesSupposes.fuse.ZigoEngine.doTween(beatMarker, "_y", mc._y - 85, 0.6, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", mc._y - 85, 0.6, "linear");
}
function killAllSequences() {
currentSequence.destroy();
nextSequence.destroy();
lastSequence.destroy();
var _local2 = 0;
for ( ; _local2 < pastSequences.length ; _local2++) {
patapon.game.rythm.Sequence(pastSequences[_local2]).destroy();
}
}
function onKeyDown() {
if (!keyIsDown) {
currentSequence.enterKeyCode(Key.getCode());
keyIsDown = true;
}
}
function onKeyUp() {
keyIsDown = false;
}
function newSequence() {
if (currentSequence == undefined) {
currentSequence = new patapon.game.rythm.Sequence(mc, 4, 991, BPM, currentSeqType, false);
var _local2 = currentSequence.getEndPoint();
nextSequence = new patapon.game.rythm.Sequence(mc, 4, _local2, BPM, currentSeqType, false);
} else {
pastSequences.push(currentSequence);
currentSequence = nextSequence;
nextSequence = lastSequence;
}
lastSequence = new patapon.game.rythm.Sequence(mc, 4, nextSequence.getEndPoint(), BPM, currentSeqType, isSecondary);
currentSequence.addEventListener(patapon.events.EventList.onPastSequence, this, onPastSequence);
currentSequence.addEventListener(patapon.events.EventList.onSuccessfulSequence, this, onSuccessfulSequence);
currentSequence.addEventListener(patapon.events.EventList.onSuccessfulSequence, this, onSequenceDestroyed);
}
function onBeat() {
currentSequence.getMC()._x = currentSequence.getMC()._x - 60;
nextSequence.getMC()._x = nextSequence.getMC()._x - 60;
lastSequence.getMC()._x = lastSequence.getMC()._x - 60;
}
function onNormaliseBeat() {
nextSequence.getMC()._x = 871;
lastSequence.getMC()._x = nextSequence.getEndPoint();
}
function onSequenceDestroyed(e) {
var _local3 = e.getSequence();
com.skivecreative.arrays.ArrayTools.remove(pastSequences, _local3, 1);
}
function onPastSequence(e) {
var _local3 = e.getIsCompleted();
var _local4 = e.getIsSecondary();
currentSequence.removeListener(this);
newSequence();
if (!_local3) {
broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onSequenceMissed));
}
if (_local4) {
broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onSecondarySequence));
}
}
function onSuccessfulSequence(e) {
var _local3 = e.getBoolean();
broadcastEvent(new com.bourre.events.BooleanEvent(patapon.events.EventList.onSequenceCompleted, _local3));
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
Key.removeListener(this);
beatMachine.destroy();
currentSequence.removeListener(this);
killAllSequences();
mc.removeMovieClip();
beatMarker.removeMovieClip();
}
}
Symbol 20488 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 20489 MovieClip [__Packages.com.bourre.log.Stringifier] Frame 0
class com.bourre.log.Stringifier
{
function Stringifier () {
}
}
Symbol 20490 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 20491 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 20492 MovieClip [__Packages.patapon.EndGameScreen] Frame 0
class patapon.EndGameScreen
{
var stage, mc, finalMessage, tree, localisedNodes, patapons, blackness, lightness;
function EndGameScreen (stage) {
this.stage = stage;
init();
}
function init() {
patapon.tracking.TrackingManager.getInstance().trackEvent("game/complete");
patapon.tracking.TrackingManager.getInstance().skiveTracking("gameComplete", String(1));
mc = stage.eogScreen_mc;
finalMessage = stage.finalMessage_mc;
mc.swapDepths(stage.getNextHighestDepth());
finalMessage._visible = false;
localiseContent();
tree = mc.tree_mc;
tree.gotoAndStop("begin");
addPatapons();
fadeIn();
count++;
}
function localiseContent() {
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(finalMessage.wellDone_txt, localisedNodes.gameComplete);
}
function addPatapons() {
patapons = stage.attachMovie("LEVEL_3_CHARS", "eogChars" + count, stage.getNextHighestDepth(), {_y:410, _x:-500});
patapons.gotoAndPlay("walk");
patapons.leader_mc.gotoAndPlay("walkNoTrumpet");
com.mosesSupposes.fuse.ZigoEngine.doTween(patapons, "_x", -10, 3, "linear", 0, {scope:this, func:"haltPatapons"});
}
function haltPatapons() {
patapons.gotoAndStop("still");
patapons.leader_mc.gotoAndStop("standNoTrumpet");
patapons.removeMovieClip();
tree.gotoAndPlay("startDancing");
com.skivecreative.queues.DelayedAction.frameDelay(this, playFanfare, 110);
com.skivecreative.queues.DelayedAction.frameDelay(this, playMusic, 220);
com.skivecreative.queues.DelayedAction.frameDelay(this, fadeToBlack, 700);
}
function fadeToBlack() {
blackness = stage.attachMovie("blackness", "eogBlackness" + count, stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"showFinalMessage"});
}
function showFinalMessage() {
finalMessage.swapDepths(stage.getNextHighestDepth());
finalMessage._visible = true;
com.skivecreative.queues.DelayedAction.timeDelay(this, backToTitleScreen, 3);
}
function fadeIn() {
lightness = stage.attachMovie("blackness", "lightnessEOG" + count, stage.getNextHighestDepth());
lightness._x = 0;
lightness._y = 0;
lightness._alpha = 100;
com.mosesSupposes.fuse.ZigoEngine.doTween(lightness, "_alpha", 0, 1, "linear", 0, {scope:this, func:"clearFadeIn"});
}
function clearFadeIn() {
lightness.removeMovieClip();
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function playFanfare() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("START CELEBRATION").start();
}
function playMusic() {
patapon.App.fadeUpSoundLoop("FINAL CELEBRATION MUSIC", 0.5);
}
function backToTitleScreen() {
blackness.removeMovieClip();
for (var clip in stage) {
com.skivecreative.log.Logging.trace(clip);
}
patapon.Navigator.getInstance().goto("title", true);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
finalMessage.removeMovieClip();
blackness.removeMovieClip();
lightness.removeMovieClip();
mc.swapDepths(stage.getNextHighestDepth());
mc.removeMovieClip();
patapons.removeMovieClip();
patapon.App.fadeOutSound("FINAL CELEBRATION MUSIC", 0.5);
}
static var count = 0;
}
Symbol 20493 MovieClip [__Packages.com.bourre.log.LogChannel] Frame 0
class com.bourre.log.LogChannel extends com.bourre.events.EventType
{
function LogChannel (s) {
super(s);
}
}
Symbol 20494 MovieClip [__Packages.com.bourre.events.IEvent] Frame 0
class com.bourre.events.IEvent
{
function IEvent () {
}
}
Symbol 20495 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 20496 MovieClip [__Packages.com.bourre.events.StringEvent] Frame 0
class com.bourre.events.StringEvent extends com.bourre.events.BasicEvent
{
var _s, getType;
function StringEvent (e, s) {
super(e);
_s = s;
}
function getString() {
return(_s);
}
function setString(s) {
_s = s;
}
function toString() {
return((((com.bourre.log.PixlibStringifier.stringify(this) + " : ") + getType()) + ", ") + getString());
}
}
Symbol 20497 MovieClip [__Packages.patapon.game.rythm.Sequence] Frame 0
class patapon.game.rythm.Sequence extends com.bourre.events.EventBroadcaster
{
var stage, length, startX, BPM, type, isSecondary, beatsDone, beatsHitCorrectly, wasCompleted, mc, wasRuined, beats, broadcastEvent, playInterval, killZone, distanceToTravelPerMillisecond, lastUpdate;
function Sequence (stage, length, startX, BPM, type, isSecondary) {
super();
this.stage = stage;
this.length = length;
this.startX = startX;
this.BPM = BPM;
this.type = type;
this.isSecondary = isSecondary;
beatsDone = 0;
beatsHitCorrectly = 0;
wasCompleted = false;
init();
}
function init() {
mc = stage.createEmptyMovieClip("sequence" + count, stage.getNextHighestDepth());
mc.cacheAsBitmap = true;
mc._y = Y_POS;
mc._x = startX;
wasRuined = false;
createBeatsByType();
getSpeedByBPM();
display();
count++;
}
function enterKeyCode(key) {
var _local3 = beats[beatsDone];
if ((key == _local3.getKey()) && (getAccuracy(_local3.getMC()) >= MIN_ACCURACY)) {
_local3.correct();
beatsDone++;
beatsHitCorrectly++;
if ((beatsDone == 1) && (beatsHitCorrectly == 1)) {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onFirstTrumpetBeat));
}
if (beatsHitCorrectly == beats.length) {
wasCompleted = true;
broadcastEvent(new com.bourre.events.BooleanEvent(patapon.events.EventList.onSuccessfulSequence, isSecondary));
complete();
}
} else if (mc._x < 400) {
_local3.incorrect();
beatsDone = 0;
if (!wasRuined) {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onTrumpetSequenceRuined));
wasRuined = true;
}
}
}
function getIsSecondary() {
return(isSecondary);
}
function hide() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", mc._y - 85, 0.6, "linear");
}
function destroy() {
_global.clearInterval(playInterval);
var _local2 = 0;
for ( ; _local2 < beats.length ; _local2++) {
patapon.game.rythm.Beat(beats[_local2]).destroy();
}
beats = [];
mc.removeMovieClip();
delete beats;
}
function getEndPoint() {
return((mc._x + (230 - patapon.game.rythm.Beat.WIDTH)) + ((230 - patapon.game.rythm.Beat.WIDTH) + (beatSpacer * 2)));
}
function getMC() {
return(mc);
}
static function getRandByRange(min, max) {
var _local4 = Math.round((Math.random() * ((max - min) + 1)) + (min - 0.5));
return(_local4);
}
function display() {
var _local2 = 0;
for ( ; _local2 < beats.length ; _local2++) {
patapon.game.rythm.Beat(beats[_local2]).display(_local2 * beatSpacer, 0);
}
killZone = -(mc._width + 50);
playInterval = _global.setInterval(com.bourre.commands.Delegate.create(this, update), 10);
}
function getSpeedByBPM() {
var _local2 = BPM / 60;
distanceToTravelPerMillisecond = (beatSpacer * _local2) / 1000;
}
function update() {
var _local2 = getTimer();
if (lastUpdate != undefined) {
var _local3 = _local2 - lastUpdate;
mc._x = mc._x - (_local3 * distanceToTravelPerMillisecond);
}
lastUpdate = _local2;
if (mc._x <= (((DEAD_ON_TARGET - ((beatsDone + 1) * patapon.game.rythm.Beat.WIDTH)) - (beatsDone * (beatSpacer - patapon.game.rythm.Beat.WIDTH))) + (patapon.game.rythm.Beat.WIDTH / 2))) {
beatsDone++;
}
if ((mc._x + mc._width) <= DEAD_ZONE) {
broadcastEvent(new patapon.events.SequenceEvent(patapon.events.EventList.onPastSequence, wasCompleted, isSecondary));
}
if (mc._x <= killZone) {
broadcastEvent(new patapon.events.SequenceDestroyedEvent(patapon.events.EventList.onSequenceDestroyed, this));
destroy();
}
_global.updateAfterEvent();
}
function complete() {
com.mosesSupposes.fuse.ZigoEngine.doShortcut(mc, "scaleTo", 110, 0.1, "linear", 0, {scope:this, func:"backDown"});
}
function backDown() {
com.mosesSupposes.fuse.ZigoEngine.doShortcut(mc, "scaleTo", 100, 0.2, "linear");
}
function getAccuracy(beat) {
var _local3 = {x:beat._x, y:beat._y};
mc.localToGlobal(_local3);
var _local4 = Math.abs(_local3.x - DEAD_ON_TARGET);
var _local5 = 100 - ((_local4 / beat._width) * 100);
return(_local5);
}
function createBeatsByType() {
beats = new Array();
var _local2 = 0;
for ( ; _local2 < type.length ; _local2++) {
beats.push(createBeat(type[_local2]));
}
}
function createBeat(type) {
switch (type) {
case "CHAKA" :
return(new patapon.game.rythm.Beat(mc, Key.UP, "CHAKA", "up"));
case "DON" :
return(new patapon.game.rythm.Beat(mc, Key.DOWN, "DON", "down"));
case "PATA" :
return(new patapon.game.rythm.Beat(mc, Key.LEFT, "PATA", "left"));
case "PON" :
return(new patapon.game.rythm.Beat(mc, Key.RIGHT, "PON", "right"));
}
}
static var DEAD_ZONE = 385;
static var DEAD_ON_TARGET = 391;
static var MIN_ACCURACY = 40;
static var Y_POS = 40;
static var count = 0;
static var beatSpacer = 60;
}
Symbol 20498 MovieClip [__Packages.patapon.game.ILevel] Frame 0
class patapon.game.ILevel
{
function ILevel () {
}
}
Symbol 20499 MovieClip [__Packages.com.bourre.transitions.IFrameListener] Frame 0
class com.bourre.transitions.IFrameListener
{
function IFrameListener () {
}
}
Symbol 20500 MovieClip [__Packages.patapon.game.ui.FailureBox] Frame 0
class patapon.game.ui.FailureBox
{
var stage, x, y, height, width, levelID, closeFunc, blackText, redText, mc, retry, home;
function FailureBox (stage, x, y, height, width, levelID, closeFunc) {
this.stage = stage;
this.x = x;
this.y = y;
this.height = height;
this.width = width;
this.levelID = levelID;
this.closeFunc = closeFunc;
init();
}
function init() {
blackText = new TextFormat();
blackText.color = 0;
redText = new TextFormat();
redText.color = 10027008 /* 0x990000 */;
mc = stage.attachMovie("FAILURE BOX", "failMsg" + count, stage.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.bg_mc._height = height + 15;
mc.bg_mc._width = width;
retry = mc.content_mc.retry_mc;
home = mc.content_mc.home_mc;
populateMsg();
disableButtons();
mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 100, 0.6, "easeInQuad", 0.7, {scope:this, func:"highlightScrollbar"});
count++;
}
function populateMsg() {
var _local2 = mc.content_mc.loserText_txt;
_local2._width = width - 60;
var _local3 = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(mc.content_mc, _local3.gameOver);
retry._y = (_local2._y + _local2._height) + 15;
home._y = (_local2._y + _local2._height) + 15;
mc.content_mc._x = 20;
mc.content_mc._y = 15;
retry.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, retry);
retry.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, retry);
retry.onRelease = com.bourre.commands.Delegate.create(this, closeBox);
home.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, home);
home.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, home);
home.onRelease = com.bourre.commands.Delegate.create(this, returnToTitle);
}
function enableButtons() {
retry.enabled = true;
home.enabled = true;
}
function disableButtons() {
retry.enabled = false;
home.enabled = false;
}
function rollOver(btn) {
for (var txtField in btn) {
TextField(btn[txtField]).setTextFormat(redText);
}
}
function rollOut(btn) {
for (var txtField in btn) {
TextField(btn[txtField]).setTextFormat(blackText);
}
}
function returnToTitle() {
disableButtons();
retry.swapDepths(mc.content_mc.getNextHighestDepth());
home.swapDepths(mc.content_mc.getNextHighestDepth());
retry.removeMovieClip();
home.removeMovieClip();
mc.removeMovieClip();
patapon.Navigator.getInstance().goto("title", true);
}
function highlightScrollbar() {
var _local2 = new com.skivecreative.effects.Pulsate(mc.scrollbar_mc.scrobber_mc, 180, 1.8, 0, 100);
enableButtons();
}
function closeBox() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 0, 0.4, "easeInQuad", 0, {scope:this, func:"returnToLevel"});
}
function returnToLevel() {
retry.swapDepths(mc.content_mc.getNextHighestDepth());
home.swapDepths(mc.content_mc.getNextHighestDepth());
retry.removeMovieClip();
home.removeMovieClip();
disableButtons();
closeFunc();
}
static var count = 0;
}
Symbol 20501 MovieClip [__Packages.patapon.Downloads] Frame 0
class patapon.Downloads
{
var stage, contentA, contentB, contentC, infoBox, initInfoX, homeFlag, localisedNodes;
function Downloads (stage) {
this.stage = stage;
init();
}
function init() {
contentA = stage.downloads_mc.landscape_mc.content1_mc;
contentB = stage.downloads_mc.landscape_mc.content2_mc;
contentC = stage.downloads_mc.landscape_mc.content3_mc;
infoBox = stage.downloads_mc.landscape_mc.info_mc;
contentA._visible = false;
contentB._visible = false;
contentC._visible = false;
initInfoX = infoBox._x;
infoBox._x = infoBox._x - 300;
localiseContent();
setUpBoxes();
getUnlockedContent();
var _local2 = stage.downloads_mc.landscape_mc.patapons_mc.home_mc;
homeFlag = new com.skivecreative.effects.FlagRipple(_local2, 100, 50);
_local2.onRelease = com.bourre.commands.Delegate.create(this, hideContent);
_local2.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, _local2, homeFlag);
_local2.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, _local2, homeFlag);
patapon.App.fadeUpSoundLoop("HAPPY LOOP", 3);
com.skivecreative.queues.DelayedAction.frameDelay(this, showContent, 100);
}
function localiseContent() {
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(stage.downloads_mc.landscape_mc, localisedNodes.downloads);
}
function getUnlockedContent() {
var _local2 = patapon.LocalisationManager.getInstance().getDownloadsUnlocked();
com.skivecreative.log.Logging.trace(_local2);
if (_local2 == undefined) {
infoBox.content_mc.downloadsUnlocked_txt._visible = false;
infoBox.content_mc.nothingUnlocked_txt._visible = true;
} else {
infoBox.content_mc.nothingUnlocked_txt._visible = false;
infoBox.content_mc.downloadsUnlocked_txt._visible = true;
}
switch (_local2) {
case undefined :
lockContent(contentA);
lockContent(contentB);
lockContent(contentC);
break;
case 1 :
lockContent(contentB);
lockContent(contentC);
break;
case 2 :
lockContent(contentC);
}
}
function setUpBoxes() {
var _local2 = new Array(contentA, contentB, contentC);
var _local3 = 0;
for ( ; _local3 < _local2.length ; _local3++) {
var _local4 = _local2[_local3];
_local4.download1280_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 1);
_local4.download1024_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 2);
_local4.downloadPSP_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 3);
_local4.download1280_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 1);
_local4.download1024_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 2);
_local4.downloadPSP_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 3);
_local4.download1280_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "1280", _local3 + 1);
_local4.download1024_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "1024", _local3 + 1);
_local4.downloadPSP_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "PSP", _local3 + 1);
}
}
function rOverDownload(b, d) {
MovieClip(b[("d" + d) + "_mc"]).gotoAndStop(2);
}
function rOutDownload(b, d) {
MovieClip(b[("d" + d) + "_mc"]).gotoAndStop(1);
}
function lockContent(box) {
var _local3 = new Color(box);
_local3.setTransform(blackTint);
box.download1280_mc.enabled = false;
box.download1024_mc.enabled = false;
box.downloadPSP_mc.enabled = false;
}
function showContent() {
contentA._alpha = 0;
contentB._alpha = 0;
contentC._alpha = 0;
contentA._visible = true;
contentB._visible = true;
contentC._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(infoBox, "_x", initInfoX, 0.7, "easeInExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(contentA, "_alpha", 100, 0.3, "linear", 0.7);
com.mosesSupposes.fuse.ZigoEngine.doTween(contentB, "_alpha", 100, 0.3, "linear", 1);
com.mosesSupposes.fuse.ZigoEngine.doTween(contentC, "_alpha", 100, 0.3, "linear", 1.3);
com.skivecreative.queues.DelayedAction.timeDelay(patapon.App, patapon.App.patponSounds, 5);
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function hideContent() {
com.mosesSupposes.fuse.ZigoEngine.doTween(contentC, "_alpha", 0, 0.3, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(contentB, "_alpha", 0, 0.3, "linear", 0.3);
com.mosesSupposes.fuse.ZigoEngine.doTween(contentA, "_alpha", 0, 0.3, "linear", 0.6);
com.mosesSupposes.fuse.ZigoEngine.doTween(infoBox, "_x", initInfoX - 300, 0.7, "easeOutExpo", 0.7, {scope:this, func:"transitionOut"});
}
function transitionOut() {
patapon.App.killPataponSounds();
stage.downloads_mc.landscape_mc.gotoAndStop(100);
com.skivecreative.utils.Timeline.playBackwards(stage.downloads_mc.landscape_mc, 1, com.bourre.commands.Delegate.create(this, fadeToLight));
}
function fadeToLight() {
patapon.App.fadeOutSound("HAPPY LOOP", 1);
patapon.App.fadeUpSoundLoop("TITLE LOOP", 2);
stage.downloads_mc.bg_mc.gotoAndStop("darkToLight");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.downloads_mc.landscape_mc.stars_mc, "_alpha", 0, 0.8, "linear");
com.skivecreative.utils.Timeline.playForwards(stage.downloads_mc.bg_mc, 40, com.bourre.commands.Delegate.create(this, goto, "title"));
}
function rollOver(btn, ripple) {
btn.gotoAndStop(2);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc.navButton_txt, localisedNodes.downloads);
ripple.flush();
}
function rollOut(btn, ripple) {
btn.gotoAndStop(1);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc.navButton_txt, localisedNodes.downloads);
ripple.flush();
}
function goto(section) {
patapon.Navigator.getInstance().goto(section);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
homeFlag.destroy();
}
static var blackTint = {ra:30, rb:0, ga:30, gb:0, ba:30, bb:0, aa:0, ab:0};
}
Symbol 20502 MovieClip [__Packages.patapon.game.EOLscreen] Frame 0
class patapon.game.EOLscreen
{
var stage, levelsCompleted, nextLevel, mc, contentA, contentB, contentC, infoBox, initInfoX, homeFlag, localisedNodes, lightness, blackness;
function EOLscreen (stage, levelsCompleted, nextLevel) {
this.stage = stage;
this.levelsCompleted = levelsCompleted;
this.nextLevel = nextLevel;
init();
}
function init() {
patapon.LocalisationManager.getInstance().setDownloadsUnlocked(levelsCompleted);
mc = stage.attachMovie("eolScreen2", "eolScreen", stage.getNextHighestDepth(), {_x:391, _y:226});
contentA = mc.landscape_mc.content1_mc;
contentB = mc.landscape_mc.content2_mc;
contentC = mc.landscape_mc.content3_mc;
infoBox = mc.landscape_mc.info_mc;
contentA._visible = false;
contentB._visible = false;
contentC._visible = false;
initInfoX = infoBox._x;
infoBox._x = infoBox._x - 300;
localiseContent();
setUpBoxes();
getUnlockedContent();
localiseContent();
var _local2 = mc.landscape_mc.patapons_mc.home_mc;
homeFlag = new com.skivecreative.effects.FlagRipple(_local2, 100, 50);
_local2.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, _local2, homeFlag);
_local2.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, _local2, homeFlag);
_local2.onRelease = com.bourre.commands.Delegate.create(this, fadeOut);
patapon.App.fadeUpSoundLoop("LEVEL COMPLETE", 3);
fadeIn();
com.skivecreative.queues.DelayedAction.frameDelay(this, showContent, 100);
}
function gotoNextLevel() {
if (levelsCompleted == 3) {
patapon.Navigator.getInstance().goto("endGameScreen");
destroy();
} else {
nextLevel();
destroy();
}
}
function localiseContent() {
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(mc.landscape_mc, localisedNodes.downloads);
com.skivecreative.text.Formatter.formatScreen(mc.landscape_mc.patapons_mc.home_mc, localisedNodes.eol);
}
function getUnlockedContent() {
var _local2 = patapon.LocalisationManager.getInstance().getDownloadsUnlocked();
if (_local2 == undefined) {
infoBox.content_mc.downloadsUnlocked_txt._visible = false;
infoBox.content_mc.nothingUnlocked_txt._visible = true;
} else {
infoBox.content_mc.nothingUnlocked_txt._visible = false;
infoBox.content_mc.downloadsUnlocked_txt._visible = true;
}
switch (_local2) {
case undefined :
lockContent(contentA);
lockContent(contentB);
lockContent(contentC);
break;
case 1 :
lockContent(contentB);
lockContent(contentC);
break;
case 2 :
lockContent(contentC);
}
}
function showContent() {
contentA._alpha = 0;
contentB._alpha = 0;
contentC._alpha = 0;
contentA._visible = true;
contentB._visible = true;
contentC._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doTween(infoBox, "_x", initInfoX, 0.7, "easeInExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(contentA, "_alpha", 100, 0.3, "linear", 0.7);
com.mosesSupposes.fuse.ZigoEngine.doTween(contentB, "_alpha", 100, 0.3, "linear", 1);
com.mosesSupposes.fuse.ZigoEngine.doTween(contentC, "_alpha", 100, 0.3, "linear", 1.3);
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function setUpBoxes() {
var _local2 = new Array(contentA, contentB, contentC);
var _local3 = 0;
for ( ; _local3 < _local2.length ; _local3++) {
var _local4 = _local2[_local3];
_local4.download1280_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 1);
_local4.download1024_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 2);
_local4.downloadPSP_mc.onRollOver = com.bourre.commands.Delegate.create(this, rOverDownload, _local4, 3);
_local4.download1280_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 1);
_local4.download1024_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 2);
_local4.downloadPSP_mc.onRollOut = com.bourre.commands.Delegate.create(this, rOutDownload, _local4, 3);
_local4.download1280_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "1280", _local3 + 1);
_local4.download1024_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "1024", _local3 + 1);
_local4.downloadPSP_mc.onRelease = com.bourre.commands.Delegate.create(patapon.LocalisationManager.getInstance(), patapon.LocalisationManager.getInstance().downloadWallpaper, "PSP", _local3 + 1);
}
}
function rOverDownload(b, d) {
MovieClip(b[("d" + d) + "_mc"]).gotoAndStop(2);
}
function rOutDownload(b, d) {
MovieClip(b[("d" + d) + "_mc"]).gotoAndStop(1);
}
function lockContent(box) {
var _local3 = new Color(box);
_local3.setTransform(blackTint);
box.download1280_mc.enabled = false;
box.download1024_mc.enabled = false;
box.downloadPSP_mc.enabled = false;
}
function fadeIn() {
lightness = stage.attachMovie("blackness", "lightnessEOL" + count, stage.getNextHighestDepth());
lightness._x = 0;
lightness._y = 0;
lightness._alpha = 100;
com.mosesSupposes.fuse.ZigoEngine.doTween(lightness, "_alpha", 0, 2.2, "linear", 0, {scope:this, func:"clearFadeIn"});
}
function fadeOut() {
patapon.App.fadeOutSound("LEVEL COMPLETE", 1);
blackness = stage.attachMovie("blackness", "blacknessEOL" + count, stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 1, "linear", 0, {scope:this, func:"gotoNextLevel"});
}
function rollOver(btn, ripple) {
btn.gotoAndStop(2);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc.navButton_txt, localisedNodes.eol);
ripple.flush();
}
function rollOut(btn, ripple) {
btn.gotoAndStop(1);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc.navButton_txt, localisedNodes.eol);
ripple.flush();
}
function clearFadeIn() {
lightness.removeMovieClip();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
blackness.removeMovieClip();
lightness.removeMovieClip();
homeFlag.destroy();
mc.removeMovieClip();
}
static var count = 0;
static var blackTint = {ra:30, rb:0, ga:30, gb:0, ba:30, bb:0, aa:0, ab:0};
}
Symbol 20503 MovieClip [__Packages.patapon.game.Timer] Frame 0
class patapon.game.Timer extends com.bourre.events.EventBroadcaster implements com.bourre.transitions.IFrameListener
{
var stage, TIME_LIMIT, timer, startTime, onEnterFrameHandler, timeLeft, timeString, broadcastEvent, mc;
function Timer (stage, timeLimit) {
super();
this.stage = stage;
TIME_LIMIT = timeLimit * 1000;
init();
}
function init() {
timer = stage.timer_txt;
timer.text = "00'00''00";
}
function start() {
startTime = getTimer();
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, run);
}
function stop() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
}
function onEnterFrame() {
onEnterFrameHandler();
}
function run() {
var _local2 = getTimer() - startTime;
timeLeft = TIME_LIMIT - _local2;
var _local3 = getMinutes(timeLeft);
var _local4 = getSeconds(timeLeft, _local3);
var _local5 = getMilliseconds(timeLeft, _local3, _local4);
var _local6 = formatTime(_local3);
var _local7 = formatTime(_local4);
var _local8 = formatTime(_local5);
timeString = (((_local6 + "'") + _local7) + "''") + _local8;
if (timeLeft <= 0) {
timeString = "00'00''00";
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onTimeUp));
}
timer.text = timeString;
}
function getMinutes(mSecsElapsed) {
var _local3 = Math.floor(mSecsElapsed / (1000 * 60));
return(_local3);
}
function getSeconds(mSecsElapsed, minsElapsed) {
var _local4 = mSecsElapsed - (minsElapsed * (1000 * 60));
var _local5 = Math.floor(_local4 / 1000);
return(_local5);
}
function getMilliseconds(mSecsElapsed, minsElapsed, secsElapsed) {
var _local5 = mSecsElapsed - (minsElapsed * (1000 * 60));
var _local6 = Math.floor((_local5 - (secsElapsed * 1000)) / 10);
return(_local6);
}
function formatTime(timeVal) {
if (timeVal < 10) {
var _local3 = "0" + String(timeVal);
} else {
var _local3 = String(timeVal);
}
return(_local3);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
mc.removeMovieClip();
}
}
Symbol 20504 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 20505 MovieClip [__Packages.patapon.game.endSequences.IEndSequence] Frame 0
class patapon.game.endSequences.IEndSequence
{
function IEndSequence () {
}
}
Symbol 20506 MovieClip [__Packages.patapon.game.endSequences.TargetSequence] Frame 0
class patapon.game.endSequences.TargetSequence implements patapon.game.endSequences.IEndSequence
{
var stage, scene, patapons, woodenTarget, animation, blackness, missionComplete, localisedNodes;
function TargetSequence () {
}
function init(stage, scene, patapons) {
this.stage = stage;
this.scene = scene;
this.patapons = patapons;
woodenTarget = scene.attachMovie("static target", "woodenTarget", scene.getNextHighestDepth());
woodenTarget._x = patapons._x + 1420;
woodenTarget._y = 249;
return(woodenTarget);
}
function start() {
animation = scene.attachMovie("LEVEL_1_END_ANIMATION", "endSequence", scene.getNextHighestDepth());
animation._x = patapons._x + 517;
animation._y = 248;
woodenTarget.removeMovieClip();
patapons._visible = false;
com.skivecreative.queues.DelayedAction.frameDelay(this, playArrowSound, 3);
com.skivecreative.queues.DelayedAction.frameDelay(this, playMissionCompleteSound, 144);
com.skivecreative.queues.DelayedAction.frameDelay(this, showEndScreen, 165);
}
function playMissionCompleteSound() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("MISSION COMPLETE").start();
}
function playArrowSound() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("ARROW SOUNDS").start();
}
function destroy() {
animation.removeMovieClip();
blackness.removeMovieClip();
missionComplete.removeMovieClip();
}
function showEndScreen() {
var _local2 = patapon.LocalisationManager.getInstance().getLangCode();
if (_local2 == "en") {
missionComplete = stage.attachMovie("missionCompleteBar", "mcBar", stage.getNextHighestDepth());
} else {
missionComplete = stage.attachMovie("missionComplete-NOT_EN", "mcBar", stage.getNextHighestDepth());
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(missionComplete.missionComplete_txt, localisedNodes.eol);
}
missionComplete._x = 0;
missionComplete._y = 452;
missionComplete._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 100, 0.8, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", 165, 0.8, "easeOutBack", 0, {scope:this, func:"proceedToDownloadScreen"});
}
function proceedToDownloadScreen() {
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 0, 0.8, "easeInQuad", 1.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", -65, 0.8, "easeInOutBack", 1.5);
com.skivecreative.queues.DelayedAction.timeDelay(this, fadeToBlack, 2.7);
}
function fadeToBlack() {
blackness = stage.attachMovie("blackness", "blackness", stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"end"});
}
function end() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onLevelComplete));
}
}
Symbol 20507 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 20508 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);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local5 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local6 = "";
var _local7 = newline;
switch (errorCode) {
case "001" :
_local6 = _local6 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local6 = _local6 + (_local7 + " import com.mosesSupposes.fuse.*;");
_local6 = _local6 + ((_local7 + " ZigoEngine.simpleSetup(Shortcuts);") + _local7);
break;
case "002" :
_local6 = _local6 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local6 = _local6 + ((_local7 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local7);
break;
case "004" :
_local6 = _local6 + (("** 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" :
_local6 = _local6 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local6 = _local6 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local6 = _local6 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local6 = _local6 + "** ZigoEngine: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local6 = _local6 + (("-ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized.");
break;
case "010" :
_local6 = _local6 + ((("-Engine unable to parse " + ((_local3 == 1) ? "callback[" : (String(_local3) + " callbacks["))) + _local4) + "]. Try using the syntax {scope:this, func:\"myFunction\"}");
break;
case "011" :
_local6 = _local6 + (((("-ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local6 = _local6 + (((((("-Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local5) + "]");
break;
case "013" :
_local6 = _local6 + (((((("-Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local5) + "]");
break;
case "014" :
_local6 = _local6 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "101" :
_local6 = _local6 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local6 = _local6 + (_local7 + " You must now use the following commands:");
_local6 = _local6 + ((_local7 + _local7) + "\timport com.mosesSupposes.fuse.*;");
_local6 = _local6 + (_local7 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local6 = _local6 + ((_local7 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local7);
break;
case "102" :
_local6 = _local6 + (("** Fuse skipTo label not found: \"" + _local3) + "\" **");
break;
case "103" :
_local6 = _local6 + (("** Fuse skipTo failed (" + _local3) + ") **");
break;
case "104" :
_local6 = _local6 + (((("** Fuse command skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "105" :
_local6 = _local6 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local6 = _local6 + "** ERROR: You have not set up Fuse correctly. **";
_local6 = _local6 + (_local7 + "You must now use the following commands (PennerEasing is optional).");
_local6 = _local6 + (_local7 + "\timport com.mosesSupposes.fuse.*;");
_local6 = _local6 + ((_local7 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local7);
break;
case "107" :
_local6 = _local6 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local6 = _local6 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local6 = _local6 + (("** Commands other than \"delay\" are not allowed within groups. Command discarded (\"" + _local3) + "\")");
break;
case "110" :
_local6 = _local6 + (("** 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" :
_local6 = _local6 + (("** A Fuse command parameter failed. (\"" + _local3) + "\") **");
break;
case "112" :
_local6 = _local6 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local6 = _local6 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "114" :
_local6 = _local6 + (("** FuseItem: command (\"" + _local3) + "\") discarded. Commands may not appear within action groups (arrays). **");
break;
case "115" :
_local6 = _local6 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local6 = _local6 + ("** 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. **" + _local7);
break;
case "117" :
_local6 = _local6 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local6 = _local6 + (("** Fuse Error: No targets in " + _local3) + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping this action] **"));
break;
case "119" :
_local6 = _local6 + (((("** Fuse warning: " + _local4) + ((_local4 == 1) ? " target missing in " : " targets missing in ")) + _local5) + ((_local3 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local6 = _local6 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local6 = _local6 + "** Timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local6 = _local6 + "** FuseItem: You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "123" :
_local6 = _local6 + "** FuseItem unable to target callback. Try using the syntax {scope:this, func:\"myFunction\"} **";
break;
case "124" :
_local6 = _local6 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "125" :
_local6 = _local6 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "126" :
_local6 = _local6 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "201" :
_local6 = _local6 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "301" :
_local6 = _local6 + "** The shortcuts fadeIn or fadeOut only accept 3 arguments: seconds, ease, and delay. **";
}
output(_local6);
}
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 20509 MovieClip [__Packages.com.skivecreative.arrays.ArrayTools] Frame 0
class com.skivecreative.arrays.ArrayTools
{
function ArrayTools () {
}
static function dedupe(a) {
var _local3 = new Array();
var _local4 = 0;
for ( ; _local4 < a.length ; _local4++) {
if (!contains(_local3, a[_local4])) {
_local3.push(a[_local4]);
}
}
return(_local3);
}
static function clone(a, isAssociative) {
var _local4 = new Array();
if (isAssociative) {
for (var _local6 in a) {
_local4[_local6] = a[_local6];
}
} else {
var _local5 = 0;
for ( ; _local5 < a.length ; _local5++) {
_local4[_local5] = a[_local5];
}
}
return(_local4);
}
static function contains(a, e) {
return(getIndex(a, e) > -1);
}
static function getIndex(a, e) {
var _local4 = 0;
for ( ; _local4 < a.length ; _local4++) {
if (a[_local4] == e) {
return(_local4);
}
}
return(-1);
}
static function getRandomItem(a) {
return(a[Math.floor(Math.random() * a.length)]);
}
static function getRandomItems(a, count) {
if (count > a.length) {
com.skivecreative.log.Logging.trace("ERROR: Requested more random items than present in array");
return(null);
}
var _local4 = new Array();
var _local6 = 0;
for ( ; _local6 < count ; _local6++) {
do {
var _local5 = Math.floor(Math.random() * a.length);
} while (contains(_local4, _local5));
_local4.push(_local5);
}
var _local7 = 0;
for ( ; _local7 < count ; _local7++) {
_local4[_local7] = a[_local4[_local7]];
}
return(_local4);
}
static function equals(a, b) {
if (a.length != b.length) {
return(false);
}
var _local4 = 0;
for ( ; _local4 < a.length ; _local4++) {
if (a[_local4] != b[_local4]) {
return(false);
}
}
return(true);
}
static function pushFirst(a, e) {
a.splice(0, 0, e);
}
static function randomize(a) {
var _local3 = new Array();
var _local4 = new Array();
var _local6 = 0;
for ( ; _local6 < a.length ; _local6++) {
do {
var _local5 = random(a.length);
} while (contains(_local4, _local5));
_local4.push(_local5);
_local3.push(a[_local5]);
}
return(_local3);
}
static function remove(a, e, n) {
if (n == undefined) {
n = a.length;
}
var _local5 = 0;
for ( ; contains(a, e) && (_local5 < n) ; for ( ; a[_local6] != e ; _local6++) {
}
, a.splice(_local6, 1) , _local5++) {
var _local6 = 0;
}
return(_local5);
}
static function reverse(a) {
var _local3 = new Array();
var _local4 = a.length - 1;
for ( ; _local4 >= 0 ; _local4--) {
_local3.push(a[_local4]);
}
return(_local3);
}
}
Symbol 20510 MovieClip [__Packages.patapon.game.ui.IntroBox] Frame 0
class patapon.game.ui.IntroBox
{
var stage, x, y, height, width, levelID, imgID1, imgID2, closeFunc, blackText, mc, img1, img2, closeButton;
function IntroBox (stage, x, y, height, width, levelID, imgID1, imgID2, closeFunc) {
this.stage = stage;
this.x = x;
this.y = y;
this.height = height;
this.width = width;
this.levelID = levelID;
this.imgID1 = imgID1;
this.imgID2 = imgID2;
this.closeFunc = closeFunc;
init();
}
function init() {
blackText = new TextFormat();
blackText.color = 0;
mc = stage.attachMovie("INTRO BOX", "introMsg" + count, stage.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.bg_mc._height = height + 15;
mc.bg_mc._width = width;
populateMsg();
disableButtons();
mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 100, 0.6, "easeInQuad", 1, {scope:this, func:"enableButtons"});
count++;
}
function populateMsg() {
var _local2 = mc.content_mc.part1_txt;
var _local3 = mc.content_mc.part2_txt;
var _local4 = mc.content_mc.part3_txt;
_local2.autoSize = true;
_local3.autoSize = true;
_local4.autoSize = true;
_local2._width = width - 60;
_local3._width = width - 60;
_local4._width = width - 60;
var _local5 = patapon.LocalisationManager.getInstance().getLocalisedNodes();
var _local6 = _local5.levels.level[levelID - 1];
var _local7 = _local6.part1.getValue();
var _local8 = _local6.part2.getValue();
var _local9 = _local6.part3.getValue();
var _local10 = com.skivecreative.text.Formatter.getStyle("default");
if (_local7 != undefined) {
_local2.text = _local7;
_local2.setTextFormat(_local10);
} else {
_local2._height = 2;
}
if (_local8 != undefined) {
_local3.text = _local8;
_local3.setTextFormat(_local10);
} else {
_local3._height = 2;
}
if (_local9 != undefined) {
_local4.text = _local9;
_local4.setTextFormat(_local10);
} else {
_local4._height = 2;
}
img1 = mc.content_mc.attachMovie(imgID1, "imgBoxI1", mc.content_mc.getNextHighestDepth());
img2 = mc.content_mc.attachMovie(imgID2, "imgBoxI2", mc.content_mc.getNextHighestDepth());
img1._y = (_local2._y + _local2._height) + 20;
img1._x = img1._x + 10;
_local3._y = (img1._y + img1._height) + 20;
img2._y = (_local3._y + _local3._height) + 20;
img2._x = img2._x + 10;
_local4._y = (img2._y + img2._height) + 20;
if (_local4.text == undefined) {
_local4._height = 2;
}
resizeBackground(_local4);
mc.content_mc._x = 20;
mc.content_mc._y = 15;
mc.scrollbar_mc._x = (_local2._x + _local2._width) + 35;
mc.scrollbar_mc._y = _local2._y + 15;
closeButton = mc.attachMovie("PLAY BUTTON", "cb" + count, mc.getNextHighestDepth());
closeButton.play_txt.text = _local5.title.playFlag.getValue();
closeButton.play_txt.setTextFormat(_local10);
closeButton._x = mc.bg_mc._width - 20;
closeButton._y = mc.bg_mc._height - 20;
closeButton.onRelease = com.bourre.commands.Delegate.create(this, closeBox);
}
function resizeBackground(tf) {
var _local3 = mc.bg_mc._y + mc.bg_mc._height;
var _local4 = tf._y;
var _local5 = {y:_local4};
stage.content_mc.localToGlobal(_local5);
var _local6 = _local5.y;
var _local7 = _local6 + tf._height;
var _local8 = Math.abs(_local3 - _local7);
if (_local3 >= _local7) {
mc.bg_mc._height = mc.bg_mc._height - (_local8 - 50);
} else {
mc.bg_mc._height = mc.bg_mc._height + (_local8 + 50);
}
}
function enableButtons() {
closeButton.enabled = true;
}
function disableButtons() {
closeButton.enabled = false;
}
function closeBox() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 0, 0.4, "easeInQuad", 0, {scope:this, func:"returnToLevel"});
}
function returnToLevel() {
disableButtons();
closeButton.removeMovieClip();
mc.removeMovieClip();
closeFunc();
}
static var count = 0;
}
Symbol 20511 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 _local4 = shortcuts[methodName];
if (_local4 == undefined) {
if (typeof(obj) == "movieclip") {
_local4 = mcshortcuts[methodName];
}
}
if (_local4 == undefined) {
return(null);
}
obj = arguments.shift();
methodName = String(arguments.shift());
if (!(obj instanceof Array)) {
obj = [obj];
}
var _local5 = "";
for (var i in obj) {
var _local6 = String(_local4.apply(obj[i], arguments));
if ((_local6 != null) && (_local6.length > 0)) {
if (_local5.length > 0) {
_local5 = (_local6 + "|") + _local5;
} else {
_local5 = _local6;
}
}
}
return(((_local5 == "") ? null : (_local5)));
}
static function addShortcutsTo() {
initialize();
var _local2 = function (o, so) {
for (var j in so) {
var _local4 = so[j];
if (_local4.getter || (_local4.setter)) {
o.addProperty(j, _local4.getter, _local4.setter);
_global.ASSetPropFlags(o, j, 3, 1);
} else {
o[j] = _local4;
_global.ASSetPropFlags(o, j, 7, 1);
}
}
};
for (var i in arguments) {
var _local3 = arguments[i];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local2(_local3, mcshortcuts);
}
_local2(_local3, shortcuts);
}
}
static function removeShortcutsFrom() {
initialize();
var _local2 = function (o, so) {
for (var j in so) {
_global.ASSetPropFlags(o, j, 0, 2);
var _local4 = so[j];
if (_local4.getter || (_local4.setter)) {
o.addProperty(j, null, null);
}
delete o[j];
}
};
for (var i in arguments) {
var _local3 = arguments[i];
if ((_local3 == MovieClip.prototype) || (typeof(_local3) == "movieclip")) {
_local2(_local3, mcshortcuts);
}
_local2(_local3, shortcuts);
}
}
static function parseStringTypeCallback(callbackStr) {
var evaluate = function (val) {
var _local3 = val.charAt(0);
if ((_local3 == val.slice(-1)) && ((_local3 == "\"") || (_local3 == "'"))) {
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 _local3 = function (list) {
var _local3 = [];
var _local4 = 0;
for ( ; _local4 < list.length ; _local4++) {
var _local5 = list[_local4];
_local5 = trimWhite(_local5);
var _local6 = (_local5.charAt(0) == "{") && ((_local5.indexOf("}") > -1) || (_local5.indexOf(":") > -1));
var _local7 = _local5.charAt(0) == "[";
if ((_local6 || (_local7)) == true) {
var _local8 = ((_local6 == true) ? ({}) : ([]));
var _local9 = _local4;
for ( ; _local9 < list.length ; _local9++) {
if (_local9 == _local4) {
_local5 = _local5.slice(1);
}
var _local11 = (_local10.slice(-1) == ((_local6 == true) ? "}" : "]")) || (_local9 == (list.length - 1));
if (_local11 == true) {
var _local10 = _local10.slice(0, -1);
}
if ((_local6 == true) && (_local10.indexOf(":") > -1)) {
var _local12 = _local10.split(":");
_local8[trimWhite(_local12[0])] = evaluate(trimWhite(_local12[1]));
} else if (_local7 == true) {
_local8.push(evaluate(trimWhite(_local10)));
}
if (_local11 == true) {
_local3.push(_local8);
_local4 = _local9;
break;
}
}
} else {
_local3.push(evaluate(trimWhite(_local5)));
}
}
return(_local3);
};
var _local4 = callbackStr.split("(");
var _local5 = _local4[0];
var _local6 = _local4[1];
return({func:_local5.slice(_local5.lastIndexOf(".") + 1), scope:eval (_local5.slice(0, _local5.lastIndexOf("."))), args:_local3(_local6.slice(0, _local6.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 _local2 = _global.com.mosesSupposes.fuse.FuseFMP.getAllShortcuts();
var _local3 = {blur:1, blurX:1, blurY:1, strength:1, shadowAlpha:1, highlightAlpha:1, angle:1, distance:1, alpha:1, color:1};
for (var i in _local2) {
if (_local3[_local2[i].split("_")[1]] === 1) {
methods[_local2[i] + "To"] = _local2[i];
}
}
var _local4 = {__resolve:function (name) {
var propName = methods[name];
return(function () {
var _local2 = _global.com.mosesSupposes.fuse.ZigoEngine.doTween.apply(com.mosesSupposes.fuse.ZigoEngine, new Array(this, propName).concat(arguments));
return(_local2);
});
}};
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 i in methods) {
shortcuts[i] = _local4[i];
if (i == "colorTo") {
shortcuts._tintString = _local5._tintString;
}
if ((i.indexOf("bright") == 0) || ((i == "contrastTo") || ((i == "colorTo") || ((i == "invertColor") || ((i == "tintPercentTo") || (i == "colorResetTo")))))) {
shortcuts[methods[i]] = _local5[methods[i]];
}
}
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 _local6 = com.mosesSupposes.fuse.ZigoEngine.doTween(this, "_alpha", 0, seconds, ease, delay, callback);
com.mosesSupposes.fuse.ZigoEngine.addListener(this.__fadeOutEnd);
return(_local6);
};
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 _local8 = {};
_local8.rgb = arguments.shift();
_local8.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 20512 MovieClip [__Packages.com.skivecreative.queues.DelayedAction] Frame 0
class com.skivecreative.queues.DelayedAction
{
function DelayedAction () {
}
static function frameDelay(_object, _method, _delay, _params) {
var _local6 = new com.skivecreative.queues.ActionQueue();
_local6.addFrameDelay(_delay);
_local6.addAction(_object, _method, _params);
_local6.begin();
}
static function timeDelay(_object, _method, _delay) {
var _local5 = new com.skivecreative.queues.ActionQueue();
_local5.addDelay(_delay);
var _local6 = [_object, _method].concat(arguments.splice(3, arguments.length - 3));
_local5.addAction.apply(_local5, _local6);
_local5.begin();
}
}
Symbol 20513 MovieClip [__Packages.patapon.game.behaviours.ISequenceBehaviour] Frame 0
class patapon.game.behaviours.ISequenceBehaviour
{
function ISequenceBehaviour () {
}
}
Symbol 20514 MovieClip [__Packages.patapon.game.behaviours.DefendBehaviour] Frame 0
class patapon.game.behaviours.DefendBehaviour implements patapon.game.behaviours.ISequenceBehaviour
{
var stage, patapons, scene, sequenceManager, isDefending, soundID, endPost, sound_1, sound_2, whirlwind, windInterval;
function DefendBehaviour () {
}
function init(stage, patapons, scene, sequenceManager) {
this.stage = stage;
this.patapons = patapons;
this.scene = scene;
this.sequenceManager = sequenceManager;
isDefending = false;
soundID = 0;
setUpSounds();
}
function action() {
patapons.gotoAndStop("defend");
isDefending = true;
}
function nonAction() {
isDefending = false;
}
function onSequenceMissed() {
isDefending = false;
}
function onSecondarySequence() {
whirlwindAttack();
}
function onBeatHitSuccess(e) {
}
function setEndPost(endPost, q) {
this.endPost = endPost;
}
function overridesAllActions() {
return(isDefending);
}
function destroy() {
clearWhirlwind();
sound_1.stop();
sound_2.stop();
}
function setUpSounds() {
sound_1 = com.skivecreative.sounds.SoundManager.getInstance().getSound("CHAKA 1");
sound_2 = com.skivecreative.sounds.SoundManager.getInstance().getSound("CHAKA 2");
}
function playDefendSound() {
if (soundID == 0) {
sound_1.start();
soundID = 1;
} else {
sound_2.start();
soundID = 0;
}
}
function whirlwindAttack() {
var _local2 = "wwAttack" + count;
whirlwind = stage.attachMovie("whirlwindAttack", _local2, stage.getNextHighestDepth());
whirlwind._x = 0;
whirlwind._y = 220;
count++;
com.skivecreative.sounds.SoundManager.getInstance().getSound("WIND SOUND").start();
windInterval = _global.setInterval(com.bourre.commands.Delegate.create(this, checkForWhirlwind), 50);
com.skivecreative.queues.DelayedAction.frameDelay(this, clearWhirlwind, 65);
}
function checkForWhirlwind() {
if (whirlwind.hitTest(patapons.leader_mc)) {
if (isDefending) {
whirlwind.removeMovieClip();
deflectWind();
} else {
hit();
com.skivecreative.sounds.SoundManager.getInstance().getSound("WIND OUCH").start();
}
}
}
function deflectWind() {
var _local2 = "dWind" + count;
var _local3 = stage.attachMovie("whirlwind", _local2, stage.getNextHighestDepth());
_local3._x = 300;
_local3._y = 350;
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_x", 700, 1, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_y", 0, 1, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3, "_alpha", 0, 1, "linear");
com.mosesSupposes.fuse.ZigoEngine.doShortcut(_local3, "scaleTo", 0, 1, "easeOutQuad");
}
function hit() {
patapons.gotoAndPlay("whirlwind");
sequenceManager.disable();
com.skivecreative.queues.DelayedAction.timeDelay(this, clearHit, 1.5);
}
function clearHit() {
sequenceManager.enable();
}
function clearWhirlwind() {
_global.clearInterval(windInterval);
}
static var count = 0;
}
Symbol 20515 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.count + ": ") + message);
_global.tt((com.skivecreative.utils.FrameCounter.count + ": ") + message);
_global.trace((com.skivecreative.utils.FrameCounter.count + ": ") + message);
}
static var isInitialized = false;
static var isDisabled = false;
}
Symbol 20516 MovieClip [__Packages.com.skivecreative.text.Formatter] Frame 0
class com.skivecreative.text.Formatter
{
function Formatter () {
}
static function addStyle(name, style) {
var _local4 = style;
if (style instanceof com.skivecreative.xml.XMLSA) {
_local4 = new Object();
for (var i in style) {
_local4[i] = style[i].getValue();
if (_local4[i] == "true") {
_local4[i] = true;
}
}
}
styles[name] = _local4;
}
static function addStyles(styles) {
var _local3 = 0;
for ( ; _local3 < styles.length ; _local3++) {
if (verbose) {
com.skivecreative.log.Logging.trace("INFO: Adding font style - " + styles[_local3].attributes.id);
}
addStyle(styles[_local3].attributes.id, styles[_local3]);
}
}
static function getStyle(id) {
if ((id == undefined) || ((id == null) || ((id == "") || (id == "undefined")))) {
id = "default";
}
var _local3 = new TextFormat();
var _local4 = styles[id];
for (var i in _local4) {
_local3[i] = _local4[i];
}
return(_local3);
}
static function formatScreen(stage, x) {
var _local4 = arguments[2];
if (_local4 == undefined) {
_local4 = 0;
}
if (_local4 > 20) {
return(undefined);
}
for (var i in stage) {
if ((stage[i] instanceof MovieClip) && ((stage[i] != stage) && ((!com.skivecreative.utils.Tools.isParent(stage[i], stage)) && (!(stage[i] instanceof mx.core.UIComponent))))) {
formatScreen(MovieClip(stage[i]), x, _local4 + 1);
}
if (stage[i] instanceof TextField) {
formatTextField(TextField(stage[i]), x);
}
}
}
static function formatTextField(tf, x) {
var _local4 = tf._name.indexOf("_txt");
if (_local4 == -1) {
return(undefined);
}
var _local5 = tf._name.substring(0, _local4);
var _local6 = x[_local5];
var _local7 = _local6.attributes.style;
if (_local7 == undefined) {
_local7 = "default";
}
var _local8 = _local6.attributes.nowrap == "true";
var _local9 = _local6.getValue();
tf.maxLines = _global.parseInt(_local6.attributes.maxLines);
var _local10 = tf.getTextFormat();
for (var i in styles[_local7]) {
var _local11 = styles[_local7][i];
if (_local11.toString().charAt(0) == "<") {
_local11 = _local11.getValue();
}
if (verbose) {
com.skivecreative.log.Logging.trace((("styles: " + i) + " - ") + _local11);
}
if (i == "size") {
if ((_local11.charAt(0) == "+") || (_local11.charAt(0) == "-")) {
styles[_local7][i] = _local10[i] + Number(_local11);
}
}
_local10[i] = styles[_local7][i];
if (_local10[i] == "true") {
_local10[i] = true;
}
}
tf.setNewTextFormat(_local10);
tf.embedFonts = true;
if (verbose) {
com.skivecreative.log.Logging.trace((("INFO: Rendering textfield: " + tf) + " <- ") + _local9);
}
fitText(_local9, tf, false, _local8);
}
static function fitText(text, tf, isPersistent, nowrap) {
if (text == undefined) {
return(undefined);
}
var _local6 = tf._rotation;
tf._rotation = 0;
var _local7 = tf._width;
var _local8 = tf._height;
var _local9 = tf.getNewTextFormat().size;
if (isPersistent) {
_local7 = getWidth(tf);
_local8 = getHeight(tf);
_local9 = getSize(tf);
}
if (checkForWordWrap) {
_local9 = getMaxSize(text, tf.getNewTextFormat(), _local7, _local9);
}
tf.embedFonts = true;
tf.text = text;
tf.wordWrap = !nowrap;
var _local10 = tf.getTextFormat();
_local10.size = _local9;
tf.autoSize = (_local10.align ? (_local10.align) : true);
tf.setTextFormat(_local10);
var _local11 = 20;
while ((tf._width > _local7) || (tf._height > _local8)) {
_local10.size--;
tf.setTextFormat(_local10);
if ((_local11--) < 0) {
if (verbose) {
com.skivecreative.log.Logging.trace(((("WARN: safety limit reached while resizing " + tf) + "(") + text) + ")");
}
return(undefined);
}
}
tf.size = _local10.size;
tf._rotation = _local6;
var _local12 = tf.maxLines;
if ((_local12 <= 0) || (_local12 == undefined)) {
return(undefined);
}
_local11 = 20;
while (com.skivecreative.text.TextTools.getTotalLines(tf) > _local12) {
_local10.size--;
tf.setTextFormat(_local10);
if ((_local11--) < 0) {
if (verbose) {
com.skivecreative.log.Logging.trace(((("WARN: safety limit reached while resizing " + tf) + "(") + text) + ")");
}
return(undefined);
}
}
tf.size = _local10.size;
}
static function getMaxSize(text, f, width, size) {
var _local6 = _root.getNextHighestDepth();
_root.createTextField("tf", _local6, -1000, -1000, 100, 100);
var _local7 = _root.tf;
_local7.autoSize = true;
_local7.embedFonts = true;
_local7.setNewTextFormat(f);
var _local8 = 0;
text = text.split(newline).join(" ");
text = text.split("\r").join(" ");
var _local10 = text.split(" ");
var _local11 = 0;
for ( ; _local11 < _local10.length ; _local11++) {
_local7.text = _local10[_local11];
if (_local7._width > _local8) {
_local8 = _local7._width;
var _local9 = _local10[_local11];
}
}
_local7.text = _local9;
while (_local7._width > width) {
f.size--;
_local7.setTextFormat(f);
}
_local7.removeTextField();
return(f.size);
}
static function getId(tf) {
if (tf._parent.___tfs == undefined) {
tf._parent.___tfs = new Object();
}
if (tf._parent.___tfs[tf._name] != undefined) {
return(tf._parent.___tfs[tf._name]);
}
tf.autoSize = false;
if (tf.text == "") {
tf.text = "^p";
}
var _local3 = tf.getNewTextFormat();
tfs.push({tf:tf, size:_local3.size, width:tf._width, height:tf._height});
tf._parent.___tfs[tf._name] = tfs.length - 1;
return(tfs.length - 1);
}
static function getSize(tf) {
var _local3 = getId(tf);
return(tfs[_local3].size);
}
static function getWidth(tf) {
var _local3 = getId(tf);
return(tfs[_local3].width);
}
static function getHeight(tf) {
var _local3 = getId(tf);
return(tfs[_local3].height);
}
static function replaceFont(stage, f1, f2, safety) {
if (safety == undefined) {
safety = 0;
}
if (safety > 20) {
return(undefined);
}
for (var i in stage) {
if ((stage[i] instanceof MovieClip) && ((stage[i] != stage) && ((!com.skivecreative.utils.Tools.isParent(stage[i], stage)) && (!(stage[i] instanceof mx.core.UIComponent))))) {
replaceFont(MovieClip(stage[i]), f1, f2, safety + 1);
}
if (stage[i] instanceof TextField) {
var _local6 = stage[i];
var _local7 = _local6.getTextFormat();
if (_local7.font == null) {
_local7 = _local6.getNewTextFormat();
}
if (_local7.font == f1) {
_local7.font = f2;
_local6.setTextFormat(_local7);
_local6.setNewTextFormat(_local7);
}
}
}
}
static var tfs = new Array();
static var styles = new Array();
static var checkForWordWrap = false;
static var verbose = false;
}
Symbol 20517 MovieClip [__Packages.patapon.game.ParallaxScroller] Frame 0
class patapon.game.ParallaxScroller
{
function ParallaxScroller () {
}
static function addScrollObject(mc) {
scrollItems.push(mc);
}
static function scroll(stage, mcStack, clipPoint, deadZone, speed, z) {
var _local8 = mcStack[0];
var _local9 = mcStack[1];
_local8.swapDepths((stage.getNextHighestDepth() + (z * 2)) + 2);
_local8._x = _local8._x - speed;
if (_local9 != undefined) {
_local9.swapDepths((stage.getNextHighestDepth() + (z * 2)) + 1);
_local9._x = _local9._x - speed;
}
if ((_local8._x <= clipPoint) && (_local9 == undefined)) {
var _local10 = "clip" + count;
_local8.duplicateMovieClip(_local10, stage.getNextHighestDepth());
mcStack[1] = stage[_local10];
_local9 = mcStack[1];
_local9._x = _local8._x + _local8._width;
_local9.cacheAsBitmap = true;
count++;
}
if (_local8._x <= deadZone) {
_local8.swapDepths(stage.getNextHighestDepth());
_local8.removeMovieClip();
mcStack[0] = _local9;
mcStack[1] = undefined;
}
if (speed == 3) {
var _local11 = 0;
for ( ; _local11 < scrollItems.length ; _local11++) {
MovieClip(scrollItems[_local11])._x = MovieClip(scrollItems[_local11])._x - 3;
MovieClip(scrollItems[_local11]).swapDepths(stage.getNextHighestDepth());
}
}
stage.fg_mc.swapDepths(stage.getNextHighestDepth());
}
static var count = 0;
static var scrollItems = new Array();
}
Symbol 20518 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
while (var _local4 = _local3.shift() , _local4 != undefined) {
_local4.obj[_local4.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
for (var _local3 in tfList) {
tfList[_local3].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local5 = _x;
var _local6 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local5, oldY:_local6});
}
}
function setSize(w, h, noEvent) {
var _local5 = __width;
var _local6 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local5, oldHeight:_local6});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local5 = this[name];
_local5._color = textColorList;
_local5._visible = false;
_local5.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local5;
_local5.invalidateStyle();
invalidate();
_local5.styleName = this;
return(_local5);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local6 = className.symbolName == undefined;
if (_local6) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local7 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local6) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local7);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local3 = this[id];
if (_local3.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local6 = _local5;
_local3.swapDepths(_local6);
}
_local3.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local3 = getSkinIDName(tag);
createEmptyObject(_local3, tag);
return(this[_local3]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local3 = false;
for (var _local4 in clipParameters) {
if (hasOwnProperty(_local4)) {
_local3 = true;
this["def_" + _local4] = this[_local4];
delete this[_local4];
}
}
if (_local3) {
for (var _local4 in clipParameters) {
var _local5 = this["def_" + _local4];
if (_local5 != undefined) {
this[_local4] = _local5;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local3 = this;
var _local4 = className;
while (_local4 != undefined) {
if (ignoreClassStyleDeclaration[_local4] == undefined) {
if (_global.styles[_local4] != undefined) {
return(_global.styles[_local4]);
}
}
_local3 = _local3.__proto__;
_local4 = _local3.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local4 = stylecache.tf;
if (_local4 != undefined) {
for (var _local5 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local5])) {
if (tf[_local5] == undefined) {
tf[_local5] = _local4[_local5];
}
}
}
return(false);
}
var _local6 = false;
for (var _local7 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local7])) {
if (tf[_local7] == undefined) {
var _local8 = _tf[_local7];
if (_local8 != undefined) {
tf[_local7] = _local8;
} else if ((_local7 == "font") && (fontFamily != undefined)) {
tf[_local7] = fontFamily;
} else if ((_local7 == "size") && (fontSize != undefined)) {
tf[_local7] = fontSize;
} else if ((_local7 == "color") && (color != undefined)) {
tf[_local7] = color;
} else if ((_local7 == "leftMargin") && (marginLeft != undefined)) {
tf[_local7] = marginLeft;
} else if ((_local7 == "rightMargin") && (marginRight != undefined)) {
tf[_local7] = marginRight;
} else if ((_local7 == "italic") && (fontStyle != undefined)) {
tf[_local7] = fontStyle == _local7;
} else if ((_local7 == "bold") && (fontWeight != undefined)) {
tf[_local7] = fontWeight == _local7;
} else if ((_local7 == "align") && (textAlign != undefined)) {
tf[_local7] = textAlign;
} else if ((_local7 == "indent") && (textIndent != undefined)) {
tf[_local7] = textIndent;
} else if ((_local7 == "underline") && (textDecoration != undefined)) {
tf[_local7] = textDecoration == _local7;
} else if ((_local7 == "embedFonts") && (embedFonts != undefined)) {
tf[_local7] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local3 = stylecache.tf;
if (_local3 != undefined) {
return(_local3);
}
_local3 = new TextFormat();
__getTextFormat(_local3, true);
stylecache.tf = _local3;
if (enabled == false) {
var _local4 = getStyle("disabledColor");
_local3.color = _local4;
}
return(_local3);
}
function getStyleName(Void) {
var _local3 = styleName;
if (_local3 != undefined) {
if (typeof(_local3) != "string") {
return(_local3.getStyleName());
}
return(_local3);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local4 = styleName;
if (_local4 != undefined) {
if (typeof(_local4) != "string") {
_local3 = _local4.getStyle(styleProp);
} else {
var _local5 = _global.styles[_local4];
_local3 = _local5.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local6 = getClassStyleDeclaration();
if (_local6 != undefined) {
_local3 = _local6[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local7 = stylecache;
if (_local7 != undefined) {
if (_local7[styleProp] != undefined) {
return(_local7[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local7 != undefined) {
_local7[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var i in p) {
o[i] = p[i];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 20519 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject
{
var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled;
function UIComponent () {
super();
}
function get width() {
return(__width);
}
function get height() {
return(__height);
}
function setVisible(x, noEvent) {
super.setVisible(x, noEvent);
}
function enabledChanged(id, oldValue, newValue) {
setEnabled(newValue);
invalidate();
delete stylecache.tf;
return(newValue);
}
function setEnabled(enabled) {
invalidate();
}
function getFocus() {
var _local2 = Selection.getFocus();
return(((_local2 === null) ? null : (eval (_local2))));
}
function setFocus() {
Selection.setFocus(this);
}
function getFocusManager() {
var _local2 = this;
while (_local2 != undefined) {
if (_local2.focusManager != undefined) {
return(_local2.focusManager);
}
_local2 = _local2._parent;
}
return(undefined);
}
function onKillFocus(newFocus) {
removeEventListener("keyDown", this);
removeEventListener("keyUp", this);
dispatchEvent({type:"focusOut"});
drawFocus(false);
}
function onSetFocus(oldFocus) {
addEventListener("keyDown", this);
addEventListener("keyUp", this);
dispatchEvent({type:"focusIn"});
if (getFocusManager().bDrawFocus != false) {
drawFocus(true);
}
}
function findFocusInChildren(o) {
if (o.focusTextField != undefined) {
return(o.focusTextField);
}
if (o.tabEnabled == true) {
return(o);
}
return(undefined);
}
function findFocusFromObject(o) {
if (o.tabEnabled != true) {
if (o._parent == undefined) {
return(undefined);
}
if (o._parent.tabEnabled == true) {
o = o._parent;
} else if (o._parent.tabChildren) {
o = findFocusInChildren(o._parent);
} else {
o = findFocusFromObject(o._parent);
}
}
return(o);
}
function pressFocus() {
var _local2 = findFocusFromObject(this);
var _local3 = getFocus();
if (_local2 != _local3) {
_local3.drawFocus(false);
if (getFocusManager().bDrawFocus != false) {
_local2.drawFocus(true);
}
}
}
function releaseFocus() {
var _local2 = findFocusFromObject(this);
if (_local2 != getFocus()) {
_local2.setFocus();
}
}
function isParent(o) {
while (o != undefined) {
if (o == this) {
return(true);
}
o = o._parent;
}
return(false);
}
function size() {
}
function init() {
super.init();
_xscale = 100;
_yscale = 100;
_focusrect = _global.useFocusRect == false;
watch("enabled", enabledChanged);
if (enabled == false) {
setEnabled(false);
}
}
function dispatchValueChangedEvent(value) {
dispatchEvent({type:"valueChanged", value:value});
}
static var symbolName = "UIComponent";
static var symbolOwner = mx.core.UIComponent;
static var kStretch = 5000;
var focusEnabled = true;
var tabEnabled = true;
var origBorderStyles = {themeColor:16711680};
var clipParameters = {};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters);
}
Symbol 20520 MovieClip [__Packages.com.bourre.commands.Command] Frame 0
class com.bourre.commands.Command
{
function Command () {
}
}
Symbol 20521 MovieClip [__Packages.com.bourre.commands.Delegate] Frame 0
class com.bourre.commands.Delegate implements com.bourre.transitions.IFrameListener, com.bourre.commands.Command
{
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 _local4 = function () {
var _local2 = arguments.callee.t;
var _local3 = arguments.callee.f;
var _local4 = arguments.concat(arguments.callee.a);
return(_local3.apply(_local2, _local4));
};
_local4.t = o;
_local4.f = f;
_local4.a = arguments.splice(2);
return(_local4);
}
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 20522 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) {
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;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
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;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * (0.3 * 1.5);
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * (0.3 * 1.5);
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local8 = p / 4;
} else {
var _local8 = (p / (2 * Math.PI)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local8) * (2 * Math.PI)) / 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 < (1 / 2.75)) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < (2 / 2.75)) {
t = t - (1.5 / 2.75);
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < (2.5 / 2.75)) {
t = t - (2.25 / 2.75);
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - (2.625 / 2.75);
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 20523 MovieClip [__Packages.com.bourre.log.LogListener] Frame 0
class com.bourre.log.LogListener
{
function LogListener () {
}
}
Symbol 20524 MovieClip [__Packages.patapon.game.rythm.TrumpetNote] Frame 0
class patapon.game.rythm.TrumpetNote
{
var stage, key, drumType, direction, mc;
function TrumpetNote (stage, key, drumType, direction) {
this.stage = stage;
this.key = key;
this.drumType = drumType;
this.direction = direction;
}
function init(n) {
var _local3 = "beat" + noteCount;
mc = stage.attachMovie(drumType + "_DRUM", _local3, stage.getNextHighestDepth());
mc.arrow_mc.gotoAndStop(direction);
mc.cacheAsBitmap = true;
mc._x = 450;
mc._y = 300;
noteCount++;
var _local4 = (n * 60) + 451;
mc._xscale = (mc._yscale = 50);
com.mosesSupposes.fuse.ZigoEngine.doShortcut(mc, "scaleTo", 100, 0.2, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", _local4, 0.2, "easeInOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", 40, 0.2, "linear");
if (n == 3) {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 0, 0.1, "easeInExpo");
}
}
function correct() {
}
function incorrect() {
}
function getMC() {
return(mc);
}
function getKey() {
return(key);
}
function destroy() {
mc.removeMovieClip();
}
static var noteCount = 0;
}
Symbol 20525 MovieClip [__Packages.patapon.game.behaviours.AttackBehaviour] Frame 0
class patapon.game.behaviours.AttackBehaviour implements patapon.game.behaviours.ISequenceBehaviour
{
var stage, patapons, scene, sequenceManager, isAttacking, attackCount, soundID, ponSounds, endPost, missionComplete, blackness, sound_1, sound_2, sound_3, sound_4, localisedNodes;
function AttackBehaviour () {
}
function init(stage, patapons, scene, sequenceManager) {
this.stage = stage;
this.patapons = patapons;
this.scene = scene;
this.sequenceManager = sequenceManager;
isAttacking = false;
attackCount = 0;
soundID = 0;
ponSounds = new Array();
setUpSounds();
}
function action() {
attackCount++;
if (isAttacking) {
continueAttack();
com.skivecreative.queues.DelayedAction.frameDelay(this, damageCastle, 20);
} else {
attack();
com.skivecreative.queues.DelayedAction.frameDelay(this, damageCastle, 66);
}
if (attackCount == 5) {
com.skivecreative.queues.DelayedAction.frameDelay(this, castleDestroyed, 80);
}
}
function nonAction() {
}
function onBeatHitSuccess(e) {
}
function onSequenceMissed() {
if (isAttacking) {
retreat();
isAttacking = false;
}
}
function onSecondarySequence() {
}
function setEndPost(endPost, q) {
this.endPost = endPost;
}
function overridesAllActions() {
return(isAttacking);
}
function destroy() {
missionComplete.removeMovieClip();
blackness.removeMovieClip();
}
function setUpSounds() {
sound_1 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PON 1");
sound_2 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PON 2");
sound_3 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PON 3");
sound_4 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PON 4");
ponSounds.push(sound_1, sound_2, sound_3, sound_4);
}
function playAttackSound() {
Sound(ponSounds[soundID]).start();
soundID++;
if (soundID > 3) {
soundID = 0;
}
}
function attack() {
patapons.p1_mc.gotoAndPlay("attack");
patapons.p2_mc.gotoAndPlay("attack");
patapons.p3_mc.gotoAndPlay("attack");
patapons.p4_mc.gotoAndPlay("attack");
patapons.p5_mc.gotoAndPlay("attack");
patapons.p6_mc.gotoAndPlay("attack");
patapons.p7_mc.gotoAndPlay("attack");
patapons.p8_mc.gotoAndPlay("attack");
patapons.p9_mc.gotoAndPlay("attack");
patapons.p10_mc.gotoAndPlay("attack");
patapons.leader_mc.gotoAndPlay("attack");
isAttacking = true;
}
function continueAttack() {
patapons.p1_mc.gotoAndPlay("attack");
patapons.p2_mc.gotoAndPlay("attack");
patapons.p3_mc.gotoAndPlay("continueAttack");
patapons.p4_mc.gotoAndPlay("continueAttack");
patapons.p5_mc.gotoAndPlay("attack");
patapons.p6_mc.gotoAndPlay("attack");
patapons.p7_mc.gotoAndPlay("attack");
patapons.p8_mc.gotoAndPlay("attack");
patapons.p9_mc.gotoAndPlay("attack");
patapons.p10_mc.gotoAndPlay("continueAttack");
patapons.leader_mc.gotoAndPlay("continueAttack");
}
function dance() {
patapons.p1_mc.gotoAndStop("dance");
patapons.p2_mc.gotoAndStop("dance");
patapons.p3_mc.gotoAndStop("dance");
patapons.p4_mc.gotoAndStop("dance");
patapons.p5_mc.gotoAndStop("dance");
patapons.p6_mc.gotoAndStop("dance");
patapons.p7_mc.gotoAndStop("dance");
patapons.p8_mc.gotoAndStop("dance");
patapons.p9_mc.gotoAndStop("dance");
patapons.p10_mc.gotoAndStop("dance");
patapons.leader_mc.gotoAndStop("dance");
}
function castleDestroyed() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onCastleDestroyed));
sequenceManager.kill();
playMissionCompleteSound();
dance();
com.skivecreative.queues.DelayedAction.frameDelay(this, showEndScreen, 22);
}
function playMissionCompleteSound() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("MISSION COMPLETE").start();
}
function showEndScreen() {
var _local2 = patapon.LocalisationManager.getInstance().getLangCode();
if (_local2 == "en") {
missionComplete = stage.attachMovie("missionCompleteBar", "mcABar", stage.getNextHighestDepth());
} else {
missionComplete = stage.attachMovie("missionComplete-NOT_EN", "mcABar", stage.getNextHighestDepth());
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(missionComplete.missionComplete_txt, localisedNodes.eol);
}
missionComplete._x = 0;
missionComplete._y = 452;
missionComplete._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 100, 0.8, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", 165, 0.8, "easeOutBack", 0, {scope:this, func:"proceedToDownloadScreen"});
}
function proceedToDownloadScreen() {
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 0, 0.8, "easeInQuad", 1.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", -65, 0.8, "easeInOutBack", 1.5);
com.skivecreative.queues.DelayedAction.timeDelay(this, fadeToBlack, 2.7);
}
function fadeToBlack() {
blackness = stage.attachMovie("blackness", "blacknessA", stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"end"});
}
function end() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onLevelComplete));
}
function damageCastle() {
endPost.gotoAndPlay("hit " + attackCount);
com.skivecreative.sounds.SoundManager.getInstance().getSound("CASTLE ATTACK").start();
}
function retreat() {
patapons.gotoAndStop("retreat");
}
}
Symbol 20526 MovieClip [__Packages.patapon.game.TrumpetSequenceManager] Frame 0
class patapon.game.TrumpetSequenceManager extends com.bourre.events.EventBroadcaster
{
var stage, keyIsDown, enabled, pastSequences, mc, beatMarker, beatMachine, currentSequence;
function TrumpetSequenceManager (stage) {
super();
this.stage = stage;
init();
}
function init() {
keyIsDown = false;
enabled = true;
pastSequences = new Array();
mc = stage.attachMovie("sequence bar", "sequenceBG", stage.getNextHighestDepth(), {_x:0, _y:-85});
beatMarker = stage.attachMovie("barOverlay", "sequenceBG", stage.getNextHighestDepth(), {_x:0, _y:-85});
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", 0, 0.5, "easeOutExpo");
com.mosesSupposes.fuse.ZigoEngine.doTween(beatMarker, "_y", 0, 0.5, "easeOutExpo");
}
function start() {
beatMachine = new patapon.game.rythm.BeatMachine(stage);
createSequences();
beatMachine.addEventListener(patapon.events.EventList.onNormaliseBeat, this, onNormaliseBeat);
Key.addListener(this);
}
function kill() {
Key.removeListener(this);
currentSequence.removeListener(this);
beatMachine.destroy();
currentSequence.destroy();
var _local2 = 0;
for ( ; _local2 < pastSequences.length ; _local2++) {
patapon.game.rythm.TrumpetSequence(pastSequences[_local2]).destroy();
}
com.mosesSupposes.fuse.ZigoEngine.doTween(beatMarker, "_y", mc._y - 85, 0.6, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_y", mc._y - 85, 0.6, "linear");
}
function disable() {
Key.removeListener(this);
}
function enable() {
Key.addListener(this);
}
function onKeyDown() {
if (!keyIsDown) {
currentSequence.enterKeyCode(Key.getCode());
keyIsDown = true;
}
}
function onKeyUp() {
keyIsDown = false;
}
function newSequence() {
currentSequence = new patapon.game.rythm.TrumpetSequence(stage, 4, 120, new Array(0.5, 0.5, 0.5), mc);
currentSequence.addEventListener(patapon.events.EventList.onTrumpetSequenceDestroyed, this, onTrumpetSequenceDestroyed);
pastSequences.push(currentSequence);
}
function createSequences() {
var _local2 = new com.skivecreative.queues.ActionQueue();
_local2.addDelay(4.95);
_local2.addAction(this, newSequence);
beatMachine.start();
_local2.begin();
}
function onTrumpetSequenceDestroyed(e) {
var _local3 = e.getSequence();
com.skivecreative.arrays.ArrayTools.remove(pastSequences, _local3, 1);
}
function onNormaliseBeat() {
newSequence();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
Key.removeListener(this);
beatMachine.destroy();
}
static var numSequences = 20;
}
Symbol 20527 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 _local3 = _oContainer["sound" + sID];
_local3.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 _local4 = 0;
for ( ; _local4 < _local3 ; _local4++) {
addSound(a[_local4]);
}
}
function toggleOnOff() {
if (_bIsOn) {
goOff();
} else {
goOn();
}
}
function get isOn() {
return(_bIsOn);
}
function goOn() {
_bIsOn = true;
}
function goOff() {
_bIsOn = false;
for (var sID in _oSounds) {
_oSounds[sID].stop();
}
}
function getAllSounds() {
var _local2 = new Array();
for (var p in _oSounds) {
_local2.push(_oSounds[p]);
}
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 _local6 = new Sound(_local5);
if (sURL) {
var _local7 = new com.bourre.events.DynBasicEvent(onSoundLoadEVENT);
_local7.soundID = sLinkageID;
_local7.soundURL = sURL;
_local6.onLoad = com.bourre.commands.Delegate.create(this, _fireEvent, _local7);
_local6.loadSound(sURL, false);
} else {
_local6.attachSound(sLinkageID);
}
return(_local6);
}
function _fireEvent(b, e) {
e.success = b;
_oEB.broadcastEvent(e);
}
static var onSoundLoadEVENT = new com.bourre.events.EventType("onSoundLoad");
}
Symbol 20528 MovieClip [__Packages.com.skivecreative.effects.Pulsate] Frame 0
class com.skivecreative.effects.Pulsate
{
var target, speed, length, minAlpha, maxAlpha, callBack, state, initAlpha, startInterval, stopInterval;
function Pulsate (target, speed, length, minAlpha, maxAlpha, callBack) {
this.target = target;
this.speed = speed;
this.length = length;
this.minAlpha = minAlpha;
this.maxAlpha = maxAlpha;
this.callBack = callBack;
init();
}
function init() {
state = "on";
var _local2 = length * 1000;
initAlpha = target._alpha;
minAlpha = ((minAlpha == undefined) ? 30 : (minAlpha));
maxAlpha = ((maxAlpha == undefined) ? 100 : (maxAlpha));
startInterval = _global.setInterval(com.bourre.commands.Delegate.create(this, pulse), speed);
stopInterval = _global.setInterval(com.bourre.commands.Delegate.create(this, stopPulse), _local2);
}
function pulse() {
switch (state) {
case "on" :
hide();
state = "off";
break;
case "off" :
show();
state = "on";
}
}
function show() {
target._alpha = minAlpha;
}
function hide() {
target._alpha = maxAlpha;
}
function stopPulse() {
_global.clearInterval(startInterval);
_global.clearInterval(stopInterval);
target._alpha = initAlpha;
if (callBack != undefined) {
callBack();
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
_global.clearInterval(startInterval);
_global.clearInterval(stopInterval);
target._alpha = initAlpha;
}
}
Symbol 20529 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 _local3 = new Object();
_local3.loggerId = null;
_local3.levelName = e.level.getName();
_local3.time = new Date();
if (isCollapsable) {
_local3.argument = _serializeObj(e.content, 1);
} else {
var _local4 = new Object();
_local4.type = "string";
_local4.value = e.content.toString();
_local3.argument = _local4;
}
_lc.send("_luminicbox_log_console", "log", _local3);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function _serializeObj(o, depth) {
var _local4 = _getType(o);
var _local5 = new Object();
if (!_local4.inspectable) {
_local5.value = o;
} else if (_local4.stringify) {
_local5.value = o + "";
} else if (depth <= _nCollapseDepth) {
if ((_local4.name == "movieclip") || (_local4.name == "button")) {
_local5.id = o + "";
}
var _local6 = new Array();
if (o instanceof Array) {
var _local7 = 0;
for ( ; _local7 < o.length ; _local7++) {
_local6.push({property:_local7, value:_serializeObj(o[_local7], depth + 1)});
}
} else {
for (var prop in o) {
_local6.push({property:prop, value:_serializeObj(o[prop], depth + 1)});
}
}
_local5.value = _local6;
} else {
_local5.reachLimit = true;
}
_local5.type = _local4.name;
return(_local5);
}
function _getType(o) {
var _local3 = typeof(o);
var _local4 = new Object();
_local4.inspectable = true;
_local4.name = _local3;
if ((_local3 == "string") || ((_local3 == "boolean") || ((_local3 == "number") || ((_local3 == "undefined") || (_local3 == "null"))))) {
_local4.inspectable = false;
} else if (o instanceof Date) {
_local4.inspectable = false;
_local4.name = "date";
} else if (o instanceof Array) {
_local4.name = "array";
} else if (o instanceof Button) {
_local4.name = "button";
} else if (o instanceof MovieClip) {
_local4.name = "movieclip";
} else if (o instanceof XML) {
_local4.name = "xml";
_local4.stringify = true;
} else if (o instanceof XMLNode) {
_local4.name = "xmlnode";
_local4.stringify = true;
} else if (o instanceof Color) {
_local4.name = "color";
}
return(_local4);
}
}
Symbol 20530 MovieClip [__Packages.patapon.Localiser] Frame 0
class patapon.Localiser
{
var stage, menu, bubble, overFormat, outFormat, introPon, pon1, pon2, pon3, blackness;
function Localiser (stage) {
this.stage = stage;
init();
}
function init() {
menu = stage.localiser_mc.select_mc;
bubble = stage.localiser_mc.bubble_mc;
bubble._visible = false;
bubble._xscale = 0;
bubble._yscale = 0;
overFormat = new TextFormat();
overFormat.color = 0;
outFormat = new TextFormat();
outFormat.color = 16777215 /* 0xFFFFFF */;
menu.danmark_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "danmark");
menu.osterreich_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "osterreich");
menu.schweiz_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "schweiz");
menu.deutschland_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "deutschland");
menu.luxemburg_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "luxemburg");
menu.australia_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "australia");
menu.uk_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "uk");
menu.ireland_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "ireland");
menu.espana_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "espana");
menu.suomi_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "suomi");
menu.belgique_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "belgique");
menu.suisse_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "suisse");
menu.france_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "france");
menu.luxembourg_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "luxembourg");
menu.svizzera_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "svizzera");
menu.italia_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "italia");
menu.belgie_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "belgie");
menu.nederland_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "nederland");
menu.norge_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "norge");
menu.portugal_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "portugal");
menu.sverige_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "sverige");
menu.newZealand_btn.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, "newZealand");
menu.danmark_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "danmark");
menu.osterreich_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "osterreich");
menu.schweiz_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "schweiz");
menu.deutschland_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "deutschland");
menu.luxemburg_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "luxemburg");
menu.australia_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "australia");
menu.uk_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "uk");
menu.ireland_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "ireland");
menu.espana_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "espana");
menu.suomi_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "suomi");
menu.belgique_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "belgique");
menu.suisse_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "suisse");
menu.france_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "france");
menu.luxembourg_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "luxembourg");
menu.svizzera_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "svizzera");
menu.italia_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "italia");
menu.belgie_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "belgie");
menu.nederland_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "nederland");
menu.norge_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "norge");
menu.portugal_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "portugal");
menu.sverige_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "sverige");
menu.newZealand_btn.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, "newZealand");
menu.danmark_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "da_DK");
menu.osterreich_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "de_AT");
menu.schweiz_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "de_CH");
menu.deutschland_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "de_DE");
menu.luxemburg_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "de_LU");
menu.australia_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "en_AU");
menu.uk_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "en_GB");
menu.ireland_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "en_IE");
menu.espana_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "es_ES");
menu.suomi_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "fi_FI");
menu.belgique_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "fr_BE");
menu.suisse_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "fr_CH");
menu.france_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "fr_FR");
menu.luxembourg_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "fr_BE");
menu.svizzera_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "it_CH");
menu.italia_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "it_IT");
menu.belgie_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "nl_BE");
menu.nederland_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "nl_NL");
menu.norge_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "no_NO");
menu.portugal_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "pt_PT");
menu.sverige_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "sv_SE");
menu.newZealand_btn.onRelease = com.bourre.commands.Delegate.create(this, selectCountry, "en_NZ");
bringInPatapon();
patapon.LocalisationManager.getInstance().addMuteButton(stage);
}
function bringInPatapon() {
introPon = stage.localiser_mc.introPon_mc;
pon1 = stage.localiser_mc.pon1_mc;
pon2 = stage.localiser_mc.pon2_mc;
pon3 = stage.localiser_mc.pon3_mc;
pon3._xscale = pon3._xscale * -1;
pon3._x = pon3._x + 10;
com.mosesSupposes.fuse.ZigoEngine.doTween(introPon, "_x", introPon._x + 180, 2, "linear", 0, {scope:this, func:"haltIntroPon"});
com.mosesSupposes.fuse.ZigoEngine.doTween(pon1, "_x", pon1._x + 130, 1.5, "linear", 1, {scope:this, func:"haltPon1"});
com.mosesSupposes.fuse.ZigoEngine.doTween(pon2, "_x", pon2._x + 80, 0.8, "linear", 1.5, {scope:this, func:"haltPon2"});
com.mosesSupposes.fuse.ZigoEngine.doTween(pon3, "_x", pon3._x - 100, 0.4, "linear", 0.2, {scope:this, func:"haltPon3"});
}
function haltPon1() {
pon1.gotoAndPlay("stand");
}
function haltPon2() {
pon2.gotoAndPlay("stand");
}
function haltPon3() {
pon3.gotoAndPlay("stand");
}
function haltIntroPon() {
bubble._visible = true;
com.skivecreative.sounds.SoundManager.getInstance().getSound("WHA").start();
com.mosesSupposes.fuse.ZigoEngine.doShortcut(bubble, "scaleTo", 100, 0.4, "easeOutBack");
introPon.gotoAndStop("stand");
com.skivecreative.queues.DelayedAction.timeDelay(this, floatUp, 0.3, bubble);
}
function selectCountry(countryCode) {
patapon.LocalisationManager.getInstance().setLocale(countryCode);
var _local3 = countryCode.substr(0, 2);
patapon.tracking.TrackingManager.getInstance().trackEvent("locale/" + countryCode);
patapon.tracking.TrackingManager.getInstance().skiveTracking("locale", countryCode);
com.mosesSupposes.fuse.ZigoEngine.removeTween(introPon);
com.skivecreative.sounds.SoundManager.getInstance().getSound("COUNTRY SELECT").start();
com.mosesSupposes.fuse.ZigoEngine.doShortcut(bubble, "scaleTo", 0, 0.2, "easeOutBack");
introPon._xscale = introPon._xscale * -1;
pon1._xscale = pon1._xscale * -1;
pon2._xscale = pon2._xscale * -1;
pon3._xscale = pon3._xscale * -1;
introPon.gotoAndPlay("walk");
pon1.gotoAndPlay("walk");
pon2.gotoAndPlay("walk");
pon3.gotoAndPlay("walk");
com.mosesSupposes.fuse.ZigoEngine.doTween(pon1, "_x", pon1._x - 135, 1, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(pon2, "_x", pon2._x - 135, 1, "linear", 0.3);
com.mosesSupposes.fuse.ZigoEngine.doTween(pon3, "_x", pon3._x + 135, 0.8, "linear", 0.2);
com.mosesSupposes.fuse.ZigoEngine.doTween(introPon, "_x", introPon._x - 135, 1.5, "linear", 0, {scope:this, func:"fadeToBlack", args:[_local3]});
}
function fadeToBlack(langCode) {
blackness = stage.attachMovie("blackness", "intBlackness", stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"initLocalisation", args:[langCode]});
}
function initLocalisation(langCode) {
patapon.LocalisationManager.getInstance().setLangCode(langCode);
patapon.LocalisationManager.getInstance().loadXML(com.bourre.commands.Delegate.create(this, gotoTitle));
}
function gotoTitle() {
blackness.removeMovieClip();
patapon.Navigator.getInstance().goto("title", true);
}
function floatUp(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y - 5, 1, "linear", 0, {scope:this, func:"floatDown", args:[target]});
}
function floatDown(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y + 5, 1, "linear", 0, {scope:this, func:"floatUp", args:[target]});
}
function rollOver(stringID) {
var _local3 = menu[stringID + "_btn"];
var _local4 = menu[stringID + "_txt"];
com.mosesSupposes.fuse.ZigoEngine.removeTween(_local3.bg_mc);
_local3.bg_mc._alpha = 100;
_local4.setTextFormat(overFormat);
}
function rollOut(stringID) {
var _local3 = menu[stringID + "_btn"];
var _local4 = menu[stringID + "_txt"];
com.mosesSupposes.fuse.ZigoEngine.doTween(_local3.bg_mc, "_alpha", 0, 0.2, "easeOutQuad");
_local4.setTextFormat(outFormat);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
}
}
Symbol 20531 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 20532 MovieClip [__Packages.com.skivecreative.utils.Tools] Frame 0
class com.skivecreative.utils.Tools
{
function Tools () {
}
static function getDepth(mc) {
do {
depth++;
} while (mc.getInstanceAtDepth(depth) != undefined);
return(depth);
}
static function getGlobalRotation(mc) {
var _local3 = 0;
var _local4 = mc;
do {
_local3 = _local3 + _local4._rotation;
_local4 = _local4._parent;
} while (_local4);
return(_local3);
}
static function getLocalRotation(mc, r) {
var _local4 = 0;
var _local5 = mc._parent;
while (_local5) {
_local4 = _local4 + _local5._rotation;
_local5 = _local5._parent;
}
return(r - _local4);
}
static function getGlobalScale(mc) {
var _local3 = 100;
var _local4 = 100;
var _local5 = mc;
do {
_local3 = _local3 * (_local5._xscale / 100);
_local4 = _local4 * (_local5._yscale / 100);
_local5 = _local5._parent;
} while (_local5);
return({xscale:_local3, yscale:_local4});
}
static function getStageBounds(initWidth, initHeight) {
var _local4 = new Object();
_local4.xMin = (initWidth - Stage.width) / 2;
_local4.xMax = _local4.xMin + Stage.width;
_local4.yMin = (initHeight - Stage.height) / 2;
_local4.yMax = _local4.yMin + Stage.height;
return(_local4);
}
static function __get__isShockwave() {
return(_root._url.indexOf(".dcr") > -1);
}
static function __get__isLive() {
return((_root._url.indexOf("http://") == 0) && (_root._url.indexOf("http://localhost") != 0));
}
static function reparent(linkageId, mc, parent) {
var _local5 = new com.bourre.structures.Point(0, 0);
mc.localToGlobal(_local5);
parent.globalToLocal(_local5);
var _local6 = parent.getNextHighestDepth();
var _local7 = parent.attachMovie(linkageId, "mc" + _local6, _local6);
for (var _local8 in mc) {
_local7[_local8] = mc[_local8];
}
_local7._x = _local5.x;
_local7._y = _local5.y;
_local7.gotoAndStop(mc._currentframe);
return(_local7);
}
static function stripDoubleLinebreaks(s) {
var _local3 = s;
var _local4 = "";
_local3 = _local3.split("\r").join(newline);
while (_local3 != _local4) {
_local4 = _local3;
_local3 = _local3.split("\n\n").join(newline);
}
return(_local3);
}
static function swap(scope, a, b) {
var _local5 = scope[b];
scope[b] = scope[a];
scope[a] = _local5;
}
static function toWholePixels(mc) {
mc._x = Math.round(mc._x);
mc._y = Math.round(mc._y);
for (var i in mc) {
if (((mc[i] instanceof MovieClip) && (!isParent(mc[i], mc))) || (mc[i] instanceof TextField)) {
toWholePixels(mc[i]);
}
}
}
static function isParent(mc1, mc2) {
if (mc1 == mc2) {
return(true);
}
if (mc2 == _root) {
return(false);
}
return(isParent(mc1, mc2._parent));
}
static function getOffStagePos(mc, direction, initWidth, initHeight) {
var _local8 = mc.getBounds(_root);
if ((initWidth != undefined) && (initHeight != undefined)) {
var _local9 = getStageBounds(initWidth, initHeight);
} else {
var _local9 = {xMin:0, yMin:0, xMax:Stage.width, yMax:Stage.height};
}
if (direction.toLowerCase().indexOf("l") > -1) {
var _local6 = _local9.xMin - _local8.xMax;
}
if (direction.toLowerCase().indexOf("r") > -1) {
var _local6 = _local9.xMax - _local8.xMin;
}
if (direction.toLowerCase().indexOf("t") > -1) {
var _local7 = _local9.yMin - _local8.yMax;
}
if (direction.toLowerCase().indexOf("b") > -1) {
var _local7 = _local9.yMax - _local8.yMin;
}
return(new com.bourre.structures.Point(mc._x + _local6, mc._y + _local7));
}
static var depth = 0;
}
Symbol 20533 MovieClip [__Packages.patapon.Title] Frame 0
class patapon.Title
{
var stage, playBackgroundLoop, menu, logo, welcomeBubble, localisedTitleNodes, flags, instructRipple, playRipple, practiceRipple, timeAttackRipple, downloadsRipple, blackness;
function Title (stage, playBackgroundLoop) {
this.stage = stage;
this.playBackgroundLoop = playBackgroundLoop;
init();
}
function init() {
menu = stage.content_mc.intro_mc.patapons_mc;
logo = stage.content_mc.intro_mc.beatCampLogo_mc;
welcomeBubble = stage.content_mc.intro_mc.welcomeBubble_mc;
welcomeBubble._visible = false;
logo._visible = false;
welcomeBubble._alpha = 100;
logo._alpha = 100;
startRipples();
initNavButtons();
disableButtons();
if (playBackgroundLoop) {
patapon.App.fadeUpSoundLoop("TITLE LOOP", 2);
fadeUp();
}
localiseText();
com.skivecreative.queues.DelayedAction.frameDelay(this, showLogo, 80);
if (welcomeCount == 0) {
com.skivecreative.queues.DelayedAction.frameDelay(this, showWelcomeBubble, 90);
welcomeCount++;
}
com.skivecreative.queues.DelayedAction.frameDelay(this, enableButtons, 100);
count++;
}
function localiseText() {
localisedTitleNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(stage.content_mc.intro_mc, localisedTitleNodes.title);
}
function showLogo() {
if ((logo != null) && (logo != undefined)) {
logo._xscale = (logo._yscale = 0);
logo._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doShortcut(logo, "scaleTo", 100, 0.3, "easeOutBack");
trace("THE LOGO EXISTS");
} else {
trace("THE LOGO DOESNT EXIST");
}
}
function startRipples() {
flags = new Array();
instructRipple = new com.skivecreative.effects.FlagRipple(menu.instructFlag_mc, 200, 50);
playRipple = new com.skivecreative.effects.FlagRipple(menu.playFlag_mc, 100, 45);
practiceRipple = new com.skivecreative.effects.FlagRipple(menu.practiceFlag_mc, 200, 50);
timeAttackRipple = new com.skivecreative.effects.FlagRipple(menu.timeFlag_mc, 200, 50);
downloadsRipple = new com.skivecreative.effects.FlagRipple(menu.downloadsFlag_mc, 200, 50);
flags.push(instructRipple, playRipple, practiceRipple, timeAttackRipple, downloadsRipple);
}
function fadeUp() {
blackness = stage.attachMovie("blackness", "tBlackness1" + count, stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 100;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 0, 0.8, "linear", 0, {scope:this, func:"removeBlackness"});
}
function removeBlackness() {
blackness.removeMovieClip();
}
function initNavButtons() {
menu.instructFlag_mc.onRelease = com.bourre.commands.Delegate.create(this, transitionOut, "instructions");
menu.practiceFlag_mc.onRelease = com.bourre.commands.Delegate.create(this, transitionOut, "game", true, "practice");
menu.timeFlag_mc.onRelease = com.bourre.commands.Delegate.create(this, transitionOut, "game", true, "timeAttack");
menu.downloadsFlag_mc.onRelease = com.bourre.commands.Delegate.create(this, transitionOut, "downloads");
menu.instructFlag_mc.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, menu.instructFlag_mc, instructRipple, "instructionsFlag");
menu.practiceFlag_mc.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, menu.practiceFlag_mc, practiceRipple, "practiceFlag");
menu.timeFlag_mc.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, menu.timeFlag_mc, timeAttackRipple, "timeAttackFlag");
menu.downloadsFlag_mc.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, menu.downloadsFlag_mc, downloadsRipple, "downloadsFlag");
menu.instructFlag_mc.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, menu.instructFlag_mc, instructRipple, "instructionsFlag");
menu.practiceFlag_mc.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, menu.practiceFlag_mc, practiceRipple, "practiceFlag");
menu.timeFlag_mc.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, menu.timeFlag_mc, timeAttackRipple, "timeAttackFlag");
menu.downloadsFlag_mc.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, menu.downloadsFlag_mc, downloadsRipple, "downloadsFlag");
}
function disableButtons() {
menu.instructFlag_mc.enabled = false;
menu.practiceFlag_mc.enabled = false;
menu.timeFlag_mc.enabled = false;
menu.downloadsFlag_mc.enabled = false;
}
function enableButtons() {
menu.instructFlag_mc.enabled = true;
menu.practiceFlag_mc.enabled = true;
menu.timeFlag_mc.enabled = true;
menu.downloadsFlag_mc.enabled = true;
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function showWelcomeBubble() {
welcomeBubble._xscale = (welcomeBubble._yscale = 0);
welcomeBubble._visible = true;
com.mosesSupposes.fuse.ZigoEngine.doShortcut(welcomeBubble, "scaleTo", 100, 0.3, "easeOutBack");
floatUp(welcomeBubble);
com.skivecreative.queues.DelayedAction.timeDelay(this, hideWelcomeBubble, 3.5);
}
function hideWelcomeBubble() {
com.mosesSupposes.fuse.ZigoEngine.doShortcut(welcomeBubble, "scaleTo", 0, 0.4, "easeOutBack", 0, {scope:this, func:"removeWelcomeBubble"});
}
function floatUp(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y - 5, 1, "linear", 0, {scope:this, func:"floatDown", args:[target]});
}
function floatDown(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y + 5, 1, "linear", 0, {scope:this, func:"floatUp", args:[target]});
}
function removeWelcomeBubble() {
welcomeBubble.welcomeText_txt.text = "";
welcomeBubble.swapDepths(stage.getNextHighestDepth());
welcomeBubble.removeMovieClip();
}
function transitionOut(section, isGame, gameType) {
disableButtons();
if (welcomeBubble != undefined) {
hideWelcomeBubble();
}
patapon.App.fadeOutSound("TITLE LOOP", 2);
welcomeBubble._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doShortcut(logo, "scaleTo", 0, 0.3, "easeInBack");
stage.content_mc.intro_mc.gotoAndStop(100);
if (isGame) {
com.skivecreative.utils.Timeline.playBackwards(stage.content_mc.intro_mc, 1, com.bourre.commands.Delegate.create(this, fadeToGame, gameType));
} else {
com.skivecreative.utils.Timeline.playBackwards(stage.content_mc.intro_mc, 1, com.bourre.commands.Delegate.create(this, fadeToBlack, section));
}
}
function fadeToGame(gameType) {
blackness = stage.attachMovie("blackness", "tblackness2" + count, stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 1.3, "linear", 0, {scope:this, func:"goto", args:["game", gameType]});
}
function fadeToBlack(section) {
com.skivecreative.sounds.SoundManager.getInstance().getSound("NIGHT TIME").start();
stage.content_mc.bg_mc.gotoAndStop("lightToDark");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.content_mc.intro_mc.sky_mc, "_alpha", 0, 0.8, "linear");
com.skivecreative.utils.Timeline.playForwards(stage.content_mc.bg_mc, 40, com.bourre.commands.Delegate.create(this, goto, section));
}
function rollOver(btn, ripple, tf) {
btn.gotoAndStop(2);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc[tf + "_txt"], localisedTitleNodes.title);
ripple.flush();
}
function rollOut(btn, ripple, tf) {
btn.gotoAndStop(1);
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc[tf + "_txt"], localisedTitleNodes.title);
ripple.flush();
}
function goto(section, gameType) {
if (blackness != undefined) {
blackness.removeMovieClip();
}
patapon.Navigator.getInstance().goto(section, null, gameType);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
var _local2 = 0;
for ( ; _local2 < flags.length ; _local2++) {
com.skivecreative.effects.FlagRipple(flags[_local2]).destroy();
}
}
static var welcomeCount = 0;
static var count = 0;
}
Symbol 20534 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 20535 MovieClip [__Packages.patapon.Game] Frame 0
class patapon.Game
{
var stage, gameType, g;
function Game (stage, gameType) {
this.stage = stage;
this.gameType = gameType;
init();
}
function init() {
g = new patapon.game.GameEngine(stage);
g.initializeGame(gameType);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
g.destroy();
}
var count = 222;
}
Symbol 20536 MovieClip [__Packages.com.bourre.utils.ClassUtils] Frame 0
class com.bourre.utils.ClassUtils
{
function ClassUtils () {
}
static function getClassName(o) {
var _local3 = getFullyQualifiedClassName(o);
return(_local3.substr(_local3.lastIndexOf(".") + 1));
}
static function inheritsFromClass(o, clazz) {
var _local4 = ((typeof(o) == "function") ? (Function(o).prototype) : (o.__proto__));
while (_local4 = _local4.__proto__ , _local4) {
if (clazz.prototype === _local4) {
return(true);
}
}
return(false);
}
static function implementsInterface(o, interfaze) {
if (inheritsFromClass(o, interfaze)) {
return(false);
}
return(o instanceof interfaze);
}
static function getFullyQualifiedClassName(o) {
return(_buildPath("", _global, ((typeof(o) == "function") ? (Function(o).prototype) : (o.__proto__))));
}
static function _buildPath(s, pack, o) {
for (var p in pack) {
var _local5 = pack[p];
if (_local5.__constructor__ === Object) {
p = _buildPath((s + p) + ".", _local5, o);
if (p) {
return(p);
}
} else if (_local5.prototype === o) {
return(s + p);
}
}
}
}
Symbol 20537 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local4 = false;
if (_tf != undefined) {
for (var _local5 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local5])) {
if (tf[_local5] == undefined) {
var _local6 = _tf[_local5];
if (_local6 != undefined) {
tf[_local5] = _local6;
} else {
_local4 = true;
}
}
}
}
} else {
_local4 = true;
}
return(_local4);
}
function getStyle(styleProp) {
var _local3 = this[styleProp];
var _local4 = mx.styles.StyleManager.getColorName(_local3);
return(((_local4 == undefined) ? (_local3) : (_local4)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 20538 MovieClip [__Packages.com.skivecreative.utils.Timeline] Frame 0
class com.skivecreative.utils.Timeline
{
function Timeline () {
}
static function playBackwards(mc, targetFrame, _params) {
if ((targetFrame == undefined) || (targetFrame == null)) {
targetFrame = 1;
}
var onCompletion;
var onEnterFrame;
if (_params instanceof Function) {
onCompletion = Function(_params);
} else {
onCompletion = _params.onCompletion;
onEnterFrame = _params.onEnterFrame;
}
if (mc._currentframe <= targetFrame) {
if (onCompletion) {
onCompletion();
}
return(undefined);
}
var _local3 = mc.__jpOnEnterFrame;
if (_local3 == undefined) {
_local3 = mc.createEmptyMovieClip("__jpOnEnterFrame", mc.getNextHighestDepth());
}
_local3.onEnterFrame = function () {
mc.prevFrame();
if (onEnterFrame) {
onEnterFrame();
}
if (mc._currentframe == targetFrame) {
this.removeMovieClip();
this.unloadMovie();
if (onCompletion) {
onCompletion();
}
}
};
}
static function playForwards(mc, targetFrame, _params) {
if ((targetFrame == undefined) || (targetFrame == null)) {
targetFrame = mc._totalframes;
}
var onCompletion;
var onEnterFrame;
if (_params instanceof Function) {
onCompletion = Function(_params);
} else {
onCompletion = _params.onCompletion;
onEnterFrame = _params.onEnterFrame;
}
if (mc._currentframe >= targetFrame) {
if (onCompletion) {
onCompletion();
}
return(undefined);
}
var _local3 = mc.__jpOnEnterFrame;
if (_local3 == undefined) {
_local3 = mc.createEmptyMovieClip("__jpOnEnterFrame", mc.getNextHighestDepth());
}
_local3.onEnterFrame = function () {
mc.nextFrame();
if (onEnterFrame) {
onEnterFrame();
}
if (mc._currentframe == targetFrame) {
this.removeMovieClip();
this.unloadMovie();
if (onCompletion) {
onCompletion();
}
}
};
}
static function getFrameAtLabel(mc, label) {
var _local4 = mc._currentframe;
mc.gotoAndStop(label);
var _local5 = mc._currentframe;
mc.gotoAndStop(_local4);
return(_local5);
}
}
Symbol 20539 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 i in arguments) {
var _local4 = arguments[i].registryKey;
if ((extensions[_local4] == undefined) && (_local3.indexOf(("|" + _local4) + "|") > -1)) {
extensions[_local4] = arguments[i];
if ((_local4 == "fuseFMP") || (_local4 == "shortcuts")) {
Object(extensions[_local4]).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 _local9 = instance.paramsObj(targets, props, endvals);
var _local10 = (((_local9.tg[0] == null) || (_local9.tg.length == 0)) ? undefined : (_local9.tg));
if ((_local9.pa == undefined) || ((_local10 == undefined) || (arguments.length < 3))) {
if ((extensions.fuseItem != null) && (typeof(_local10[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", _local10.toString(), _local9.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 _local11 = parseCallback(callback, _local10);
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
var _local12 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
var _local12 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
var _local12 = 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))) {
var _local12 = Function(ease.ease);
_local11.extra1 = ease.pts;
}
if (typeof(_local12) != "function") {
var _local12 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
var _local13 = "";
for (var i in _local10) {
var _local14 = _local10[i];
if (_local14.__zigoID__ == null) {
initializeTargets(_local14);
} else if (instance.getStatus("locked", _local14) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local14._name != undefined) ? (_local14._name) : (_local14.toString())), _local9.pa.toString());
}
continue;
}
var _local15 = instance.addTween(_local14, _local9.pa, _local9.va, seconds, _local12, delay, _local11);
_local13 = ((_local15 == null) ? "|" : (_local15 + "|")) + _local13;
}
_local13 = _local13.slice(0, -1);
return((((_local13 == "") || (_local13 == "|")) ? null : (_local13)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(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(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(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 _local5 = 100 - Math.abs(amt);
var _local6 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local5, rb:_local6, ga:_local5, gb:_local6, ba:_local5, bb:_local6});
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 - ((128 / 100) * amt), ga:amt, gb:128 - ((128 / 100) * amt), ba:amt, bb:128 - ((128 / 100) * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * (255 / 100), ga:100 - (2 * amt), gb:amt * (255 / 100), ba:100 - (2 * amt), bb:amt * (255 / 100)});
case "tint" :
if (rgb == null) {
break;
}
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
var _local7 = Number(rgb);
return({ra:100 - amt, rb:(_local7 >> 16) * (amt / 100), ga:100 - amt, gb:((_local7 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local7 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local3 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local4 = {};
var _local5 = (_local3.ra == _local3.ga) && (_local3.ga == _local3.ba);
var _local6 = (_local3.rb == _local3.gb) && (_local3.gb == _local3.bb);
var _local7 = ((_local5 == true) ? (100 - _local3.ra) : 0);
if (_local7 != 0) {
var _local8 = 100 / _local7;
_local4.tint = (((_local3.rb * _local8) << 16) | ((_local3.gb * _local8) << 8)) | (_local3.bb * _local8);
_local4.tintPercent = _local7;
var _local9 = _local4.tint.toString(16);
var _local10 = 6 - _local9.length;
while ((_local10--) > 0) {
_local9 = "0" + _local9;
}
_local4.tintString = "0x" + _local9.toUpperCase();
}
if ((_local5 == true) && (_local6 == true)) {
if (_local3.ra < 0) {
_local4.invertColor = _local3.rb * (100 / 255);
} else if ((_local3.ra == 100) && (_local3.rb != 0)) {
_local4.brightOffset = _local3.rb * (100 / 255);
}
if (_local3.ra != 100) {
if ((_local3.rb == 0) || ((_local3.rb != 0) && (((255 * ((100 - _local3.ra) / 100)) - _local3.rb) <= 1))) {
_local4.brightness = ((_local3.rb != 0) ? (100 - _local3.ra) : (_local3.ra - 100));
}
if (((128 - ((128 / 100) * _local3.ra)) - _local3.rb) <= 1) {
_local4.contrast = _local3.ra;
}
}
}
return(_local4);
}
static function initializeTargets() {
for (var i in arguments) {
var _local2 = arguments[i];
if ((_local2 == MovieClip.prototype) || ((_local2 == Button.prototype) || ((_local2 == TextField.prototype) || (_local2 == Object.prototype)))) {
if (_local2.oldAddListener == undefined) {
if (_local2 == TextField.prototype) {
_local2.oldAddListener = _local2.addListener;
_global.ASSetPropFlags(_local2, "oldAddListener", 7, 1);
}
_local2.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 (_local2 == MovieClip.prototype) {
_global.ASSetPropFlags(_local2, "addListener", 7, 1);
}
}
} else if (_local2.__zigoID__ == undefined) {
_local2.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local2, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local2._listeners == null) || (_local2.addListener == null)) {
AsBroadcaster.initialize(_local2);
}
}
}
}
static function deinitializeTargets() {
for (var i in arguments) {
var _local2 = arguments[i];
if (_local2.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local2, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local2.__zigoID__;
delete _local2._listeners;
delete _local2.broadcastMessage;
delete _local2.addListener;
delete _local2.removeListener;
}
if (_local2.oldAddListener != undefined) {
_global.ASSetPropFlags(_local2, "oldAddListener", 0, 2);
_local2.addListener = _local2.oldAddListener;
delete _local2.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;
_global.clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
_global.clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = _global.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 _local4 = {skipLevel:SKIP_LEVEL, cycles:1};
if ((callback.skipLevel != undefined) && ((typeof(callback.skipLevel) == "number") && (callback.skipLevel != SKIP_LEVEL))) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
_local4.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
_local4.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
_local4.cycles = 0;
}
}
if (callback.extra1 != undefined) {
_local4.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
_local4.extra2 = callback.extra2;
}
if (callback == undefined) {
return(_local4);
}
var _local5 = [];
if (typeof(callback) == "string") {
var _local6 = String(callback);
} else if (typeof(callback.easyfunc) == "string") {
var _local6 = callback.easyfunc;
}
if ((_local6 != undefined) && ((_local6.indexOf("(") > -1) && (_local6.indexOf(")") > -1))) {
if (extensions.shortcuts != undefined) {
callback = extensions.shortcuts.parseStringTypeCallback(_local6);
} 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 _local7 = i.toLowerCase().indexOf("func");
if (_local7 > -1) {
var _local8 = i.slice(0, _local7);
var _local9 = callback[i];
var _local10 = callback[_local8 + "args"];
var _local11 = callback[_local8 + "scope"];
if ((typeof(_local9) == "string") && (_local11[_local9] == undefined)) {
for (var j in targets) {
var _local12 = targets[j];
if (typeof(_local12[_local9]) == "function") {
_local11 = _local12;
break;
}
if (typeof(_local12._parent[_local9]) == "function") {
_local11 = _local12._parent;
break;
}
}
if ((_local11 == undefined) && (_level0[_local9] != undefined)) {
_local11 = _level0;
}
if ((_local11 == undefined) && (_global[_local9] != undefined)) {
_local11 = _global;
}
}
if (typeof(_local9) != "function") {
if (typeof(_local11[String(_local9)]) == "function") {
_local9 = _local11[String(_local9)];
} else {
_local9 = eval (String(_local9));
}
}
if (_local9 == undefined) {
_local5.push(String((((((i + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + _local8) + "scope:") + _local11));
} else {
if ((_local10 != undefined) && (!(_local10 instanceof Array))) {
_local10 = [_local10];
}
if (_local8 == "") {
_local8 = "end";
}
_local4[_local8] = {s:_local11, f:_local9, a:_local10, id:cbTicker++};
if (_local8 == "start") {
_local4.start.fired = false;
}
}
} else if (com.mosesSupposes.fuse.FuseKitCommon._cbprops().indexOf(("|" + i) + "|") == -1) {
com.mosesSupposes.fuse.FuseKitCommon.error("009", i);
}
}
if ((_local5.length > 0) && (OUTPUT_LEVEL > 0)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("010", _local5.length, _local5.toString());
}
}
return(_local4);
}
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 20540 MovieClip [__Packages.patapon.Navigator] Frame 0
class patapon.Navigator
{
static var instance;
var stage, currentSection;
function Navigator () {
}
function init(stage) {
this.stage = stage;
}
static function getInstance() {
if (instance == undefined) {
instance = new patapon.Navigator();
}
return(instance);
}
function goto(section, playSound, gameType) {
currentSection.destroy();
stage.gotoAndStop(section);
currentSection = patapon.SectionFactory.getObjectByName(section, stage, playSound, gameType);
}
}
Symbol 20541 MovieClip [__Packages.com.bourre.structures.Point] Frame 0
class com.bourre.structures.Point
{
var x, y;
function Point (nX, nY) {
init(nX, nY);
}
function init(nX, nY) {
x = nX;
y = nY;
}
function reset(p) {
init(p.x, p.y);
}
function equals(p) {
return((x == p.x) && (y == p.y));
}
function compare(nX, nY) {
return((x == nX) && (y == nY));
}
function clone() {
return(new com.bourre.structures.Point(x, y));
}
function minus(p) {
init(x - p.x, y - p.y);
}
function plus(p) {
init(x + p.x, y + p.y);
}
function neg() {
init(-x, -y);
}
function abs() {
init(Math.abs(x), Math.abs(y));
}
function getLength() {
return(Math.sqrt((x * x) + (y * y)));
}
function normalize() {
var _local2 = getLength();
if (_local2 / 0) {
x = x / _local2;
y = y / _local2;
} else {
com.bourre.log.PixlibDebug.WARN(this + ".normalize() was called on a zero-length vector!");
}
}
function getDirection() {
var _local2 = clone();
_local2.normalize();
return(_local2);
}
function getDotProduct(p) {
return((x * p.x) + (y * p.y));
}
function getCrossProduct(p) {
return((x * p.y) - (y * p.x));
}
function scalarMultiply(n) {
x = x * n;
y = y * n;
}
function project(p1) {
var _local3 = p1.getDotProduct(p1);
if (_local3 == 0) {
com.bourre.log.PixlibDebug.WARN(this + ".project() was given a zero-length projection vector!");
return(clone());
}
var _local4 = p1.clone();
_local4.scalarMultiply(getDotProduct(p1) / _local3);
return(_local4);
}
function getProjectionLength(p1) {
var _local3 = p1.getDotProduct(p1);
if (_local3 == 0) {
com.bourre.log.PixlibDebug.WARN(this + ".getProjectionLength() was given a zero-length projection vector!");
return(0);
}
var _local4 = p1.clone();
return(Math.abs(getDotProduct(p1) / _local3));
}
function toString() {
return(((((com.bourre.log.PixlibStringifier.stringify(this) + " : [") + String(x)) + ", ") + String(y)) + "]");
}
static function minusNew(p1, p2) {
return(new com.bourre.structures.Point(p1.x - p2.x, p1.y - p2.y));
}
static function plusNew(p1, p2) {
return(new com.bourre.structures.Point(p1.x + p2.x, p1.y + p2.y));
}
static function negNew(p) {
return(new com.bourre.structures.Point(-p.x, -p.y));
}
static function absNew(p) {
return(new com.bourre.structures.Point(Math.abs(p.x), Math.abs(p.y)));
}
static function getDistance(p1, p2) {
return(minusNew(p1, p2).getLength());
}
}
Symbol 20542 MovieClip [__Packages.patapon.game.rythm.TrumpetSequence] Frame 0
class patapon.game.rythm.TrumpetSequence extends com.bourre.events.EventBroadcaster
{
var stage, length, BPM, timers, sequenceBar, isAlive, q, userSequence, notes, beatSequence, broadcastEvent;
function TrumpetSequence (stage, length, BPM, timers, sequenceBar) {
super();
this.stage = stage;
this.length = length;
this.BPM = BPM;
this.timers = timers;
this.sequenceBar = sequenceBar;
init();
}
function init() {
com.skivecreative.log.Logging.trace(sequenceBar._name);
isAlive = true;
createRandomNotes();
createQueue();
q.begin();
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onStartTrumpet));
com.skivecreative.queues.DelayedAction.timeDelay(this, createUserSequence, 1.45);
count++;
}
function enterKeyCode(key) {
userSequence.enterKeyCode(key);
}
function destroy() {
isAlive = false;
var _local2 = 0;
for ( ; _local2 < notes.length ; _local2++) {
patapon.game.rythm.TrumpetNote(notes[_local2]).destroy();
}
notes = [];
delete notes;
userSequence.removeEventListener(patapon.events.EventList.onPastSequence, this, onPastSequence);
userSequence.removeEventListener(patapon.events.EventList.onSuccessfulSequence, this, onSuccessfulSequence);
q.clearQueue();
userSequence.destroy();
}
static function getRandByRange(min, max) {
var _local4 = Math.round((Math.random() * ((max - min) + 1)) + (min - 0.5));
return(_local4);
}
function createUserSequence() {
if (isAlive) {
var _local2 = 0;
for ( ; _local2 < notes.length ; _local2++) {
patapon.game.rythm.TrumpetNote(notes[_local2]).destroy();
}
userSequence = new patapon.game.rythm.Sequence(stage, 4, 451, BPM, beatSequence, false);
userSequence.addEventListener(patapon.events.EventList.onPastSequence, this, onPastSequence);
userSequence.addEventListener(patapon.events.EventList.onSuccessfulSequence, this, onSuccessfulSequence);
userSequence.addEventListener(patapon.events.EventList.onSequenceDestroyed, this, onSequenceDestroyed);
}
}
function onSequenceDestroyed() {
broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onTrumpetSequenceDestroyed));
}
function onPastSequence(e) {
userSequence.removeListener(this);
var _local3 = e.getIsCompleted();
if (!_local3) {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onTrumpetSequenceMissed));
}
}
function onSuccessfulSequence() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onTrumpetSequenceCompleted));
}
function createQueue() {
q = new com.skivecreative.queues.ActionQueue();
q.addAction(patapon.game.rythm.TrumpetNote(notes[0]), patapon.game.rythm.TrumpetNote(notes[0]).init, 0);
var _local2 = 1;
for ( ; _local2 < notes.length ; _local2++) {
q.addDelay(timers[_local2 - 1]);
q.addAction(patapon.game.rythm.TrumpetNote(notes[_local2]), patapon.game.rythm.TrumpetNote(notes[_local2]).init, _local2);
}
q.addAction(this, broadcastEndSequence);
}
function broadcastEndSequence() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onStopTrumpet));
}
function createRandomNotes() {
notes = new Array();
beatSequence = new Array();
var _local2 = 0;
for ( ; _local2 < length ; _local2++) {
var _local3 = notesAvailable[getRandByRange(0, notesAvailable.length - 1)];
notes.push(createBeat(_local3));
beatSequence.push(_local3);
}
}
function createBeat(type) {
switch (type) {
case "CHAKA" :
return(new patapon.game.rythm.TrumpetNote(sequenceBar, Key.UP, "CHAKA", "up"));
case "DON" :
return(new patapon.game.rythm.TrumpetNote(sequenceBar, Key.DOWN, "DON", "down"));
case "PATA" :
return(new patapon.game.rythm.TrumpetNote(sequenceBar, Key.LEFT, "PATA", "left"));
case "PON" :
return(new patapon.game.rythm.TrumpetNote(sequenceBar, Key.RIGHT, "PON", "right"));
}
}
static var notesAvailable = new Array("DON", "PON", "CHAKA", "PATA");
static var count = 0;
}
Symbol 20543 MovieClip [__Packages.patapon.events.SequenceEvent] Frame 0
class patapon.events.SequenceEvent extends com.bourre.events.BasicEvent
{
var isCompleted, isSecondary;
function SequenceEvent (e, isCompleted, isSecondary) {
super(e);
this.isCompleted = isCompleted;
this.isSecondary = isSecondary;
}
function getIsCompleted() {
return(isCompleted);
}
function getIsSecondary() {
return(isSecondary);
}
}
Symbol 20544 MovieClip [__Packages.com.skivecreative.text.TextTools] Frame 0
class com.skivecreative.text.TextTools
{
function TextTools () {
}
static function capFirstLetter(s) {
var _local3 = new String();
_local3 = s.charAt(0).toUpperCase() + s.substring(1, s.length).toLowerCase();
return(_local3);
}
static function capFirstLetters(s) {
var _local3 = s.split(" ");
var _local4 = 0;
for ( ; _local4 < _local3.length ; _local4++) {
_local3[_local4] = capFirstLetter(_local3[_local4]);
}
return(_local3.join(" "));
}
static function count(text, s, isCaseSensitive) {
if (!isCaseSensitive) {
text = text.toLowerCase();
s = s.toLowerCase();
}
var _local5 = text.split(s);
return(_local5.length - 1);
}
static function getAlphaFromNumber(index, isSmall) {
var _local4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var _local5 = _local4.charAt(index);
if (isSmall) {
_local5 = _local5.toLowerCase();
}
return(_local5);
}
static function getTotalLines(tf) {
var _local3 = tf.scroll;
tf.scroll = tf.maxscroll;
var _local4 = tf.bottomScroll;
tf.scroll = _local3;
return(_local4);
}
static function getVisibleLines(tf) {
return((tf.bottomScroll - tf.scroll) + 1);
}
static function isAlpha(s) {
var _local3 = 0;
for ( ; _local3 < s.length ; _local3++) {
var _local4 = s.charAt(_local3);
if (((_local4 < "a") || (_local4 > "z")) && (((_local4 < "A") || (_local4 > "Z")) && (_local4 != " "))) {
return(false);
}
}
return(true);
}
static function replace(text, s, r, caseSensitive) {
var _local6 = new String(text);
var _local7 = new String(text);
if (!caseSensitive) {
_local7 = _local7.toLowerCase();
s = s.toLowerCase();
}
var _local8 = 0;
do {
_local8 = _local7.indexOf(s, _local8);
if (_local8 > -1) {
_local7 = (_local7.substring(0, _local8) + r) + _local7.substring(_local8 + s.length, _local7.length);
_local6 = (_local6.substring(0, _local8) + r) + _local6.substring(_local8 + s.length, _local6.length);
_local8 = _local8 + r.length;
}
} while (_local8 > -1);
return(_local6);
}
static function stripSpaces(text) {
while ((text.length > 0) && (text.charAt(0) == " ")) {
text = text.substring(1, text.length);
}
while ((text.length > 0) && (text.charAt(text.length - 1) == " ")) {
text = text.substring(0, text.length - 1);
}
return(text);
}
}
Symbol 20545 MovieClip [__Packages.patapon.tracking.TrackingManager] Frame 0
class patapon.tracking.TrackingManager
{
static var instance;
function TrackingManager () {
}
static function getInstance() {
if (instance == undefined) {
instance = new patapon.tracking.TrackingManager();
}
return(instance);
}
function trackEvent(URI) {
trackWebtrendsEvent(URI);
}
function skiveTracking(name, value) {
if (name == "locale") {
var _local4 = new LoadVars();
_local4.load(("http://patapon.skivehosting.com/flashtracking.asp?locale=" + value) + "&gameStart=1");
com.skivecreative.log.Logging.trace(("INFO: Skive Tracking to: http//patapon.skivehosting.com/flashtracking.asp?locale=" + value) + "&gameStart=1");
} else {
var _local5 = patapon.LocalisationManager.getInstance().getLocale();
var _local6 = new LoadVars();
_local6.load((((("http://patapon.skivehosting.com/flashtracking.asp?locale=" + _local5) + "&") + name) + "=") + value);
com.skivecreative.log.Logging.trace((((("INFO: Skive Tracking to: http//patapon.skivehosting.com/flashtracking.asp?locale=" + _local5) + "&") + name) + "=") + value);
}
}
function trackWebtrendsEvent(URI) {
com.skivecreative.log.Logging.trace("INFO: WebTrends Multitrack: /flashtrack/patapon/" + URI);
getURL (("javascript:dcsMultiTrack( 'DCS.dcsuri', '/flashtrack/patapon/" + URI) + "' )", "_self");
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
}
}
Symbol 20546 MovieClip [__Packages.patapon.game.Level] Frame 0
class patapon.game.Level extends com.bourre.events.EventBroadcaster implements patapon.game.ILevel
{
var stage, levelID, hasBirds, timeLimit, primarySequence, secondarySequence, primaryBehaviour, secondaryBehaviour, sequenceList, endSequence, isPractice, miniSequence1, miniSequence2, correctSequences, marchCount, sequenceCount, marchesToTarget, isAttacking, advanceFinished, advances, killBirds, advanceEqualised, missedAdvances, intro, sequenceManager, hud, closePracticeButton, patapons, scene, initScene, missionFailed, localisedNodes, blackness, birds, castle, removeAllListeners;
function Level (stage, levelID, hasBirds, timeLimit, primarySequence, secondarySequence, primaryBehaviour, secondaryBehaviour, sequenceList, endSequence, isPractice, miniSequence1, miniSequence2) {
super();
this.stage = stage;
this.levelID = levelID;
this.hasBirds = hasBirds;
this.timeLimit = timeLimit;
this.primarySequence = primarySequence;
this.secondarySequence = secondarySequence;
this.primaryBehaviour = primaryBehaviour;
this.secondaryBehaviour = secondaryBehaviour;
this.sequenceList = sequenceList;
this.endSequence = endSequence;
this.isPractice = isPractice;
this.miniSequence1 = miniSequence1;
this.miniSequence2 = miniSequence2;
}
function init() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("START LEVEL").start();
patapon.LocalisationManager.getInstance().setLevelType("normal");
correctSequences = 0;
marchCount = 0;
sequenceCount = -2;
marchesToTarget = 7;
isAttacking = false;
advanceFinished = false;
advances = 0;
killBirds = false;
advanceEqualised = false;
missedAdvances = 0;
addScenery();
showIntro();
count++;
}
function showIntro() {
intro = stage.attachMovie("IOScreen", "lvlBlackness" + levelID, stage.getNextHighestDepth(), {_alpha:100});
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 90, 0.5, "easeInQuad", 0.2);
intro._x = 0;
intro._y = 0;
intro.shaman_mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 100, 1, "easeInQuad", 0.5);
if (isPractice) {
var _local2 = new patapon.game.ui.PracticeBox(stage, 200, 145, 250, 480, com.bourre.commands.Delegate.create(this, messageBoxClosed));
} else {
var _local3 = new patapon.game.ui.IntroBox(stage, 200, 45, 250, 480, levelID, miniSequence1, miniSequence2, com.bourre.commands.Delegate.create(this, messageBoxClosed));
}
}
function messageBoxClosed() {
patapon.App.fadeOutSound("START LEVEL", 1);
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 0, 0.4, "easeInQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 0, 1, "easeInQuad", 0.3, {scope:this, func:"getReady"});
}
function getReady() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("BGM 1 SILENT").start(0, 999);
com.skivecreative.sounds.SoundManager.getInstance().getSound("BGM 1 SILENT").setVolume(0);
addPatapons();
intro.removeMovieClip();
sequenceManager = new patapon.game.SequenceManager(stage, primarySequence, secondarySequence);
if (!isPractice) {
hud = new patapon.game.HUD(stage, timeLimit);
}
com.skivecreative.queues.DelayedAction.timeDelay(this, begin, 1);
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function begin() {
addBirds();
initSequenceManager();
registerForEvents();
if (!isPractice) {
hud.getTimer().addEventListener(patapon.events.EventList.onTimeUp, this, onTimeUp);
hud.startTimer();
}
com.skivecreative.queues.DelayedAction.frameDelay(this, initBehaviours, 1);
com.skivecreative.sounds.SoundManager.getInstance().getSound("BEGIN LEVEL").start();
if (isPractice) {
closePracticeButton = stage.attachMovie("CLOSE PRACTICE", "cp", stage.getNextHighestDepth());
closePracticeButton._x = 20;
closePracticeButton._y = 100;
var _local2 = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(closePracticeButton, _local2.gameOver);
closePracticeButton.onRelease = com.bourre.commands.Delegate.create(this, exitPracticeMode);
}
}
function getPrimaryBehaviour() {
return(primaryBehaviour);
}
function initBehaviours() {
primaryBehaviour.init(stage, patapons, scene, sequenceManager);
if (!isPractice) {
secondaryBehaviour.init(stage, patapons, scene, sequenceManager);
}
}
function registerForEvents() {
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onBeatHitSuccess, this, onBeatHitSuccess);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onEndPointReached, this, onEndPointReached);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onStartEndSequence, this, onStartEndSequence);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onCastleDestroyed, this, onCastleDestroyed);
}
function addScenery() {
var _local2 = ("LEVEL_" + levelID) + "_SCENE";
scene = stage.attachMovie(_local2, "levelScene", stage.getNextHighestDepth());
cacheThoseBitmaps();
initScene = scene.duplicateMovieClip("initScene" + levelID, stage.getNextHighestDepth());
initScene._visible = false;
}
function addPatapons() {
var _local2 = ("LEVEL_" + levelID) + "_CHARS";
patapons = stage.attachMovie(_local2, "pataponCharacters", stage.getNextHighestDepth(), {_y:410, _x:10});
var _local3 = patapons._x;
patapons._x = patapons._x - patapons._width;
patapons.gotoAndStop("walk");
com.mosesSupposes.fuse.ZigoEngine.doTween(patapons, "_x", _local3, 2, "linear", 0, {scope:this, func:pataponsReady});
}
function pataponsReady() {
patapons.gotoAndStop("still");
}
function addBirds() {
if (hasBirds) {
com.skivecreative.queues.DelayedAction.timeDelay(this, goBirdies, 3);
}
}
function initSequenceManager() {
sequenceManager.start(isPractice);
sequenceManager.addEventListener(patapon.events.EventList.onSequenceCompleted, this, onSequenceCompleted);
sequenceManager.addEventListener(patapon.events.EventList.onSequenceMissed, this, onSequenceMissed);
sequenceManager.addEventListener(patapon.events.EventList.onSecondarySequence, this, onSecondarySequence);
}
function cacheThoseBitmaps() {
for (var layer in scene) {
MovieClip(scene[layer]).cacheAsBitmap = true;
}
}
function onTimeUp() {
patapon.App.fadeOutSound("UPDATED MUSIC", 0.2);
com.skivecreative.sounds.SoundManager.getInstance().getSound("MISSION FAILED").start();
hud.endOfLevel();
sequenceManager.kill();
com.skivecreative.queues.DelayedAction.timeDelay(this, failedMission, 1);
killBirds = true;
}
function failedMission() {
var _local2 = patapon.LocalisationManager.getInstance().getLangCode();
if (_local2 == "en") {
missionFailed = stage.attachMovie("missionFailedBar", "mcBar", stage.getNextHighestDepth());
} else {
missionFailed = stage.attachMovie("missionFailed-NOT_EN", "mcBar", stage.getNextHighestDepth());
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(missionFailed.missionFailed_txt, localisedNodes.gameOver);
}
missionFailed._x = 0;
missionFailed._y = 452;
missionFailed._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_alpha", 100, 0.8, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_y", 165, 0.8, "easeOutBack", 0, {scope:this, func:"levelEnded"});
}
function levelEnded() {
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_alpha", 0, 0.8, "easeInQuad", 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_y", -65, 0.8, "easeInOutBack", 0.5, {scope:this, func:"showFailureScreen"});
intro = stage.attachMovie("IOScreen", "lvlBlacknessOUT" + levelID, stage.getNextHighestDepth(), {_alpha:0});
intro.shaman_mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 100, 0.8, "easeInQuad", 0.5);
}
function showFailureScreen() {
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 100, 1, "easeInQuad");
scene.removeMovieClip();
patapons.removeMovieClip();
initScene._visible = true;
var _local2 = new patapon.game.ui.FailureBox(stage, 200, 150, 100, 480, levelID, com.bourre.commands.Delegate.create(this, initRestart), true);
}
function initRestart() {
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 0, 0.4, "easeInQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 0, 1, "easeInQuad", 0.3, {scope:this, func:"restart"});
}
function restart() {
patapon.tracking.TrackingManager.getInstance().trackEvent("game/retry/level" + levelID);
patapon.tracking.TrackingManager.getInstance().skiveTracking("gameRetry", String(levelID));
destroy();
correctSequences = 0;
marchCount = 0;
sequenceCount = -2;
killBirds = false;
marchesToTarget = 7;
isAttacking = false;
advanceEqualised = false;
missedAdvances = 0;
advances = 0;
advanceFinished = false;
count++;
addScenery();
getReady();
}
function exitPracticeMode() {
killBirds = true;
sequenceManager.kill();
patapon.App.fadeOutSound("PRACTICE LOOP", 0.2);
fadeToBlack();
}
function fadeToBlack() {
blackness = stage.attachMovie("blackness", "pracBlackness", stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"backToTitle"});
}
function backToTitle() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onExitPracticeMode));
}
function goBirdies() {
if (!killBirds) {
var _local2 = patapon.game.rythm.Sequence.getRandByRange(100, 250);
birds = stage.attachMovie("birds", "birdies_mc", stage.getNextHighestDepth(), {_y:_local2});
com.skivecreative.utils.Timeline.playForwards(birds, 140, com.bourre.commands.Delegate.create(this, flyFinished));
}
hud.flushDepth();
}
function flyFinished() {
birds.removeMovieClip();
if (!killBirds) {
var _local2 = patapon.game.rythm.Sequence.getRandByRange(5, 9);
com.skivecreative.queues.DelayedAction.timeDelay(this, goBirdies, _local2);
}
}
function seqeuncePast() {
if (!isPractice) {
toggleNextSequence();
}
if (isAttacking) {
advances++;
if (advances == 2) {
advanceFinished = true;
}
}
sequenceCount++;
}
function toggleNextSequence() {
if (sequenceCount < 0) {
return(undefined);
}
var _local2 = sequenceList[sequenceCount];
if ((_local2 == 1) && (!isAttacking)) {
sequenceManager.switchToPrimarySequence();
} else if (_local2 == 2) {
sequenceManager.switchToSecondarySequence();
}
if ((marchCount == marchesToTarget) && ((!isAttacking) && (secondaryBehaviour instanceof patapon.game.behaviours.AttackBehaviour))) {
isAttacking = true;
sequenceManager.switchToSecondarySequence();
castle = scene.attachMovie("destroyCastle", "castleBlah" + count, scene.getNextHighestDepth(), {_y:180, _x:patapons._x + 1290});
secondaryBehaviour.setEndPost(castle);
patapon.game.ParallaxScroller.addScrollObject(castle);
}
}
function onBeatHitSuccess(e) {
primaryBehaviour.onBeatHitSuccess(e);
secondaryBehaviour.onBeatHitSuccess(e);
}
function onSequenceMissed() {
if (isPractice) {
primaryBehaviour.onSequenceMissed();
} else if (primaryBehaviour.overridesAllActions()) {
primaryBehaviour.onSequenceMissed();
} else if (secondaryBehaviour.overridesAllActions()) {
secondaryBehaviour.onSequenceMissed();
} else {
primaryBehaviour.onSequenceMissed();
secondaryBehaviour.onSequenceMissed();
}
if (isAttacking) {
missedAdvances++;
}
seqeuncePast();
}
function onSequenceCompleted(e) {
var _local3 = e.getBoolean();
correctSequences++;
seqeuncePast();
if ((missedAdvances > 0) && (_local3 && ((!advanceEqualised) && (!advanceFinished)))) {
com.skivecreative.log.Logging.trace("switching to march");
_local3 = false;
missedAdvances--;
}
if ((castle != undefined) && (Math.abs(castle._x - patapons._x) > 600)) {
_local3 = false;
}
if (isPractice) {
marchCount++;
primaryBehaviour.action();
} else if (!_local3) {
marchCount++;
if ((marchCount == 10) && (secondaryBehaviour instanceof patapon.game.behaviours.DefendBehaviour)) {
var _local4 = endSequence.init(stage, scene, patapons);
addEndPost(_local4);
}
primaryBehaviour.action();
secondaryBehaviour.nonAction();
} else {
if (!((secondaryBehaviour instanceof patapon.game.behaviours.AttackBehaviour) && (isAttacking))) {
primaryBehaviour.nonAction();
}
secondaryBehaviour.action();
advanceEqualised = true;
}
}
function addEndPost(q) {
var _local3 = scene.attachMovie("end post", "endPost", scene.getNextHighestDepth());
_local3._y = 345;
_local3._x = 850;
primaryBehaviour.setEndPost(_local3, q);
}
function onStartEndSequence() {
endSequence.start();
}
function onSecondarySequence() {
primaryBehaviour.onSecondarySequence();
secondaryBehaviour.onSecondarySequence();
if (secondaryBehaviour instanceof patapon.game.behaviours.DefendBehaviour) {
sequenceManager.switchToPrimarySequence();
}
}
function onEndPointReached() {
hud.endOfLevel();
patapon.App.fadeOutSound("UPDATED MUSIC", 0.2);
com.skivecreative.sounds.SoundManager.getInstance().getSound("GOAL REACHED").start();
}
function onCastleDestroyed() {
hud.endOfLevel();
killBirds = true;
patapon.App.fadeOutSound("UPDATED MUSIC", 0.2);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
com.bourre.events.EventBroadcaster.getInstance().removeEventListener(patapon.events.EventList.onBeatHitSuccess, this, onBeatHitSuccess);
hud.destroy();
primaryBehaviour.destroy();
secondaryBehaviour.destroy();
endSequence.destroy();
sequenceManager.destroy();
removeAllListeners();
closePracticeButton.removeMovieClip();
blackness.removeMovieClip();
intro.removeMovieClip();
missionFailed.removeMovieClip();
birds.removeMovieClip();
patapons.removeMovieClip();
scene.removeMovieClip();
initScene.removeMovieClip();
killBirds = true;
}
static var count = 0;
}
Symbol 20547 MovieClip [__Packages.patapon.game.GameEngine] Frame 0
class patapon.game.GameEngine extends com.bourre.events.EventBroadcaster
{
var stage, levels, levelIndex, currentLevel, EOL;
function GameEngine (stage) {
super();
this.stage = stage;
init();
}
function init() {
levels = new Array();
levelIndex = 0;
}
function initializeGame(gameType) {
patapon.tracking.TrackingManager.getInstance().trackEvent("game/" + gameType);
patapon.tracking.TrackingManager.getInstance().skiveTracking("gameType", gameType);
switch (gameType) {
case "practice" :
initializePracticeMode();
break;
case "timeAttack" :
initializeTimeAttack();
}
}
function initializePracticeMode() {
var _local2 = new patapon.game.Level(stage, 1, true, 75, new Array("PATA", "PATA", "PATA", "PON"), new Array("PATA", "PATA", "PATA", "PON"), new patapon.game.behaviours.MarchingBehaviour(), new patapon.game.behaviours.MarchingBehaviour(), new Array(1), new patapon.game.endSequences.TargetSequence(), true, "miniPataPon", "miniChakaChaka");
levels.push(_local2);
currentLevel = levels[levelIndex];
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onExitPracticeMode, this, onExitPracticeMode);
currentLevel.init();
levelIndex++;
}
function onExitPracticeMode() {
currentLevel.destroy();
patapon.Navigator.getInstance().goto("title", true);
}
function initializeTimeAttack() {
var _local2 = new patapon.game.Level(stage, 1, true, 75, new Array("PATA", "PATA", "PATA", "PON"), new Array("CHAKA", "CHAKA", "PATA", "PON"), new patapon.game.behaviours.MarchingBehaviour(), new patapon.game.behaviours.DefendBehaviour(), new Array(2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1), new patapon.game.endSequences.TargetSequence(), false, "miniPataPon", "miniChakaChaka");
var _local3 = new patapon.game.Level(stage, 2, true, 75, new Array("PATA", "PATA", "PATA", "PON"), new Array("PON", "PON", "PATA", "PON"), new patapon.game.behaviours.MarchingBehaviour(), new patapon.game.behaviours.AttackBehaviour(), new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), new patapon.game.endSequences.TargetSequence(), false, "miniPataPon", "miniPonPata");
var _local4 = new patapon.game.TrumpetLevel(stage, 3, 65, new patapon.game.behaviours.TrumpetBehaviour());
levels.push(_local2, _local3, _local4);
startGame();
}
function startGame() {
currentLevel = levels[levelIndex];
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onLevelComplete, this, onLevelComplete);
currentLevel.init();
levelIndex++;
}
function onLevelComplete() {
com.bourre.events.EventBroadcaster.getInstance().removeEventListener(patapon.events.EventList.onLevelComplete, this, onLevelComplete);
currentLevel.destroy();
EOL = new patapon.game.EOLscreen(stage, levelIndex, com.bourre.commands.Delegate.create(this, nextLevel));
}
function nextLevel() {
EOL.destroy();
currentLevel = levels[levelIndex];
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onLevelComplete, this, onLevelComplete);
currentLevel.init();
levelIndex++;
}
function restartLevel() {
com.bourre.events.EventBroadcaster.getInstance().removeEventListener(patapon.events.EventList.onLevelComplete, this, onLevelComplete);
currentLevel.destroy();
currentLevel = levels[levelIndex - 1];
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onLevelComplete, this, onLevelComplete);
currentLevel.init();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
var _local2 = 0;
for ( ; _local2 < levels.length ; _local2++) {
patapon.game.ILevel(levels[_local2]).destroy();
EOL.destroy();
}
}
}
Symbol 20548 MovieClip [__Packages.com.bourre.events.BooleanEvent] Frame 0
class com.bourre.events.BooleanEvent extends com.bourre.events.BasicEvent
{
var _b, getType;
function BooleanEvent (e, b) {
super(e);
_b = b;
}
function getBoolean() {
return(_b);
}
function setBoolean(b) {
_b = b;
}
function get isTrue() {
return(_b);
}
function toString() {
return((((com.bourre.log.PixlibStringifier.stringify(this) + " : ") + getType()) + ", ") + getBoolean());
}
}
Symbol 20549 MovieClip [__Packages.patapon.SectionFactory] Frame 0
class patapon.SectionFactory
{
function SectionFactory () {
}
static function getObjectByName(section, stage, playSound, gameType) {
switch (section) {
case "localiser" :
return(new patapon.Localiser(stage));
case "title" :
return(new patapon.Title(stage, playSound));
case "instructions" :
return(new patapon.Instructions(stage));
case "downloads" :
return(new patapon.Downloads(stage));
case "game" :
return(new patapon.Game(stage, gameType));
case "endGameScreen" :
return(new patapon.EndGameScreen(stage));
}
}
}
Symbol 20550 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 20551 MovieClip [__Packages.com.skivecreative.sounds.SoundManager] Frame 0
class com.skivecreative.sounds.SoundManager extends com.bourre.medias.sound.SoundFactory
{
static var instance;
var _bIsInitialized, _init, _nDepth, _oSounds, _oContainer, _fireEvent;
function SoundManager () {
super();
}
static function getInstance() {
if (instance == undefined) {
instance = new com.skivecreative.sounds.SoundManager();
}
return(instance);
}
function addSound(linkageID, referenceID) {
if (referenceID == undefined) {
if (!_bIsInitialized) {
_init();
}
_oSounds[linkageID] = _makeSound(linkageID, _nDepth);
_nDepth++;
return(linkageID);
}
if (!_bIsInitialized) {
_init();
}
_oSounds[referenceID] = _makeSound(linkageID, _nDepth);
_nDepth++;
return(linkageID);
}
function _makeSound(sLinkageID, nSoundID, sURL) {
var _local5 = _oContainer.createEmptyMovieClip(("sound" + sLinkageID) + String(nSoundID), nSoundID);
var _local6 = new Sound(_local5);
if (sURL) {
var _local7 = new com.bourre.events.DynBasicEvent(com.bourre.medias.sound.SoundFactory.onSoundLoadEVENT);
_local7.soundID = sLinkageID;
_local7.soundURL = sURL;
_local6.onLoad = com.bourre.commands.Delegate.create(this, _fireEvent, _local7);
_local6.loadSound(sURL, false);
} else {
_local6.attachSound(sLinkageID);
}
return(_local6);
}
}
Symbol 20552 MovieClip [__Packages.patapon.game.rythm.Beat] Frame 0
class patapon.game.rythm.Beat
{
var stage, key, drumType, direction, isDead, mc, tintColor;
function Beat (stage, key, drumType, direction) {
this.stage = stage;
this.key = key;
this.drumType = drumType;
this.direction = direction;
}
function display(x, y) {
isDead = false;
var _local4 = "beat" + beatCount;
mc = stage.attachMovie(drumType + "_DRUM", _local4, stage.getNextHighestDepth());
mc.arrow_mc.gotoAndStop(direction);
mc.cacheAsBitmap = true;
mc._x = x;
mc._y = y;
tintColor = new Color(mc);
beatCount++;
}
function correct() {
if (!isDead) {
mc.filters = [glow];
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.StringEvent(patapon.events.EventList.onBeatHitSuccess, drumType));
}
}
function incorrect() {
mc.filters = [];
tintColor.setTransform(blackTint);
isDead = true;
}
function getMC() {
return(mc);
}
function getKey() {
return(key);
}
function destroy() {
mc.removeMovieClip();
}
static var WIDTH = 50;
static var beatCount = 0;
static var glow = new flash.filters.GlowFilter(16777215, 100, 18, 18, 1.6, 3, false, false);
static var blackTint = {ra:50, rb:0, ga:50, gb:0, ba:50, bb:0, aa:100, ab:100};
}
Symbol 20553 MovieClip [__Packages.patapon.events.SequenceDestroyedEvent] Frame 0
class patapon.events.SequenceDestroyedEvent extends com.bourre.events.BasicEvent
{
var sequence;
function SequenceDestroyedEvent (e, sequence) {
super(e);
this.sequence = sequence;
}
function getSequence() {
return(sequence);
}
}
Symbol 20554 MovieClip [__Packages.patapon.game.rythm.BeatMachine] Frame 0
class patapon.game.rythm.BeatMachine extends com.bourre.events.EventBroadcaster
{
var stage, isPractice, count, normalise, intervals, msPerBeat, broadcastEvent;
function BeatMachine (stage, isPractice) {
super();
this.stage = stage;
this.isPractice = isPractice;
init();
}
function init() {
count = 0;
normalise = 0;
intervals = new Array();
getIntervalByBPM();
}
function startBeat(numBeats) {
var _local3 = 0;
for ( ; _local3 < numBeats ; _local3++) {
intervals[_local3] = _global.setInterval(com.bourre.commands.Delegate.create(this, beat, _local3), _local3 * msPerBeat);
}
}
function start() {
startBeat(180);
com.skivecreative.queues.DelayedAction.timeDelay(this, startBGM, 0.95);
}
function getBPM() {
return(BPM);
}
function addVisualBeat() {
}
function getIntervalByBPM() {
var _local2 = BPM / 60;
msPerBeat = Math.round(1000 / _local2);
}
function startBGM() {
if (isPractice) {
com.skivecreative.queues.DelayedAction.timeDelay(this, startPracticeLoop, 2);
} else if (patapon.LocalisationManager.getInstance().getLevelType() == "trumpet") {
com.skivecreative.sounds.SoundManager.getInstance().getSound("BGM 1 SONG").start();
com.skivecreative.sounds.SoundManager.getInstance().getSound("BGM 1 SILENT").stop();
} else {
com.skivecreative.sounds.SoundManager.getInstance().getSound("UPDATED MUSIC").start();
com.skivecreative.sounds.SoundManager.getInstance().getSound("BGM 1 SILENT").stop();
}
}
function startPracticeLoop() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("PRACTICE LOOP").start(0, 9999);
}
function beat(intIndex) {
_global.clearInterval(intervals[intIndex]);
count++;
if (count >= 12) {
normalise++;
if ((normalise % 8) == 0) {
broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onNormaliseBeat));
}
}
}
function clearBeats() {
var _local2 = 0;
for ( ; _local2 < intervals.length ; _local2++) {
_global.clearInterval(intervals[_local2]);
}
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
clearBeats();
}
static var BPM = 120;
}
Symbol 20555 MovieClip [__Packages.com.skivecreative.effects.FlagRipple] Frame 0
class com.skivecreative.effects.FlagRipple implements com.bourre.transitions.IFrameListener
{
var target, maxWidth, maxHeight, speed, channel, baseX, baseY, octs, seed, stitch, fractal, gray, flapX, flapY, mode, offset, ripple, displaceFilter, displaceBitmap, shift, noiseBitmap, onEnterFrameHandler, clampBox, displace, ramp, perlin;
function FlagRipple (target, maxWidth, maxHeight) {
this.target = target;
this.maxWidth = maxWidth;
this.maxHeight = maxHeight;
speed = 3;
channel = 1;
baseX = 80;
baseY = 0;
octs = 1;
seed = 20;
stitch = true;
fractal = true;
gray = false;
flapX = 0;
flapY = 20;
mode = "clamp";
offset = new flash.geom.Point(0, 0);
init();
}
function init() {
ripple = target.ripple_mc;
drawDisplacementMap();
setClampBox();
displaceFilter = new flash.filters.DisplacementMapFilter(displaceBitmap, offset, channel, channel, flapX, flapY, mode);
shift = new flash.geom.Matrix();
noiseBitmap = new flash.display.BitmapData(500, 1);
noiseBitmap.perlinNoise(baseX, baseY, octs, seed, stitch, fractal, channel, gray);
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, update);
}
function onEnterFrame() {
onEnterFrameHandler();
}
function flush() {
ripple.removeMovieClip();
ripple = target.ripple_mc;
ripple.swapDepths(target.getNextHighestDepth());
setClampBox();
}
function setClampBox() {
clampBox = ripple.createEmptyMovieClip("clampBox", ripple.getNextHighestDepth());
clampBox._x = -(maxWidth / 2);
clampBox._y = -(maxHeight / 2);
clampBox.moveTo(0, 0);
clampBox.lineStyle(1, 16711680, 0);
clampBox.lineTo(0, maxHeight);
clampBox.lineTo(maxWidth, maxHeight);
}
function drawDisplacementMap() {
displace = target.createEmptyMovieClip("displace_mc", target.getNextHighestDepth());
ramp = displace.createEmptyMovieClip("ramp", displace.getNextHighestDepth());
displace._x = -60;
displace._y = -25;
var _local2 = "linear";
var _local3 = [8388608, 8388608];
var _local4 = [100, 0];
var _local5 = [222, 33];
var _local6 = {matrixType:"box", x:0, y:0, w:180, h:50, r:(0 / 180) * Math.PI};
ramp.lineStyle(1, 0, 0);
ramp.beginGradientFill(_local2, _local3, _local4, _local5, _local6);
ramp.moveTo(0, 0);
ramp.lineTo(180, 0);
ramp.lineTo(180, 50);
ramp.lineTo(0, 50);
ramp.lineTo(0, 0);
ramp.endFill();
perlin = displace.createEmptyMovieClip("perlin", 1);
displaceBitmap = new flash.display.BitmapData(ramp._width, ramp._height);
displace._visible = false;
}
function update() {
shift.translate(speed, 0);
perlin.clear();
perlin.beginBitmapFill(noiseBitmap, shift);
perlin.moveTo(0, 0);
perlin.lineTo(ramp._width, 0);
perlin.lineTo(ramp._width, ramp._height);
perlin.lineTo(0, ramp._height);
perlin.lineTo(0, 0);
perlin.endFill();
displaceBitmap.draw(displace);
ripple.filters = [displaceFilter];
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
}
}
Symbol 20556 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 20557 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 20558 MovieClip [__Packages.com.skivecreative.queues.ActionQueue] Frame 0
class com.skivecreative.queues.ActionQueue implements com.bourre.transitions.IFrameListener
{
var _queue, frameCounter, onEnterFrameAction;
function ActionQueue () {
_queue = new Array();
}
function addAction(scope, func) {
_queue.push({scope:scope, func:func, params:arguments.splice(2, arguments.length - 2)});
}
function addPause() {
_queue.push(null);
}
function addActionWithPause() {
addAction.apply(this, arguments);
addPause();
}
function begin() {
nextAction();
}
function clearQueue() {
delete _queue;
_queue = new Array();
}
function nextAction() {
var _local2 = _queue.shift();
if ((_local2 == null) || (_local2 == undefined)) {
return(undefined);
}
_local2.func.apply(_local2.scope, _local2.params);
if ((_local2.func == delay) || (_local2.func == frameDelay)) {
return(undefined);
}
nextAction();
}
function addDelay(_delay) {
addAction(this, delay, _delay);
}
function delay(_delay) {
var doOnce;
doOnce = _global.setInterval(function (thisObj) {
thisObj.nextAction();
_global.clearInterval(doOnce);
}, _delay * 1000, this);
}
function addFrameDelay(_delay) {
if (_delay == 0) {
return(undefined);
}
addAction(this, frameDelay, _delay);
}
function frameDelay(_delay) {
frameCounter = _delay;
onEnterFrameAction = com.bourre.commands.Delegate.create(this, frameTick);
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
}
function frameTick() {
frameCounter--;
if (frameCounter == 0) {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
delete onEnterFrameAction;
nextAction();
}
}
function onEnterFrame() {
onEnterFrameAction();
}
function changeProperty(_obj, _prop, _value) {
addAction(this, changePropertyFunc, {_obj:_obj, _prop:_prop, _value:_value});
}
function changePropertyFunc(_params) {
_params._obj[_params._prop] = _params._value;
}
function playMc(mc, startFrame, endFrame) {
addActionWithPause(this, playMcFunc, mc, startFrame, endFrame, com.bourre.commands.Delegate.create(this, nextAction));
}
function playMcFunc(mc, startFrame, endFrame, callback) {
if (startFrame && (startFrame <= mc._totalframes)) {
mc.gotoAndStop(startFrame);
}
if ((endFrame < 1) || ((endFrame > mc._totalframes) || ((endFrame == null) || (endFrame == undefined)))) {
endFrame = mc._totalframes;
}
if (endFrame > mc._currentframe) {
com.skivecreative.utils.Timeline.playForwards(mc, endFrame, callback);
} else if (endFrame < mc._currentframe) {
com.skivecreative.utils.Timeline.playBackwards(mc, endFrame, callback);
} else {
callback();
}
}
function get length() {
return(_queue.length);
}
function toString() {
return("[ActionQueue]");
}
}
Symbol 20559 MovieClip [__Packages.patapon.game.behaviours.TrumpetBehaviour] Frame 0
class patapon.game.behaviours.TrumpetBehaviour implements com.bourre.transitions.IFrameListener, patapon.game.behaviours.ISequenceBehaviour
{
var stage, patapons, scene, sequenceManager, soundID, isWalking, sounds, isPlayingTrumpet, icons, LEVEL_1_CLIP_POINT, LEVEL_1_DEAD_ZONE, LEVEL_1_CLIPS, LEVEL_2_CLIP_POINT, LEVEL_2_DEAD_ZONE, LEVEL_2_CLIPS, LEVEL_3_CLIP_POINT, LEVEL_3_DEAD_ZONE, LEVEL_3_CLIPS, volumeInterval, currentSound, onEnterFrameHandler, sound_1, sound_2, sound_3, sound_4;
function TrumpetBehaviour () {
}
function init(stage, patapons, scene, sequenceManager) {
this.stage = stage;
this.patapons = patapons;
this.scene = scene;
this.sequenceManager = sequenceManager;
soundID = 0;
isWalking = false;
sounds = new Array();
isPlayingTrumpet = false;
icons = new Array();
LEVEL_1_CLIP_POINT = scene.LEVEL_1_CLIP_POINT;
LEVEL_1_DEAD_ZONE = scene.LEVEL_1_DEAD_ZONE;
LEVEL_1_CLIPS = scene.LEVEL_1_CLIPS;
LEVEL_2_CLIP_POINT = scene.LEVEL_2_CLIP_POINT;
LEVEL_2_DEAD_ZONE = scene.LEVEL_2_DEAD_ZONE;
LEVEL_2_CLIPS = scene.LEVEL_2_CLIPS;
LEVEL_3_CLIP_POINT = scene.LEVEL_3_CLIP_POINT;
LEVEL_3_DEAD_ZONE = scene.LEVEL_3_DEAD_ZONE;
LEVEL_3_CLIPS = scene.LEVEL_3_CLIPS;
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onStartTrumpet, this, startTrumpet);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onStopTrumpet, this, stopTrumpet);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onFirstTrumpetBeat, this, playSound);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onTrumpetSequenceRuined, this, stopSound);
setUpSounds();
}
function stopSound() {
volumeInterval = _global.setInterval(com.bourre.commands.Delegate.create(this, reduceVolume, currentSound), 25);
com.skivecreative.sounds.SoundManager.getInstance().getSound("TRUMPET DOWN").start();
}
function reduceVolume(s) {
var _local3 = s.getVolume();
var _local4 = _local3 - 12;
s.setVolume(_local4);
if (_local4 <= 5) {
s.setVolume(0);
_global.clearInterval(volumeInterval);
}
}
function action() {
startPataponsMarching();
}
function nonAction() {
}
function setEndPost(endPost, q) {
}
function onSequenceMissed() {
isWalking = false;
patapons.gotoAndStop("stand");
stopTrumpeterWalking();
}
function onSecondarySequence() {
}
function onEnterFrame() {
onEnterFrameHandler();
}
function onBeatHitSuccess(e) {
var _local3 = e.getString();
var _local4 = scene.attachMovie("DRUM ICONS", "icon" + iconCount, scene.getNextHighestDepth());
_local4.gotoAndStop(_local3);
var _local5 = {x:patapons.leader_mc._x};
patapons.localToGlobal(_local5);
_local4._x = _local5.x + 20;
_local4._y = 300;
icons.push(_local4);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_y", 120, 0.8, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_alpha", 10, 0.8, "easeInExpo", 0, {scope:this, func:"clearIcon", args:[_local4]});
iconCount++;
}
function overridesAllActions() {
return(null);
}
function destroy() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
_global.clearInterval(volumeInterval);
}
function setUpSounds() {
sound_1 = com.skivecreative.sounds.SoundManager.getInstance().getSound("TRUMPET 1");
sound_2 = com.skivecreative.sounds.SoundManager.getInstance().getSound("TRUMPET 2");
sound_3 = com.skivecreative.sounds.SoundManager.getInstance().getSound("TRUMPET 3");
sound_4 = com.skivecreative.sounds.SoundManager.getInstance().getSound("TRUMPET 4");
sounds.push(sound_1, sound_2, sound_3, sound_4);
}
function playSound() {
_global.clearInterval(volumeInterval);
currentSound.stop();
currentSound = sounds[soundID];
currentSound.setVolume(100);
currentSound.start();
com.skivecreative.log.Logging.trace(soundID);
soundID++;
if (soundID > 3) {
soundID = 0;
}
}
function startPataponsMarching() {
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, scroll);
patapons.gotoAndStop("walk");
isWalking = true;
startTrumpeterWalking();
com.skivecreative.queues.DelayedAction.timeDelay(this, stopPatapons, 2);
}
function stopPatapons() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
patapons.gotoAndStop("still");
isWalking = false;
stopTrumpeterWalking();
}
function scroll() {
patapon.game.ParallaxScroller.scroll(scene, LEVEL_3_CLIPS, LEVEL_3_CLIP_POINT, LEVEL_3_DEAD_ZONE, 1, 1);
patapon.game.ParallaxScroller.scroll(scene, LEVEL_2_CLIPS, LEVEL_2_CLIP_POINT, LEVEL_2_DEAD_ZONE, 2, 2);
patapon.game.ParallaxScroller.scroll(scene, LEVEL_1_CLIPS, LEVEL_1_CLIP_POINT, LEVEL_1_DEAD_ZONE, 3, 3);
scrollIcons();
}
function startTrumpeterWalking() {
if (isPlayingTrumpet) {
walkAndTrumpet();
} else {
walkNoTrumpet();
}
}
function stopTrumpeterWalking() {
if (isPlayingTrumpet) {
standAndTrumpet();
} else {
standNoTrumpet();
}
}
function startTrumpet() {
isPlayingTrumpet = true;
if (isWalking) {
walkAndTrumpet();
} else {
standAndTrumpet();
}
}
function stopTrumpet() {
isPlayingTrumpet = false;
if (isWalking) {
walkNoTrumpet();
} else {
standNoTrumpet();
}
}
function standAndTrumpet() {
patapons.leader_mc.gotoAndStop("standAndTrumpet");
}
function standNoTrumpet() {
patapons.leader_mc.gotoAndStop("standNoTrumpet");
}
function walkAndTrumpet() {
patapons.leader_mc.gotoAndPlay("walkAndTrumpet");
}
function walkNoTrumpet() {
patapons.leader_mc.gotoAndPlay("walkNoTrumpet");
}
function scrollIcons() {
var _local2 = 0;
for ( ; _local2 < icons.length ; _local2++) {
var _local3 = icons[_local2];
_local3._x = _local3._x - 3;
_local3.swapDepths(scene.getNextHighestDepth());
}
}
function clearIcon(icon) {
icon.removeMovieClip();
com.skivecreative.arrays.ArrayTools.remove(icons, icon, 1);
}
static var iconCount = 0;
}
Symbol 20560 MovieClip [__Packages.patapon.App] Frame 0
class patapon.App
{
var stage;
function App (stage) {
this.stage = stage;
init();
}
function init() {
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.PennerEasing);
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Shortcuts);
registerSounds();
patapon.Navigator.getInstance().init(stage);
if (DEBUG) {
patapon.LocalisationManager.getInstance().setLangCode("en");
patapon.LocalisationManager.getInstance().loadXML(com.bourre.commands.Delegate.create(patapon.Navigator.getInstance(), patapon.Navigator.getInstance().goto, "game", undefined, "timeAttack"));
} else {
patapon.Navigator.getInstance().goto("localiser");
}
}
static function main(stage) {
trace("IN APP");
Stage.align = "TL";
Stage.scaleMode = "noScale";
stage._focusRect = false;
var _local3 = new patapon.App(stage);
}
function registerSounds() {
if (!DEBUG) {
com.skivecreative.sounds.SoundManager.getInstance().addSound("FINAL CELEBRATION MUSIC");
com.skivecreative.sounds.SoundManager.getInstance().addSound("START CELEBRATION");
com.skivecreative.sounds.SoundManager.getInstance().addSound("MISSION COMPLETE");
com.skivecreative.sounds.SoundManager.getInstance().addSound("LEVEL COMPLETE");
com.skivecreative.sounds.SoundManager.getInstance().addSound("MISSION FAILED");
com.skivecreative.sounds.SoundManager.getInstance().addSound("COUNTRY SELECT");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BAD SEQUENCE 1");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BAD SEQUENCE 2");
com.skivecreative.sounds.SoundManager.getInstance().addSound("CASTLE ATTACK");
com.skivecreative.sounds.SoundManager.getInstance().addSound("GOAL REACHED");
com.skivecreative.sounds.SoundManager.getInstance().addSound("ARROW SOUNDS");
com.skivecreative.sounds.SoundManager.getInstance().addSound("START LEVEL");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BEGIN LEVEL");
com.skivecreative.sounds.SoundManager.getInstance().addSound("WIND SOUND");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TITLE LOOP");
com.skivecreative.sounds.SoundManager.getInstance().addSound("NIGHT TIME");
com.skivecreative.sounds.SoundManager.getInstance().addSound("HAPPY LOOP");
com.skivecreative.sounds.SoundManager.getInstance().addSound("WIND OUCH");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BUBBLE");
com.skivecreative.sounds.SoundManager.getInstance().addSound("HARY");
com.skivecreative.sounds.SoundManager.getInstance().addSound("ITE");
com.skivecreative.sounds.SoundManager.getInstance().addSound("WHA");
com.skivecreative.sounds.SoundManager.getInstance().addSound("HA");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BGM 1", "BGM 1 SILENT");
com.skivecreative.sounds.SoundManager.getInstance().addSound("BGM 1", "BGM 1 SONG");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PRACTICE LOOP");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PATA 1");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PATA 2");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PATA 3");
com.skivecreative.sounds.SoundManager.getInstance().addSound("CHAKA 1");
com.skivecreative.sounds.SoundManager.getInstance().addSound("CHAKA 2");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PON 1");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PON 2");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PON 3");
com.skivecreative.sounds.SoundManager.getInstance().addSound("PON 4");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TRUMPET 1");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TRUMPET 2");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TRUMPET 3");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TRUMPET 4");
com.skivecreative.sounds.SoundManager.getInstance().addSound("TRUMPET DOWN");
com.skivecreative.sounds.SoundManager.getInstance().addSound("UPDATED MUSIC");
}
}
static function fadeOutSound(sID, time) {
var _local4 = time * 1000;
var _local5 = com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).getVolume();
var _local6 = _local5 / _local4;
var _local7 = _local6 * 10;
var _local8 = _global.setInterval(lowerVolume, 10, sID, _local7, _local5, soundIntervals.length);
soundIntervals.push(_local8);
}
static function fadeUpSoundLoop(sID, time) {
var _local4 = time * 1000;
var _local5 = 100 / _local4;
var _local6 = _local5 * 10;
var _local7 = _global.setInterval(increaseVolume, 10, com.skivecreative.sounds.SoundManager.getInstance().getSound(sID), _local6, soundIntervals.length);
soundIntervals.push(_local7);
com.skivecreative.sounds.SoundManager.getInstance().playSoundLoop(sID);
com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).setVolume(1);
}
static function increaseVolume(s, d, indexID) {
var _local5 = cVol;
var _local6 = _local5 + d;
s.setVolume(_local6);
cVol = _local6;
if (s.getVolume() >= 100) {
s.setVolume(100);
_global.clearInterval(soundIntervals[indexID]);
cVol = 0;
}
}
static function lowerVolume(sID, d, initV, indexID) {
var _local6 = com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).getVolume();
var _local7 = _local6 - d;
com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).setVolume(_local7);
if (_local7 <= 1) {
com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).setVolume(0);
com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).stop();
_global.clearInterval(soundIntervals[indexID]);
com.skivecreative.sounds.SoundManager.getInstance().getSound(sID).setVolume(initV);
}
}
static function patponSounds() {
if (!killSounds) {
var _local2 = randSounds[randSoundIndex];
com.skivecreative.sounds.SoundManager.getInstance().getSound(_local2).setVolume(50);
com.skivecreative.sounds.SoundManager.getInstance().getSound(_local2).start();
var _local3 = getRandByRange(7, 15);
com.skivecreative.queues.DelayedAction.timeDelay(patapon.App, patponSounds, _local3);
randSoundIndex++;
if (randSoundIndex >= randSounds.length) {
randSoundIndex = 0;
}
} else {
killSounds = false;
}
}
static function killPataponSounds() {
killSounds = true;
}
static function getRandByRange(min, max) {
var _local4 = Math.round((Math.random() * ((max - min) + 1)) + (min - 0.5));
return(_local4);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
}
static var soundIntervals = new Array();
static var cVol = 0;
static var randSounds = new Array("HARY", "ITE", "HA", "WHA");
static var randSoundIndex = 0;
static var killSounds = false;
static var DEBUG = false;
}
Symbol 20561 MovieClip [__Packages.patapon.events.EventList] Frame 0
class patapon.events.EventList
{
function EventList () {
}
static var onPastSequence = new com.bourre.events.EventType("onPastSequence");
static var onSuccessfulSequence = new com.bourre.events.EventType("onSuccessfulSequence");
static var onSequenceDestroyed = new com.bourre.events.EventType("onSequenceDestroyed");
static var onSequenceCompleted = new com.bourre.events.EventType("onSequenceCompleted");
static var onSequenceMissed = new com.bourre.events.EventType("onSequenceMissed");
static var onSecondarySequence = new com.bourre.events.EventType("onSecondarySequence");
static var onLevelComplete = new com.bourre.events.EventType("onLevelComplete");
static var onEndPointReached = new com.bourre.events.EventType("onEndPointReached");
static var onStartEndSequence = new com.bourre.events.EventType("onStartEndSequence");
static var onTimeUp = new com.bourre.events.EventType("onTimeUp");
static var onCastleDestroyed = new com.bourre.events.EventType("onCastleDestroyed");
static var onExitPracticeMode = new com.bourre.events.EventType("onExitPracticeMode");
static var onBeatHitSuccess = new com.bourre.events.EventType("onBeatHitSuccess");
static var onNormaliseBeat = new com.bourre.events.EventType("onNormaliseBeat");
static var onTrumpetSequenceCompleted = new com.bourre.events.EventType("onTrumpetSequenceCompleted");
static var onTrumpetSequenceMissed = new com.bourre.events.EventType("onTrumpetSequenceMissed");
static var onStartTrumpet = new com.bourre.events.EventType("onStartTrumpet");
static var onTrumpetSequenceDestroyed = new com.bourre.events.EventType("onTrumpetSequenceDestroyed");
static var onStopTrumpet = new com.bourre.events.EventType("onStopTrumpet");
static var onTrumpetDestroyed = new com.bourre.events.EventType("onTrumpetDestroyed");
static var onFirstTrumpetBeat = new com.bourre.events.EventType("onFirstTrumpetBeat");
static var onTrumpetSequenceRuined = new com.bourre.events.EventType("onTrumpetSequenceRuined");
}
Symbol 20562 MovieClip [__Packages.patapon.Instructions] Frame 0
class patapon.Instructions
{
var stage, localisedNodes, aimShowing, whatShowing, keysShowing, menu, homeFlag, homeButton, aimInfo, aimButton, whatInfo, whatButton, keysInfo, keysButton;
function Instructions (stage) {
this.stage = stage;
init();
}
function localiseText() {
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatScreen(stage.instructions_mc.landscape_mc.patapons_mc, localisedNodes.instructions);
}
function init() {
localiseText();
aimShowing = false;
whatShowing = false;
keysShowing = false;
menu = stage.instructions_mc.landscape_mc.patapons_mc;
initButtons();
initBoxes();
homeFlag = new com.skivecreative.effects.FlagRipple(homeButton, 100, 50);
homeButton.onRelease = com.bourre.commands.Delegate.create(this, transitionOut, "title");
aimButton.onRelease = com.bourre.commands.Delegate.create(this, showInfo, aimInfo);
whatButton.onRelease = com.bourre.commands.Delegate.create(this, showInfo, whatInfo);
keysButton.onRelease = com.bourre.commands.Delegate.create(this, showInfo, keysInfo);
homeButton.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, homeButton, homeFlag, "navButton");
aimButton.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, aimButton, undefined, "theAimBtn");
whatButton.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, whatButton, undefined, "whatBtn");
keysButton.onRollOver = com.bourre.commands.Delegate.create(this, rollOver, keysButton, undefined, "keysBtn");
homeButton.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, homeButton, homeFlag, "navButton");
aimButton.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, aimButton, undefined, "theAimBtn");
whatButton.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, whatButton, undefined, "whatBtn");
keysButton.onRollOut = com.bourre.commands.Delegate.create(this, rollOut, keysButton, undefined, "keysBtn");
aimInfo.close_btn.onRelease = com.bourre.commands.Delegate.create(this, closeBox, aimInfo);
whatInfo.close_btn.onRelease = com.bourre.commands.Delegate.create(this, closeBox, whatInfo);
keysInfo.close_btn.onRelease = com.bourre.commands.Delegate.create(this, closeBox, keysInfo);
patapon.App.fadeUpSoundLoop("HAPPY LOOP", 3);
com.skivecreative.queues.DelayedAction.frameDelay(this, showSpeechBubbles, 100);
}
function closeBox(box, openBox) {
com.mosesSupposes.fuse.ZigoEngine.doTween(box, "_alpha", 0, 0.2, "easeInQuad", 0, {scope:this, func:"onClose", args:[box, openBox]});
}
function onClose(box, openBox) {
box._visible = false;
switch (box) {
case aimInfo :
aimShowing = false;
break;
case whatInfo :
whatShowing = false;
break;
case keysInfo :
keysShowing = false;
}
if (openBox != undefined) {
showInfo(openBox);
}
}
function initButtons() {
homeButton = menu.home_mc;
aimButton = menu.aim_mc;
whatButton = menu.what_mc;
keysButton = menu.keys_mc;
aimButton.enabled = false;
whatButton.enabled = false;
keysButton.enabled = false;
aimButton._xscale = (whatButton._xscale = (keysButton._xscale = 0));
aimButton._yscale = (whatButton._yscale = (keysButton._yscale = 0));
}
function initBoxes() {
aimInfo = menu.aimBox_mc;
whatInfo = menu.whatBox_mc;
keysInfo = menu.keysBox_mc;
aimInfo._visible = (whatInfo._visible = (keysInfo._visible = false));
}
function floatUp(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y - 5, 1, "linear", 0, {scope:this, func:"floatDown", args:[target]});
}
function floatDown(target) {
com.mosesSupposes.fuse.ZigoEngine.doTween(target, "_y", target._y + 5, 1, "linear", 0, {scope:this, func:"floatUp", args:[target]});
}
function showSpeechBubbles() {
com.mosesSupposes.fuse.ZigoEngine.doShortcut(aimButton, "scaleTo", 100, 0.4, "easeOutBack");
com.skivecreative.sounds.SoundManager.getInstance().getSound("BUBBLE").start();
com.mosesSupposes.fuse.ZigoEngine.doShortcut(whatButton, "scaleTo", 100, 0.4, "easeOutBack", 0.2);
com.skivecreative.queues.DelayedAction.timeDelay(this, bubbleSound, 0.2);
com.mosesSupposes.fuse.ZigoEngine.doShortcut(keysButton, "scaleTo", 100, 0.4, "easeOutBack", 0.4, {scope:this, func:"enableButtons"});
com.skivecreative.queues.DelayedAction.timeDelay(this, bubbleSound, 0.4);
com.skivecreative.queues.DelayedAction.timeDelay(this, floatUp, 0.3, aimButton);
com.skivecreative.queues.DelayedAction.timeDelay(this, floatUp, 0.6, whatButton);
com.skivecreative.queues.DelayedAction.timeDelay(this, floatUp, 0.9, keysButton);
com.skivecreative.queues.DelayedAction.timeDelay(patapon.App, patapon.App.patponSounds, 5);
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function bubbleSound() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("BUBBLE").start();
}
function enableButtons() {
aimButton.enabled = true;
whatButton.enabled = true;
keysButton.enabled = true;
}
function disableButtons() {
aimButton.enabled = false;
whatButton.enabled = false;
keysButton.enabled = false;
}
function transitionOut() {
closeBox(aimInfo);
closeBox(whatInfo);
closeBox(keysInfo);
patapon.App.killPataponSounds();
patapon.App.fadeOutSound("HAPPY LOOP", 2);
stage.instructions_mc.landscape_mc.gotoAndStop(100);
com.skivecreative.utils.Timeline.playBackwards(stage.instructions_mc.landscape_mc, 1, com.bourre.commands.Delegate.create(this, fadeToLight));
}
function fadeToLight() {
patapon.App.fadeUpSoundLoop("TITLE LOOP", 2);
stage.instructions_mc.bg_mc.gotoAndStop("darkToLight");
com.mosesSupposes.fuse.ZigoEngine.doTween(stage.instructions_mc.landscape_mc.stars_mc, "_alpha", 0, 0.8, "linear");
com.skivecreative.utils.Timeline.playForwards(stage.instructions_mc.bg_mc, 40, com.bourre.commands.Delegate.create(this, goto, "title"));
}
function showInfo(infoBox) {
infoBox._alpha = 0;
infoBox._visible = true;
if (aimShowing) {
closeBox(aimInfo, infoBox);
} else if (whatShowing) {
closeBox(whatInfo, infoBox);
} else if (keysShowing) {
closeBox(keysInfo, infoBox);
} else {
com.mosesSupposes.fuse.ZigoEngine.doTween(infoBox, "_alpha", 100, 0.2, "easeInQuad");
switch (infoBox) {
case aimInfo :
aimShowing = true;
break;
case whatInfo :
whatShowing = true;
break;
case keysInfo :
keysShowing = true;
}
}
}
function rollOver(btn, ripple, tf) {
btn.gotoAndStop(2);
if (ripple != undefined) {
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc[tf + "_txt"], localisedNodes.instructions);
ripple.flush();
} else {
com.skivecreative.text.Formatter.formatTextField(btn[tf + "_txt"], localisedNodes.instructions);
}
}
function rollOut(btn, ripple, tf) {
btn.gotoAndStop(1);
if (ripple != undefined) {
com.skivecreative.text.Formatter.formatTextField(btn.ripple_mc[tf + "_txt"], localisedNodes.instructions);
ripple.flush();
} else {
com.skivecreative.text.Formatter.formatTextField(btn[tf + "_txt"], localisedNodes.instructions);
}
}
function goto(section) {
patapon.Navigator.getInstance().goto(section);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
homeFlag.destroy();
}
}
Symbol 20563 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 _local9 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local10 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local11 = callback.extra1;
var _local12 = callback.extra2;
var _local13 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local15 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local16 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local17 = "";
var _local18 = "";
var _local19 = tweens[String(obj.__zigoID__)];
if ((_local19 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var j in _local19.props) {
_local13.unshift(j);
}
}
_local19.numProps = 0;
cleanUp(true);
}
for (var i in props) {
var _local20 = props[i];
var _local21 = _local16.indexOf(("|" + _local20) + "|") > -1;
var _local22 = _local19.colorProp;
if (_local19 != undefined) {
if ((_local21 == true) && (_local22 != undefined)) {
_local13.unshift(_local22);
delete _local19.props[_local22];
delete _local19.colorProp;
_local19.numProps--;
} else if (_local19.props[_local20] != undefined) {
_local13.unshift(_local20);
delete _local19[_local20];
_local19.numProps--;
}
}
var _local23 = {c:-1, fmp:-1};
var _local24 = endvals[i];
var _local25 = ((_local9 == 0) && ((seconds + delay) == 0)) || ((_local9 > 0) && (seconds == 0));
var _local26 = false;
var _local27 = (_local14 != undefined) && (_local15.indexOf(("|" + _local20) + "|") > -1);
if (_local27 == true) {
_local23.fmp = _local14;
_local23.ps = _local14.getFilterProp(obj, _local20, true);
_local23.special = true;
}
if ((_local21 == true) || ((_local27 == true) && ((_local20.indexOf("lor") > -1) && ((_local20.charAt(2) != "l") && (_local25 == false))))) {
if (_local21 == true) {
_local23.c = new Color(obj);
_local23.ps = _local23.c.getTransform();
if (_local20 != "_colorTransform") {
var _local28 = (((_local20 == "_tint") || ((_local20 == "_tintPercent") || (_local20 == "_colorReset"))) ? "tint" : (_local20.slice(1)));
var _local29 = null;
var _local30 = null;
if (_local28 == "tint") {
if (typeof(_local24) == "object") {
_local30 = _local24.tint;
_local29 = ((_global.isNaN(_local24.percent) == true) ? 100 : (_local24.percent));
} else if ((_local20 == "_tintPercent") || (_local20 == "_colorReset")) {
var _local31 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
_local29 = ((typeof(_local24) == "string") ? ((_local31 || 0) + Number(_local24)) : Number(_local24));
_local29 = Math.max(0, Math.min(_local29, 100));
if (_local20 == "_colorReset") {
_local29 = Math.min(_local31, 100 - _local29);
}
_local30 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local30 = _local24;
_local29 = 100;
}
} else {
_local29 = ((typeof(_local24) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local28] || 0) + Number(_local24)) : (_local24));
}
_local24 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local28, _local29, _local30);
}
} else {
_local23.c = 1;
_local23.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local23.ps);
_local24 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local24);
}
if (_local25 == true) {
_local23.c.setTransform(_local24);
} else {
_local23.ch = {};
for (var j in _local24) {
if ((((_local23.c === 1) && (j.charAt(1) == "b")) || (_local24[j] != _local23.ps[j])) && ((_local24[j] != null) && (_global.isNaN(Number(_local24[j])) == false))) {
_local23.ch[j] = ((typeof(_local24[j]) == "string") ? (Number(_local24[j])) : (_local24[j] - _local23.ps[j]));
if (_global.isNaN(_local23.ch[j]) == true) {
_local23.ch[j] = 0;
} else if (_local23.ch[j] != 0) {
_local26 = true;
}
}
}
}
} else if (_local20 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local25 == true) {
if ((_local24.x != null) && (_global.isNaN(Number(_local24.x)) == false)) {
obj._x = ((typeof(_local24.x) == "string") ? (obj._x + Number(_local24.x)) : (_local24.x));
}
if ((_local24.y != null) && (_global.isNaN(Number(_local24.y)) == false)) {
obj._y = ((typeof(_local24.y) == "string") ? (obj._y + Number(_local24.y)) : (_local24.y));
}
} else {
_local23.special = true;
_local23.ps = 0;
_local23.ch = 1;
_local23.bz = {sx:obj._x, sy:obj._y};
if ((_local24.x == null) || (_global.isNaN(Number(_local24.x)))) {
_local24.x = _local23.bz.sx;
}
if ((_local24.y == null) || (_global.isNaN(Number(_local24.y)))) {
_local24.y = _local23.bz.sy;
}
_local23.bz.chx = ((typeof(_local24.x) == "string") ? (Number(_local24.x)) : (_local24.x - _local23.bz.sx));
if (_global.isNaN(_local23.bz.chx) == true) {
_local23.bx.chx = 0;
}
_local23.bz.chy = ((typeof(_local24.y) == "string") ? (Number(_local24.y)) : (_local24.y - _local23.bz.sy));
if (_global.isNaN(_local23.bz.chy) == true) {
_local23.bx.chy = 0;
}
if ((_local24.controlX == null) || (_global.isNaN(Number(_local24.controlX)))) {
_local23.bz.ctrlx = _local23.bz.sx + (_local23.bz.chx / 2);
} else {
_local23.bz.ctrlx = ((typeof(_local24.controlX) == "string") ? (_local23.bz.sx + Number(_local24.controlX)) : (_local24.controlX));
}
if ((_local24.controlY == null) || (_global.isNaN(Number(_local24.controlY)))) {
_local23.bz.ctrly = _local23.bz.sy + (_local23.bz.chy / 2);
} else {
_local23.bz.ctrly = ((typeof(_local24.controlY) == "string") ? (_local23.bz.sy + Number(_local24.controlY)) : (_local24.controlY));
}
_local23.bz.ctrlx = _local23.bz.ctrlx - _local23.bz.sx;
_local23.bz.ctrly = _local23.bz.ctrly - _local23.bz.sy;
_local26 = (_local23.bz.chx + _local23.bz.chy) != 0;
}
} else {
if ((_local20 == "_x") || (_local20 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local20 == "_frame") && (typeof(obj) == "movieclip")) {
_local23.ps = obj._currentframe;
_local23.special = true;
} else if (_local27 == false) {
_local23.ps = obj[_local20];
}
if (_local25 == true) {
_local24 = ((typeof(_local24) == "string") ? (_local23.ps + Number(_local24)) : (_local24));
if (_local27 == true) {
_local14.setFilterProp(obj, _local20, _local24);
} else {
obj[_local20] = _local24;
}
} else {
if ((_local24 == null) || (_global.isNaN(Number(_local24)))) {
_local24 = _local23.ps;
}
_local23.ch = ((typeof(_local24) == "string") ? (Number(_local24)) : (Number(_local24) - _local23.ps));
if (_global.isNaN(_local23.ch) == true) {
_local23.ch = 0;
}
_local26 = _local23.ch != 0;
}
}
if (((_local9 == 0) && ((_local26 == true) || (_local25 == false))) || ((_local26 == true) && (_local25 == false))) {
_local23.ts = now + (delay * 1000);
_local23.pt = -1;
_local23.d = seconds * 1000;
_local23.ef = ease;
_local23.sf = false;
_local23.cycles = _local10;
if (_local11 != undefined) {
_local23.e1 = _local11;
}
if (_local12 != undefined) {
_local23.e2 = _local12;
}
if (callback.start != undefined) {
_local23.scb = callback.start;
}
if (callback.upd != undefined) {
_local23.ucb = callback.upd;
}
if (callback.end != undefined) {
_local23.ecb = callback.end;
}
if (tweens[String(obj.__zigoID__)] == undefined) {
_local19 = (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 (_local21 == true) {
_local19.colorProp = _local20;
}
_local19.props[_local20] = _local23;
_local19.numProps++;
_local17 = (_local20 + ",") + _local17;
_local18 = (((typeof(_local24) == "string") ? (("\"" + _local24) + "\"") : (_local24)) + ",") + _local18;
}
}
if ((_local19 == undefined) || (_local19.numProps <= 0)) {
cleanUp();
}
if ((_local13.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local13, __zigoID__:obj.__zigoID__});
}
if (_local17 == "") {
if (_local9 == 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 _local32 = obj._listeners.length > 0;
if (_local32 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local32 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local32 == 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 (_local17 == "") {
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())), _local17.slice(0, -1), _local18.slice(0, -1));
}
}
return(((_local17 == "") ? null : (_local17.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local5 = {};
var _local6 = paramsObj(targs, props);
if (_local6.none == true) {
return(undefined);
}
var _local7 = _local6.all;
var _local8 = _local6.allprops;
var _local9 = ((_local7 == true) ? (tweens) : (Object(_local6.tg)));
var _local10 = false;
for (var j in _local9) {
var _local11 = ((_local7 == true) ? (j) : (String(_local9[j].__zigoID__)));
var _local12 = tweens[_local11];
var _local13 = ((_local8 == true) ? (_local12.props) : (_local6.props));
for (var i in _local13) {
var _local14 = (i == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local12.colorProp != undefined);
if ((_local12.props[i] != undefined) || (_local14 == true)) {
if (_local5[_local11] == null) {
_local5[_local11] = [];
}
_local5[_local11].unshift(i);
if ((i == _local12.colorProp) || (_local14 == true)) {
delete _local12.props[_local12.colorProp];
delete _local12.colorProp;
} else {
delete _local12.props[i];
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local10 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var k in _local5) {
var _local15 = tweens[k].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local15.addProperty) == "function") ? (_local15) : (("[MISSING(\"" + tweens[k].targID) + "\")]")), props:_local5[k], __zigoID__:tweens[k].targZID});
}
}
if (_local10 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, suppressStartEvents) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props == true;
return(undefined);
}
var _local7 = paramsObj(targs, props);
if (_local7.none == true) {
return(undefined);
}
var _local8 = _local7.all;
var _local9 = _local7.allprops;
var _local10 = ((_local8 == true) ? (tweens) : (Object(_local7.tg)));
var _local11 = 0;
for (var j in _local10) {
var _local12 = ((_local8 == true) ? (j) : (String(_local10[j].__zigoID__)));
var _local13 = tweens[_local12];
var _local14 = ((_local9 == true) ? (_local13.props) : (_local7.props));
if (_local14.ALLCOLOR == true) {
_local14[_local13.colorProp] = true;
delete _local14.ALLCOLOR;
}
for (var prop in _local14) {
_local11++;
var _local15 = _local13.props[prop];
if (type == "rewind") {
if (pauseFlag == true) {
_local15.pt = now;
}
_local15.ts = now;
if (suppressStartEvents != true) {
_local15.sf = false;
if (_local15.scb != undefined) {
_local15.scb.fired = false;
}
}
} else if (type == "ff") {
_local15.pt = -1;
_local15.ts = now - _local15.d;
} else if (type == "pause") {
if (_local15.pt == -1) {
_local15.pt = now;
}
} else if (type == "unpause") {
if (_local15.pt != -1) {
_local15.ts = now - (_local15.pt - _local15.ts);
_local15.pt = -1;
}
}
}
}
if ((type == "ff") && (_local11 > 0)) {
update();
} else if ((type == "rewind") && (_local11 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local5 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local6 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local7 = _local6.props;
if (param != null) {
if (_local7[String(param)] == undefined) {
return(false);
}
return(_local7[String(param)].pt != -1);
}
for (var i in _local7) {
if (_local7[i].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(_local6 != undefined);
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(_local6.colorProp != undefined);
}
return(_local6.props[String(param)] != undefined);
case "count" :
if (!_local5) {
return(_local6.numProps);
}
var _local8 = 0;
for (var i in tweens) {
_local8 = _local8 + tweens[i].numProps;
}
return(_local8);
case "locked" :
return(_local6.locked);
}
}
function update(force) {
var _local3 = {};
var _local4 = {};
var _local5 = {};
var _local6 = {};
var _local7 = {};
var _local8 = {};
var _local9 = false;
var _local10 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var i in tweens) {
var _local11 = tweens[i];
var _local12 = _local11.targ;
var _local13 = _local11.props;
var _local14 = _local12._listeners.length > 0;
if (_local12.__zigoID__ == undefined) {
_local9 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local15 = [];
for (var prop in _local13) {
_local15.unshift(prop);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local12.addProperty) == "function") ? (_local12) : (("[MISSING:" + _local11.targID) + "]")), props:_local15, __zigoID__:_local11.targZID});
}
continue;
}
for (var prop in _local13) {
var _local16 = _local13[prop];
if (((_local16.ts > now) || (_local16.pt != -1)) && (force != true)) {
continue;
}
var _local17 = now >= (_local16.ts + _local16.d);
if (_local16.c == -1) {
if (_local17 == true) {
var _local18 = _local16.ps + _local16.ch;
if ((_local16.cycles > 1) || (_local16.cycles == 0)) {
if (_local16.cycles > 1) {
_local16.cycles--;
}
_local16.ps = _local18;
_local16.ch = -_local16.ch;
_local16.ts = now;
_local17 = false;
}
} else {
var _local18 = _local16.ef(now - _local16.ts, _local16.ps, _local16.ch, _local16.d, _local16.e1, _local16.e2);
}
if (_global.isNaN(_local18) == false) {
if (_local10 == true) {
var _local18 = Math.round(Number(_local18));
}
if (_local16.special != true) {
_local12[prop] = _local18;
} else if (_local16.fmp != -1) {
_local16.fmp.setFilterProp(_local12, prop, _local18);
} else if (prop == "_bezier_") {
var _local19 = _local16.bz;
_local12._x = _local19.sx + (_local18 * (((2 * (1 - _local18)) * _local19.ctrlx) + (_local18 * _local19.chx)));
_local12._y = _local19.sy + (_local18 * (((2 * (1 - _local18)) * _local19.ctrly) + (_local18 * _local19.chy)));
} else if (prop == "_frame") {
MovieClip(_local12).gotoAndStop(Math.round(_local18));
}
}
} else {
var _local20 = {};
var _local21 = (_local17 == true) && ((_local16.cycles > 1) || (_local16.cycles == 0));
for (var j in _local16.ch) {
var _local22 = _local16.ch[j];
if (_local17 == true) {
_local20[j] = _local16.ps[j] + _local22;
if (_local21 == true) {
_local16.ch[j] = -_local22;
}
} else {
_local20[j] = _local16.ef(now - _local16.ts, _local16.ps[j], _local22, _local16.d, _local16.e1, _local16.e2);
}
if (_global.isNaN(_local20[j]) == false) {
if (_local10 == true) {
_local20[j] = Math.round(_local20[j]);
}
if (_local16.fmp == -1) {
_local16.c.setTransform(_local20);
} else {
var _local23 = ((_local20.rb << 16) | (_local20.gb << 8)) | _local20.bb;
_local16.fmp.setFilterProp(_local12, prop, _local23);
}
}
}
if (_local21 == true) {
if (_local16.cycles > 1) {
_local16.cycles--;
}
_local17 = false;
_local16.ts = now;
_local16.ps = _local20;
}
}
if (_local16.sf == false) {
if (_local14 == true) {
if (_local6[i] == undefined) {
_local6[i] = [_local12, []];
}
_local6[i][1].unshift(prop);
}
_local16.sf = true;
}
if (_local16.scb.fired == false) {
_local3[String(_local16.scb.id)] = _local16.scb;
_local16.scb.fired = true;
}
if (_local14 == true) {
if (_local7[i] == undefined) {
_local7[i] = [_local12, []];
}
_local7[i][1].unshift(prop);
}
if (_local16.ucb != undefined) {
_local4[String(_local16.ucb.id)] = _local16.ucb;
}
if (_local17 == true) {
if (_local14 == true) {
if (_local8[i] == undefined) {
_local8[i] = [_local12, []];
}
_local8[i][1].unshift(prop);
}
if (_local16.ecb != undefined) {
_local5[String(_local16.ecb.id)] = _local16.ecb;
}
delete _local13[prop];
if (prop == _local11.colorProp) {
delete _local11.colorProp;
}
_local11.numProps--;
if (_local11.numProps <= 0) {
_local9 = true;
}
}
}
}
for (var i in _local6) {
_local6[i][0].broadcastMessage("onTweenStart", {target:_local6[i][0], props:_local6[i][1]});
}
for (var i in _local3) {
_local3[i].f.apply(_local3[i].s, _local3[i].a);
}
for (var i in _local7) {
_local7[i][0].broadcastMessage("onTweenUpdate", {target:_local7[i][0], props:_local7[i][1]});
}
for (var i in _local4) {
_local4[i].f.apply(_local4[i].s, _local4[i].a);
}
for (var i in _local8) {
_local8[i][0].broadcastMessage("onTweenEnd", {target:_local8[i][0], props:_local8[i][1]});
}
for (var i in _local5) {
_local5[i].f.apply(_local5[i].s, _local5[i].a);
}
if (_local9) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var i in tweens) {
var _local3 = tweens[i].targ;
if ((tweens[i].numProps <= 0) || (_local3.__zigoID__ == undefined)) {
if ((_local3 != undefined) && ((_local3.tween == undefined) && (noInit != true))) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local3);
}
delete tweens[i];
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 _local5 = {};
_local5.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local5.none = targs == null;
if (_local5.all == true) {
_local5.tg = [null];
} else {
_local5.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var i in _local5.tg) {
var _local6 = _local5.tg[i];
if ((_local6 == null) || (!((typeof(_local6) == "object") || (typeof(_local6) == "movieclip")))) {
_local5.tg.splice(Number(i), 1);
}
}
}
_local5.allprops = props == null;
var _local9 = {};
if (_local5.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
var _local7 = ((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(",");
}
var _local8 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local8.length < _local7.length) {
_local8.push(_local8[_local8.length - 1]);
}
_local8.splice(_local7.length, _local8.length - _local7.length);
}
for (var i in _local7) {
var _local10 = Number(i);
if ((_local7[i] != "_scale") && (_local7[i] != "_size")) {
if (_local9[_local7[i]] == undefined) {
if (String(_local7[i]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local7[i] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local9[_local7[i]] = true;
} else {
_local7.splice(_local10, 1);
_local8.splice(_local10, 1);
}
} else {
var _local11 = String(_local7.splice(_local10, 1)[0]);
var _local12 = _local8.splice(_local10, 1)[0];
if (_local11 == "_scale") {
if (_local9._xscale == undefined) {
_local7.splice(_local10, 0, "_xscale");
_local8.splice(_local10, 0, _local12);
_local9._xscale = true;
_local10++;
}
if (_local9._yscale == undefined) {
_local7.splice(_local10, 0, "_yscale");
_local8.splice(_local10, 0, _local12);
_local9._yscale = true;
}
}
if (_local11 == "_size") {
if (_local9._width == undefined) {
_local7.splice(_local10, 0, "_width");
_local8.splice(_local10, 0, _local12);
_local9._width = true;
_local10++;
}
if (_local9._yscale == undefined) {
_local7.splice(_local10, 0, "_height");
_local8.splice(_local10, 0, _local12);
_local9._height = true;
}
}
}
}
for (var i in _local7) {
if (((_local7[i] == "_xscale") && (_local9._width == true)) || ((_local7[i] == "_yscale") && (_local9._height == true))) {
_local7.splice(Number(i), 1);
_local8.splice(Number(i), 1);
delete _local9[_local7[i]];
}
}
}
_local5.pa = _local7;
_local5.va = _local8;
_local5.props = _local9;
return(_local5);
}
var numTweens = 0;
}
Symbol 20564 MovieClip [__Packages.patapon.game.HUD] Frame 0
class patapon.game.HUD
{
var stage, timeLimit, mc, timer;
function HUD (stage, timeLimit) {
this.stage = stage;
this.timeLimit = timeLimit;
init();
}
function init() {
mc = stage.attachMovie("HUD LOGO", "timerLogo", stage.getNextHighestDepth());
mc._x = 65;
mc._y = 50;
timer = new patapon.game.Timer(mc, timeLimit);
mc._xscale = (mc._yscale = 0);
com.mosesSupposes.fuse.ZigoEngine.doShortcut(mc, "scaleTo", 100, 0.3, "easeOutBack");
}
function startTimer() {
timer.start();
}
function getTimer() {
return(timer);
}
function flushDepth() {
mc.swapDepths(stage.getNextHighestDepth());
}
function endOfLevel() {
timer.stop();
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_x", mc._x - 150, 0.6, "linear");
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
timer.destroy();
mc.removeMovieClip();
}
}
Symbol 20565 MovieClip [__Packages.com.skivecreative.xml.XMLSA] Frame 0
class com.skivecreative.xml.XMLSA
{
var xmlobj, $xml, $root, $parent, $version, attributes;
function XMLSA (watchXML) {
xmlobj = watchXML;
$xml = ($root = ($parent = new Object()));
_global.ASSetPropFlags(this, null, 1, 1);
if (watchXML != undefined) {
_parse.apply(this, arguments);
}
_global.ASSetPropFlags(com.skivecreative.xml.XMLSA.prototype, null, 1, 1);
}
function load() {
_cleanup();
var _local2 = _makeLoader(this);
arguments[0] = _makeURL(arguments[0]);
_local2.load.apply(_local2, arguments);
}
function send() {
_cleanup();
arguments[0] = _makeURL(arguments[0]);
if (arguments.length == 2) {
$root.send.apply($root, arguments);
} else {
$root.sendAndLoad.apply($root, arguments[0], new XML());
}
}
function toString() {
return($xml.toString());
}
function sendAndLoad(host, target, method) {
_cleanup();
var _local5 = _makeLoader(target);
$root.sendAndLoad(_makeURL(host), _local5, method);
}
function search(criteria, recursive) {
XMLNode.prototype.$criteria = criteria;
arguments.shift();
var _local4 = _search.apply(this, arguments);
delete XMLNode.prototype.$criteria;
return(_local4);
}
function getXML() {
return($xml);
}
function getValue() {
return((($xml.firstChild.nodeType == 3) ? ($xml.firstChild.nodeValue) : undefined));
}
function setValue(text) {
if ($xml.firstChild.nodeType == undefined) {
var _local3 = new XML();
_local3.createTextNode(text);
$xml.appendChild(_local3);
return(true);
}
if ($xml.firstChild.nodeType == 3) {
$xml.firstChild.nodeValue = text;
return(true);
}
return(false);
}
function getNodeName() {
return($xml.nodeName);
}
function appendChild(element) {
if (element instanceof XML) {
element = element.firstChild;
}
$xml.appendChild(element);
_reParse();
}
function cloneNode(rekursiv) {
return($xml.cloneNode(rekursiv));
}
function appendElement(name, value, attribs) {
var _local5 = new XML();
$xml.appendChild(_local5.createElement(name));
if (value != null) {
$xml.lastChild.appendChild(_local5.createTextNode(value));
}
if (typeof(attribs) == "object") {
for (var key in attribs) {
$xml.lastChild.attributes[key] = attribs[key];
}
}
_reParse();
}
function removeChildByIndex(name, idx) {
this[name][idx].$xml.removeNode();
this[name].splice(idx, 1);
}
function removeNode() {
$xml.removeNode();
$parent._reParse();
}
function insertBefore(node) {
$parent.$xml.insertBefore(node, $xml);
$parent._reParse();
}
function _parse(node, parent) {
$parent = parent;
if (node instanceof XML) {
$version = "XMLSA 1.4";
$root = node;
node = node.firstChild;
} else {
$root = $parent.$root;
}
$xml = node;
attributes = node.attributes;
if ((node.nodeType == 1) && (node.firstChild.nodeType != 3)) {
var _local4 = 0;
for ( ; _local4 < node.childNodes.length ; _local4++) {
var _local5 = node.childNodes[_local4].nodeName;
if (this[_local5] == undefined) {
this[_local5] = new Array();
this[_local5].__resolve = com.skivecreative.xml.XMLSA.prototype.mixed__resolve;
_global.ASSetPropFlags(this[_local5], null, 1, 1);
}
this[_local5].push(new com.skivecreative.xml.XMLSA(node.childNodes[_local4], xmlobj));
}
}
}
function _reParse() {
_cleanup();
_parse($xml, $parent);
}
function _cleanup() {
for (var found in this) {
if (found != "onLoad") {
trace("1. " + found);
delete this[found];
}
}
}
function _makeURL(host) {
if (_online()) {
var _local3 = random(100000) + 100000;
if (_global.sessionID != undefined) {
host = host + ("?sid=" + _global.sessionID);
if (useCacheBuster) {
host = host + ("&nocache=" + _local3);
}
} else if (useCacheBuster) {
if (host.indexOf("?") > 0) {
host = host + ("&nocache=" + _local3);
} else {
host = host + ("?nocache=" + _local3);
}
}
}
return(host);
}
function _online() {
return(_root._url.substr(0, 7) == "http://");
}
function _makeLoader(target) {
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.link = target;
_local3.onLoad = function (ok) {
if (ok) {
_global.ASSetPropFlags(this.link, ["onLoad"], 1, 1);
this.link._cleanup();
_global.ASSetPropFlags(this.link, ["onLoad"], 0, 1);
this.link._parse(this);
this.link.onLoad(true);
var _local3 = this.link.attributes;
if (_local3.session != undefined) {
switch (_local3.session) {
case "timeout" :
case "end" :
if (_global.session != undefined) {
delete _global.session;
_global.onSessionEnd(_local3);
}
break;
default :
_global.session = new Object();
_global.session.id = _local3.session;
_global.onSessionStart(_local3);
}
}
} else {
this.link.onLoad(false);
}
};
return(_local3);
}
function _search(recursive) {
var _local3 = new Array();
for (var found in this) {
for (var node in this[found]) {
if (this[found][node].$xml != undefined) {
if (this[found][node].$xml.$criteria()) {
_local3.push(this[found][node]);
}
if (recursive) {
_local3 = _local3.concat(this[found][node]._search.apply(this[found][node], arguments));
}
}
}
}
return(_local3);
}
function mixed__resolve(found) {
return(this[0][found]);
}
var useCacheBuster = true;
}
Symbol 20566 MovieClip [__Packages.patapon.game.ui.PracticeBox] Frame 0
class patapon.game.ui.PracticeBox
{
var stage, x, y, height, width, closeFunc, blackText, mc, closeButton;
function PracticeBox (stage, x, y, height, width, closeFunc) {
this.stage = stage;
this.x = x;
this.y = y;
this.height = height;
this.width = width;
this.closeFunc = closeFunc;
init();
}
function init() {
blackText = new TextFormat();
blackText.color = 0;
mc = stage.attachMovie("INTRO BOX", "introMsg" + count, stage.getNextHighestDepth());
mc._x = x;
mc._y = y;
mc.bg_mc._height = height + 15;
mc.bg_mc._width = width;
populateMsg();
disableButtons();
mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 100, 0.6, "easeInQuad", 1, {scope:this, func:"enableButtons"});
count++;
}
function populateMsg() {
var _local2 = mc.content_mc.part1_txt;
_local2.autoSize = true;
_local2._width = width - 60;
var _local3 = patapon.LocalisationManager.getInstance().getLocalisedNodes();
var _local4 = _local3.instructions.whatToDoContent1.getValue();
var _local5 = com.skivecreative.text.Formatter.getStyle("default");
_local2.text = _local4;
_local2.setTextFormat(_local5);
resizeBackground(_local2);
mc.content_mc._x = 20;
mc.content_mc._y = 15;
mc.scrollbar_mc._x = (_local2._x + _local2._width) + 35;
mc.scrollbar_mc._y = _local2._y + 15;
closeButton = mc.attachMovie("PLAY BUTTON", "cbp" + count, mc.getNextHighestDepth());
closeButton.play_txt.text = _local3.title.playFlag.getValue();
closeButton.play_txt.setTextFormat(_local5);
closeButton._x = mc.bg_mc._width - 20;
closeButton._y = mc.bg_mc._height - 20;
closeButton.onRelease = com.bourre.commands.Delegate.create(this, closeBox);
}
function resizeBackground(tf) {
var _local3 = mc.bg_mc._y + mc.bg_mc._height;
var _local4 = tf._y;
var _local5 = {y:_local4};
stage.content_mc.localToGlobal(_local5);
var _local6 = _local5.y;
var _local7 = _local6 + tf._height;
var _local8 = Math.abs(_local3 - _local7);
if (_local3 >= _local7) {
mc.bg_mc._height = mc.bg_mc._height - (_local8 - 50);
} else {
mc.bg_mc._height = mc.bg_mc._height + (_local8 + 50);
}
}
function enableButtons() {
closeButton.enabled = true;
}
function disableButtons() {
closeButton.enabled = false;
}
function closeBox() {
com.mosesSupposes.fuse.ZigoEngine.doTween(mc, "_alpha", 0, 0.4, "easeInQuad", 0, {scope:this, func:"returnToLevel"});
}
function returnToLevel() {
disableButtons();
closeButton.removeMovieClip();
closeFunc();
}
static var count = 0;
}
Symbol 20567 MovieClip [__Packages.patapon.game.TrumpetLevel] Frame 0
class patapon.game.TrumpetLevel extends com.bourre.events.EventBroadcaster implements patapon.game.ILevel
{
var stage, levelID, timeLimit, primaryBehaviour, correctSequences, sequenceCount, intro, sequenceManager, hud, patapons, scene, initScene, missionFailed, localisedNodes, missionComplete, blackness, removeAllListeners;
function TrumpetLevel (stage, levelID, timeLimit, primaryBehaviour) {
super();
this.stage = stage;
this.levelID = levelID;
this.timeLimit = timeLimit;
this.primaryBehaviour = primaryBehaviour;
}
function init() {
com.skivecreative.sounds.SoundManager.getInstance().getSound("START LEVEL").start();
patapon.LocalisationManager.getInstance().setLevelType("trumpet");
correctSequences = 0;
sequenceCount = -2;
addScenery();
showIntro();
}
function showIntro() {
intro = stage.attachMovie("IOScreen", "lvlBlackness" + levelID, stage.getNextHighestDepth(), {_alpha:100});
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 90, 0.5, "easeInQuad", 0.2);
intro._x = 0;
intro._y = 0;
intro.shaman_mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 100, 1, "easeInQuad", 0.5);
var _local2 = new patapon.game.ui.IntroBox(stage, 200, 90, 250, 480, levelID, undefined, undefined, com.bourre.commands.Delegate.create(this, messageBoxClosed));
}
function messageBoxClosed() {
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 0, 0.4, "easeInQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 0, 1, "easeInQuad", 0.3, {scope:this, func:"getReady"});
}
function getReady() {
addPatapons();
intro.removeMovieClip();
sequenceManager = new patapon.game.TrumpetSequenceManager(stage);
hud = new patapon.game.HUD(stage, timeLimit);
com.skivecreative.queues.DelayedAction.timeDelay(this, begin, 1);
patapon.LocalisationManager.getInstance().flushMuteButton();
}
function begin() {
initSequenceManager();
registerForEvents();
hud.getTimer().addEventListener(patapon.events.EventList.onTimeUp, this, onTimeUp);
com.skivecreative.sounds.SoundManager.getInstance().getSound("BEGIN LEVEL").start();
hud.startTimer();
com.skivecreative.queues.DelayedAction.frameDelay(this, initBehaviours, 1);
}
function getPrimaryBehaviour() {
return(primaryBehaviour);
}
function initBehaviours() {
primaryBehaviour.init(stage, patapons, scene);
}
function registerForEvents() {
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onBeatHitSuccess, this, onBeatHitSuccess);
}
function addScenery() {
var _local2 = ("LEVEL_" + levelID) + "_SCENE";
scene = stage.attachMovie(_local2, "levelScene", stage.getNextHighestDepth());
cacheThoseBitmaps();
initScene = scene.duplicateMovieClip("initScene" + levelID, stage.getNextHighestDepth());
initScene._visible = false;
}
function addPatapons() {
var _local2 = ("LEVEL_" + levelID) + "_CHARS";
patapons = stage.attachMovie(_local2, "pataponCharacters", stage.getNextHighestDepth(), {_y:410, _x:10});
var _local3 = patapons._x;
patapons._x = patapons._x - patapons._width;
patapons.gotoAndStop("walk");
patapons.leader_mc.gotoAndPlay("walkNoTrumpet");
com.mosesSupposes.fuse.ZigoEngine.doTween(patapons, "_x", _local3, 2, "linear", 0, {scope:this, func:pataponsReady});
}
function pataponsReady() {
patapons.gotoAndStop("still");
patapons.leader_mc.gotoAndStop("standNoTrumpet");
}
function initSequenceManager() {
sequenceManager.start();
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onTrumpetSequenceCompleted, this, onTrumpetSequenceCompleted);
com.bourre.events.EventBroadcaster.getInstance().addEventListener(patapon.events.EventList.onTrumpetSequenceMissed, this, onTrumpetSequenceMissed);
}
function cacheThoseBitmaps() {
for (var layer in scene) {
MovieClip(scene[layer]).cacheAsBitmap = true;
}
}
function onTimeUp() {
patapon.App.fadeOutSound("BGM 1 SONG", 0.2);
com.skivecreative.sounds.SoundManager.getInstance().getSound("MISSION FAILED").start();
hud.endOfLevel();
sequenceManager.kill();
patapon.game.behaviours.TrumpetBehaviour(primaryBehaviour).standNoTrumpet();
com.skivecreative.queues.DelayedAction.timeDelay(this, failedMission, 1);
}
function failedMission() {
var _local2 = patapon.LocalisationManager.getInstance().getLangCode();
if (_local2 == "en") {
missionFailed = stage.attachMovie("missionFailedBar", "mcBar", stage.getNextHighestDepth());
} else {
missionFailed = stage.attachMovie("missionFailed-NOT_EN", "mcBar", stage.getNextHighestDepth());
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(missionFailed.missionFailed_txt, localisedNodes.gameOver);
}
missionFailed._x = 0;
missionFailed._y = 452;
missionFailed._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_alpha", 100, 0.8, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_y", 165, 0.8, "easeOutBack", 0, {scope:this, func:"levelEnded"});
}
function levelEnded() {
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_alpha", 0, 0.8, "easeInQuad", 0.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(missionFailed, "_y", -65, 0.8, "easeInOutBack", 0.5, {scope:this, func:"showFailureScreen"});
intro = stage.attachMovie("IOScreen", "lvlBlacknessOUT" + levelID, stage.getNextHighestDepth(), {_alpha:0});
intro.shaman_mc._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 100, 0.8, "easeInQuad", 0.5);
}
function showFailureScreen() {
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 100, 1, "easeInQuad");
scene.removeMovieClip();
patapons.removeMovieClip();
initScene._visible = true;
var _local2 = new patapon.game.ui.FailureBox(stage, 200, 150, 100, 480, levelID, com.bourre.commands.Delegate.create(this, initRestart), true);
}
function initRestart() {
com.mosesSupposes.fuse.ZigoEngine.doTween(intro.shaman_mc, "_alpha", 0, 0.4, "easeInQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(intro, "_alpha", 0, 1, "easeInQuad", 0.3, {scope:this, func:"restart"});
}
function restart() {
patapon.tracking.TrackingManager.getInstance().trackEvent("game/retry/level" + levelID);
patapon.tracking.TrackingManager.getInstance().skiveTracking("gameRetry", String(levelID));
destroy();
correctSequences = 0;
sequenceCount = -2;
addScenery();
getReady();
}
function seqeuncePast() {
sequenceCount++;
hud.flushDepth();
}
function showEndScreen() {
var _local2 = patapon.LocalisationManager.getInstance().getLangCode();
if (_local2 == "en") {
missionComplete = stage.attachMovie("missionCompleteBar", "mctrumpBar", stage.getNextHighestDepth());
} else {
missionComplete = stage.attachMovie("missionComplete-NOT_EN", "mctrumpBar", stage.getNextHighestDepth());
localisedNodes = patapon.LocalisationManager.getInstance().getLocalisedNodes();
com.skivecreative.text.Formatter.formatTextField(missionComplete.missionComplete_txt, localisedNodes.eol);
}
missionComplete._x = 0;
missionComplete._y = 452;
missionComplete._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 100, 0.8, "easeOutQuad");
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", 165, 0.8, "easeOutBack", 0, {scope:this, func:"proceedToDownloadScreen"});
}
function proceedToDownloadScreen() {
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_alpha", 0, 0.8, "easeInQuad", 1.5);
com.mosesSupposes.fuse.ZigoEngine.doTween(missionComplete, "_y", -65, 0.8, "easeInOutBack", 1.5);
com.skivecreative.queues.DelayedAction.timeDelay(this, fadeToBlack, 2.7);
}
function fadeToBlack() {
blackness = stage.attachMovie("blackness", "trumpBlackness", stage.getNextHighestDepth());
blackness._x = 0;
blackness._y = 0;
blackness._alpha = 0;
com.mosesSupposes.fuse.ZigoEngine.doTween(blackness, "_alpha", 100, 0.8, "linear", 0, {scope:this, func:"end"});
}
function end() {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onLevelComplete));
}
function pataponsWalkOut() {
patapons.gotoAndStop("walk");
patapons.leader_mc.gotoAndPlay("walkNoTrumpet");
com.mosesSupposes.fuse.ZigoEngine.doTween(patapons, "_x", 800, 3.5, "linear");
}
function onBeatHitSuccess(e) {
primaryBehaviour.onBeatHitSuccess(e);
}
function onTrumpetSequenceMissed() {
primaryBehaviour.onSequenceMissed();
seqeuncePast();
}
function onTrumpetSequenceCompleted(e) {
correctSequences++;
seqeuncePast();
if (correctSequences == 13) {
patapon.App.fadeOutSound("BGM 1 SONG", 0.2);
hud.endOfLevel();
sequenceManager.kill();
com.skivecreative.sounds.SoundManager.getInstance().getSound("MISSION COMPLETE").start();
pataponsWalkOut();
com.skivecreative.queues.DelayedAction.timeDelay(this, showEndScreen, 1.5);
}
primaryBehaviour.action();
}
function onSecondarySequence() {
primaryBehaviour.onSecondarySequence();
}
function onEndPointReached() {
hud.endOfLevel();
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
function destroy() {
com.bourre.events.EventBroadcaster.getInstance().removeEventListener(patapon.events.EventList.onBeatHitSuccess, this, onBeatHitSuccess);
hud.destroy();
primaryBehaviour.destroy();
blackness.removeMovieClip();
sequenceManager.destroy();
removeAllListeners();
intro.removeMovieClip();
missionFailed.removeMovieClip();
patapons.removeMovieClip();
scene.removeMovieClip();
initScene.removeMovieClip();
}
}
Symbol 20568 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 20569 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 _local4 = this[_local3];
if (_local4 == oL) {
return(_local3);
}
if (typeof(_local4) == "function") {
if (_local4.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 _local3 = getIndex(oL);
if (_local3 != -1) {
splice(_local3, 1);
return(true);
}
return(false);
}
function isEmpty() {
return(length < 1);
}
function toString() {
return(com.bourre.log.PixlibStringifier.stringify(this));
}
}
Symbol 20570 MovieClip [__Packages.patapon.game.behaviours.MarchingBehaviour] Frame 0
class patapon.game.behaviours.MarchingBehaviour implements com.bourre.transitions.IFrameListener, patapon.game.behaviours.ISequenceBehaviour
{
var stage, patapons, scene, sequenceManager, endPointReached, automateMarching, goalReached, scrollCount, numScrolls, missedID, soundID, icons, pataSounds, LEVEL_1_CLIP_POINT, LEVEL_1_DEAD_ZONE, LEVEL_1_CLIPS, LEVEL_2_CLIP_POINT, LEVEL_2_DEAD_ZONE, LEVEL_2_CLIPS, LEVEL_3_CLIP_POINT, LEVEL_3_DEAD_ZONE, LEVEL_3_CLIPS, onEnterFrameHandler, endPost, endObstacle, currentSound, sound_1, sound_2, sound_3, missedSound_1, missedSound_2;
function MarchingBehaviour () {
}
function init(stage, patapons, scene, sequenceManager) {
this.stage = stage;
this.patapons = patapons;
this.scene = scene;
this.sequenceManager = sequenceManager;
endPointReached = false;
automateMarching = false;
goalReached = false;
scrollCount = 0;
numScrolls = 86;
missedID = 1;
soundID = 0;
icons = new Array();
pataSounds = new Array();
LEVEL_1_CLIP_POINT = scene.LEVEL_1_CLIP_POINT;
LEVEL_1_DEAD_ZONE = scene.LEVEL_1_DEAD_ZONE;
LEVEL_1_CLIPS = scene.LEVEL_1_CLIPS;
LEVEL_2_CLIP_POINT = scene.LEVEL_2_CLIP_POINT;
LEVEL_2_DEAD_ZONE = scene.LEVEL_2_DEAD_ZONE;
LEVEL_2_CLIPS = scene.LEVEL_2_CLIPS;
LEVEL_3_CLIP_POINT = scene.LEVEL_3_CLIP_POINT;
LEVEL_3_DEAD_ZONE = scene.LEVEL_3_DEAD_ZONE;
LEVEL_3_CLIPS = scene.LEVEL_3_CLIPS;
setUpSounds();
}
function action() {
stopPatapons();
startPataponsMarching();
}
function nonAction() {
stopPatapons();
}
function onSequenceMissed() {
patapons.gotoAndStop("stand");
}
function onSecondarySequence() {
}
function onEnterFrame() {
onEnterFrameHandler();
}
function onBeatHitSuccess(e) {
var _local3 = e.getString();
var _local4 = scene.attachMovie("DRUM ICONS", "icon" + iconCount, scene.getNextHighestDepth());
_local4.gotoAndStop(_local3);
var _local5 = {x:patapons.leader_mc._x};
patapons.localToGlobal(_local5);
_local4._x = _local5.x + 20;
_local4._y = 300;
icons.push(_local4);
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_y", 120, 0.8, "linear");
com.mosesSupposes.fuse.ZigoEngine.doTween(_local4, "_alpha", 10, 0.8, "easeInExpo", 0, {scope:this, func:"clearIcon", args:[_local4]});
iconCount++;
}
function overridesAllActions() {
return(null);
}
function setEndPost(endPost, q) {
this.endPost = endPost;
endObstacle = q;
}
function destroy() {
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
currentSound.stop();
}
function setUpSounds() {
sound_1 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PATA 1");
sound_2 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PATA 2");
sound_3 = com.skivecreative.sounds.SoundManager.getInstance().getSound("PATA 3");
pataSounds.push(sound_1, sound_2, sound_1, sound_2, sound_3);
missedSound_1 = com.skivecreative.sounds.SoundManager.getInstance().getSound("BAD SEQUENCE 1");
missedSound_2 = com.skivecreative.sounds.SoundManager.getInstance().getSound("BAD SEQUENCE 2");
}
function playMarchingSound() {
if (!goalReached) {
currentSound = pataSounds[soundID];
currentSound.start();
soundID++;
if (soundID > 4) {
soundID = 0;
}
}
}
function startPataponsMarching() {
com.bourre.transitions.FPSBeacon.getInstance().addFrameListener(this);
onEnterFrameHandler = com.bourre.commands.Delegate.create(this, scroll);
patapons.gotoAndStop("walk");
}
function stopPatapons() {
if (automateMarching) {
scrollCount = 0;
numScrolls = 41;
automateMarching = false;
} else {
scrollCount = 0;
com.bourre.transitions.FPSBeacon.getInstance().removeFrameListener(this);
patapons.gotoAndStop("still");
if (endPointReached) {
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onStartEndSequence));
}
}
}
function scroll() {
if (scrollCount < numScrolls) {
patapon.game.ParallaxScroller.scroll(scene, LEVEL_3_CLIPS, LEVEL_3_CLIP_POINT, LEVEL_3_DEAD_ZONE, 1, 1);
patapon.game.ParallaxScroller.scroll(scene, LEVEL_2_CLIPS, LEVEL_2_CLIP_POINT, LEVEL_2_DEAD_ZONE, 2, 2);
patapon.game.ParallaxScroller.scroll(scene, LEVEL_1_CLIPS, LEVEL_1_CLIP_POINT, LEVEL_1_DEAD_ZONE, 3, 3);
scrollIcons();
if ((endPost != undefined) && (patapons.hitTest(endPost) && (!endPointReached))) {
goalReached = true;
currentSound.stop();
endPointReached = true;
automateMarching = true;
endPost.gotoAndPlay("over");
sequenceManager.kill();
com.bourre.events.EventBroadcaster.getInstance().broadcastEvent(new com.bourre.events.BasicEvent(patapon.events.EventList.onEndPointReached));
}
scrollCount++;
} else {
stopPatapons();
}
}
function scrollIcons() {
var _local2 = 0;
for ( ; _local2 < icons.length ; _local2++) {
var _local3 = icons[_local2];
_local3._x = _local3._x - 3;
_local3.swapDepths(scene.getNextHighestDepth());
}
if (endPost != undefined) {
endPost._x = endPost._x - 3;
endPost.swapDepths(scene.getNextHighestDepth());
endObstacle._x = endObstacle._x - 3;
endObstacle.swapDepths(scene.getNextHighestDepth());
}
}
function clearIcon(icon) {
icon.removeMovieClip();
com.skivecreative.arrays.ArrayTools.remove(icons, icon, 1);
}
static var iconCount = 0;
}
Symbol 61 MovieClip [LEVEL_1_SCENE] Frame 1
var LEVEL_1_CLIP_POINT = ((-level1_mc._width) + 787);
var LEVEL_1_DEAD_ZONE = (-level1_mc._width);
var LEVEL_1_CLIPS = new Array(level1_mc, undefined);
var LEVEL_2_CLIP_POINT = ((-level2_mc._width) + 787);
var LEVEL_2_DEAD_ZONE = (-level2_mc._width);
var LEVEL_2_CLIPS = new Array(level2_mc, undefined);
var LEVEL_3_CLIP_POINT = ((-level3_mc._width) + 787);
var LEVEL_3_DEAD_ZONE = (-(level3_mc._width + 130));
var LEVEL_3_CLIPS = new Array(level3_mc, undefined);
Symbol 70 MovieClip [LEVEL_2_SCENE] Frame 1
var LEVEL_1_CLIP_POINT = ((-level1_mc._width) + 787);
var LEVEL_1_DEAD_ZONE = (-level1_mc._width);
var LEVEL_1_CLIPS = new Array(level1_mc, undefined);
var LEVEL_2_CLIP_POINT = ((-level2_mc._width) + 787);
var LEVEL_2_DEAD_ZONE = (-(level2_mc._width + 400));
var LEVEL_2_CLIPS = new Array(level2_mc, undefined);
var LEVEL_3_CLIP_POINT = ((-level3_mc._width) + 787);
var LEVEL_3_DEAD_ZONE = (-(level3_mc._width + 130));
var LEVEL_3_CLIPS = new Array(level3_mc, undefined);
Symbol 79 MovieClip [LEVEL_3_SCENE] Frame 1
var LEVEL_1_CLIP_POINT = ((-level1_mc._width) + 787);
var LEVEL_1_DEAD_ZONE = (-level1_mc._width);
var LEVEL_1_CLIPS = new Array(level1_mc, undefined);
var LEVEL_2_CLIP_POINT = ((-level2_mc._width) + 787);
var LEVEL_2_DEAD_ZONE = (-(level2_mc._width + 400));
var LEVEL_2_CLIPS = new Array(level2_mc, undefined);
var LEVEL_3_CLIP_POINT = ((-level3_mc._width) + 787);
var LEVEL_3_DEAD_ZONE = (-(level3_mc._width + 130));
var LEVEL_3_CLIPS = new Array(level3_mc, undefined);
Symbol 102 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 9
gotoAndStop ("stand");
Symbol 126 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 126 MovieClip Frame 39
stop();
Symbol 126 MovieClip Frame 50
stop();
Symbol 188 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 188 MovieClip Frame 125
gotoAndPlay ("stand");
Symbol 188 MovieClip Frame 312
stop();
Symbol 188 MovieClip Frame 313
stop();
Symbol 228 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 228 MovieClip Frame 104
gotoAndPlay ("stand");
Symbol 228 MovieClip Frame 211
stop();
Symbol 228 MovieClip Frame 314
stop();
Symbol 247 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 247 MovieClip Frame 125
gotoAndPlay ("stand");
Symbol 247 MovieClip Frame 311
stop();
Symbol 247 MovieClip Frame 312
stop();
Symbol 292 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 292 MovieClip Frame 126
gotoAndPlay ("stand");
Symbol 292 MovieClip Frame 224
gotoAndStop ("waitForAttack");
Symbol 292 MovieClip Frame 294
gotoAndStop ("continueAttack");
Symbol 292 MovieClip Frame 331
gotoAndStop ("stand");
Symbol 292 MovieClip Frame 332
stop();
Symbol 292 MovieClip Frame 346
stop();
Symbol 299 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 299 MovieClip Frame 115
gotoAndPlay ("stand");
Symbol 306 MovieClip Frame 11
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 1
p1_mc.gotoAndPlay("stand");
p2_mc.gotoAndPlay("stand");
p3_mc.gotoAndPlay("stand");
p4_mc.gotoAndPlay("stand");
p5_mc.gotoAndPlay("stand");
p6_mc.gotoAndPlay("stand");
leader_mc.gotoAndPlay("stand");
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 10
p1_mc.gotoAndPlay("walk");
p2_mc.gotoAndPlay("walk");
p3_mc.gotoAndPlay("walk");
p4_mc.gotoAndPlay("walk");
p5_mc.gotoAndPlay("walk");
p6_mc.gotoAndPlay("walk");
leader_mc.gotoAndPlay("walk");
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 20
p1_mc.gotoAndStop("defend");
p2_mc.gotoAndStop("defend");
p3_mc.gotoAndStop("defend");
p4_mc.gotoAndStop("defend");
p5_mc.gotoAndStop("defend");
p6_mc.gotoAndStop("defend");
leader_mc.gotoAndStop("defend");
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 30
p1_mc.gotoAndStop("stand");
p2_mc.gotoAndStop("stand");
p3_mc.gotoAndStop("stand");
p4_mc.gotoAndStop("stand");
p5_mc.gotoAndStop("stand");
p6_mc.gotoAndStop("stand");
leader_mc.gotoAndStop("stand");
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 40
p1_mc.gotoAndStop("stand");
p2_mc.gotoAndStop("stand");
p3_mc.gotoAndStop("stand");
p4_mc.gotoAndStop("stand");
p5_mc.gotoAndStop("stand");
p6_mc.gotoAndStop("stand");
leader_mc.gotoAndStop("stand");
stop();
Symbol 320 MovieClip [LEVEL_1_CHARS] Frame 94
gotoAndPlay ("stand");
Symbol 336 MovieClip Frame 19
gotoAndPlay ("walk");
Symbol 391 MovieClip Frame 7
gotoAndStop ("stand");
Symbol 391 MovieClip Frame 25
gotoAndPlay ("walk");
Symbol 391 MovieClip Frame 126
gotoAndStop ("waitForAttack");
Symbol 391 MovieClip Frame 211
gotoAndStop ("continueAttack");
Symbol 391 MovieClip Frame 256
gotoAndStop ("stand");
Symbol 391 MovieClip Frame 257
stop();
Symbol 391 MovieClip Frame 271
stop();
Symbol 392 MovieClip [LEVEL_2_CHARS] Frame 1
p1_mc.gotoAndPlay("stand");
p2_mc.gotoAndPlay("stand");
p3_mc.gotoAndPlay("stand");
p4_mc.gotoAndPlay("stand");
p5_mc.gotoAndPlay("stand");
p6_mc.gotoAndPlay("stand");
p7_mc.gotoAndPlay("stand");
p8_mc.gotoAndPlay("stand");
p9_mc.gotoAndPlay("stand");
p10_mc.gotoAndPlay("stand");
leader_mc.gotoAndPlay("stand");
stop();
Symbol 392 MovieClip [LEVEL_2_CHARS] Frame 10
p1_mc.gotoAndPlay("walk");
p2_mc.gotoAndPlay("walk");
p3_mc.gotoAndPlay("walk");
p4_mc.gotoAndPlay("walk");
p5_mc.gotoAndPlay("walk");
p6_mc.gotoAndPlay("walk");
p7_mc.gotoAndPlay("walk");
p8_mc.gotoAndPlay("walk");
p9_mc.gotoAndPlay("walk");
p10_mc.gotoAndPlay("walk");
leader_mc.gotoAndPlay("walk");
stop();
Symbol 392 MovieClip [LEVEL_2_CHARS] Frame 20
p1_mc.gotoAndStop("stand");
p2_mc.gotoAndStop("stand");
p3_mc.gotoAndStop("stand");
p4_mc.gotoAndStop("stand");
p5_mc.gotoAndStop("stand");
p6_mc.gotoAndStop("stand");
p7_mc.gotoAndStop("stand");
p8_mc.gotoAndStop("stand");
p9_mc.gotoAndStop("stand");
p10_mc.gotoAndStop("stand");
leader_mc.gotoAndStop("stand");
stop();
Symbol 392 MovieClip [LEVEL_2_CHARS] Frame 30
p1_mc.gotoAndPlay("attack");
p2_mc.gotoAndPlay("attack");
p3_mc.gotoAndPlay("attack");
p4_mc.gotoAndPlay("attack");
p5_mc.gotoAndPlay("attack");
p6_mc.gotoAndPlay("attack");
p7_mc.gotoAndPlay("attack");
p8_mc.gotoAndPlay("attack");
p9_mc.gotoAndPlay("attack");
p10_mc.gotoAndPlay("attack");
leader_mc.gotoAndPlay("attack");
stop();
Symbol 392 MovieClip [LEVEL_2_CHARS] Frame 40
p1_mc.gotoAndPlay("stand");
p2_mc.gotoAndPlay("stand");
p3_mc.gotoAndPlay("retreat");
p4_mc.gotoAndPlay("retreat");
p5_mc.gotoAndPlay("stand");
p6_mc.gotoAndPlay("stand");
p7_mc.gotoAndPlay("stand");
p8_mc.gotoAndPlay("stand");
p9_mc.gotoAndPlay("stand");
p10_mc.gotoAndPlay("retreat");
leader_mc.gotoAndPlay("retreat");
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 19
gotoAndStop ("standAndTrumpet");
Symbol 401 MovieClip Frame 40
gotoAndPlay ("walkNoTrumpet");
Symbol 401 MovieClip Frame 41
stop();
Symbol 401 MovieClip Frame 59
gotoAndStop ("standNoTrumpet");
Symbol 401 MovieClip Frame 80
gotoAndPlay ("walkAndTrumpet");
Symbol 402 MovieClip [LEVEL_3_CHARS] Frame 1
p1_mc.gotoAndPlay("stand");
p2_mc.gotoAndPlay("stand");
p3_mc.gotoAndPlay("stand");
p4_mc.gotoAndPlay("stand");
p5_mc.gotoAndPlay("stand");
p6_mc.gotoAndPlay("stand");
p7_mc.gotoAndPlay("stand");
p8_mc.gotoAndPlay("stand");
p9_mc.gotoAndPlay("stand");
p10_mc.gotoAndPlay("stand");
p11_mc.gotoAndPlay("stand");
stop();
Symbol 402 MovieClip [LEVEL_3_CHARS] Frame 10
p1_mc.gotoAndPlay("walk");
p2_mc.gotoAndPlay("walk");
p3_mc.gotoAndPlay("walk");
p4_mc.gotoAndPlay("walk");
p5_mc.gotoAndPlay("walk");
p6_mc.gotoAndPlay("walk");
p7_mc.gotoAndPlay("walk");
p8_mc.gotoAndPlay("walk");
p9_mc.gotoAndPlay("walk");
p10_mc.gotoAndPlay("walk");
p11_mc.gotoAndPlay("walk");
stop();
Symbol 402 MovieClip [LEVEL_3_CHARS] Frame 20
p1_mc.gotoAndStop("stand");
p2_mc.gotoAndStop("stand");
p3_mc.gotoAndStop("stand");
p4_mc.gotoAndStop("stand");
p5_mc.gotoAndStop("stand");
p6_mc.gotoAndStop("stand");
p7_mc.gotoAndStop("stand");
p8_mc.gotoAndStop("stand");
p9_mc.gotoAndStop("stand");
p10_mc.gotoAndStop("stand");
p11_mc.gotoAndStop("stand");
stop();
Symbol 452 MovieClip [whirlwindAttack] Frame 67
stop();
Symbol 460 MovieClip [end post] Frame 1
stop();
Symbol 460 MovieClip [end post] Frame 23
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 493 MovieClip Frame 1
stop();
Symbol 493 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 518 MovieClip Frame 11
stop();
Symbol 533 MovieClip Frame 16
stop();
Symbol 757 MovieClip [LEVEL_1_END_ANIMATION] Frame 295
gotoAndPlay (190);
Symbol 790 MovieClip Frame 16
stop();
Symbol 795 MovieClip [destroyCastle] Frame 1
stop();
Symbol 795 MovieClip [destroyCastle] Frame 45
stop();
Symbol 795 MovieClip [destroyCastle] Frame 108
stop();
Symbol 795 MovieClip [destroyCastle] Frame 161
stop();
Symbol 795 MovieClip [destroyCastle] Frame 190
stop();
Symbol 795 MovieClip [destroyCastle] Frame 380
stop();
Symbol 972 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 40
stop();
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1073 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 106
stop();
Symbol 1083 MovieClip Frame 100
stop();
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 40
stop();
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1220 MovieClip Frame 1
stop();
Symbol 1220 MovieClip Frame 2
stop();
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1225 MovieClip Frame 2
stop();
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1230 MovieClip Frame 2
stop();
Symbol 1251 MovieClip Frame 100
stop();
Symbol 1264 MovieClip Frame 1
stop();
Symbol 1264 MovieClip Frame 2
stop();
Symbol 1286 MovieClip Frame 100
stop();
Symbol 1310 MovieClip Frame 1
stop();
Symbol 1310 MovieClip Frame 22
gotoAndPlay ("walk");
Symbol 1312 MovieClip Frame 1
stop();
Symbol 1312 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1325 MovieClip Frame 1
stop();
Symbol 1325 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1327 MovieClip Frame 1
stop();
Symbol 1327 MovieClip Frame 30
gotoAndPlay ("walk");
Symbol 1371 MovieClip Frame 16
gotoAndPlay ("walk");
Symbol 1374 MovieClip Frame 22
gotoAndPlay ("walk");
Symbol 1382 MovieClip Frame 19
gotoAndPlay ("walk");
Symbol 1384 MovieClip Frame 22
gotoAndPlay ("walk");
Symbol 1402 MovieClip Frame 1
duplicateMovieClip ("tail", "t" + f, f);
setProperty("t" + f, _rotation , _rotation + (Math.random() * 10));
setProperty("t" + f, _xscale , Math.random() * 80);
setProperty("t" + f, _yscale , Math.random() * 80);
f = f + 1;
Symbol 1402 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1407 MovieClip Frame 40
stop();
Symbol 1408 MovieClip Frame 41
c = 1;
while (c < 70) {
duplicateMovieClip ("f", "f" + c, c);
setProperty("f" + c, _rotation , Math.random() * 360);
setProperty("f" + c, _xscale , Math.random() * 100);
setProperty("f" + c, _yscale , Math.random() * 100);
c = c + 1;
}
Symbol 1408 MovieClip Frame 80
stop();
Symbol 1413 MovieClip Frame 40
stop();
Symbol 1414 MovieClip Frame 1
b = 1;
while (b < 40) {
duplicateMovieClip ("Firework2", "f2" + b, b);
setProperty("f2" + b, _rotation , Math.random() * 360);
b = b + 1;
}
Symbol 1415 MovieClip Frame 80
stop();
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 10
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 10
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 15
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 15
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 20
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 20
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 25
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 25
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 32
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 32
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 37
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1408 MovieClip in Symbol 1416 MovieClip Frame 37
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 50
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 50
onClipEvent (load) {
setProperty(this, _x , Math.random() * 550);
setProperty(this, _y , 250 + (Math.random() * 100));
}
Symbol 1434 MovieClip Frame 22
gotoAndPlay ("walk");
Symbol 1551 MovieClip Frame 551
gotoAndPlay ("dance");