Combined Code
frame 1 {
stop();
var TOTAL_SCENES = 3;
var OPENING_FRAMES = 2;
var BGM_Play = true;
var voice = new Sound(this);
var BGM = new Sound(this);
var BGM_isPlaying = false;
var RA_Glasses = true;
var AJ_Hat = true;
var TS_Wings = true;
var cupcakeFlavor = Math.ceil(Math.random() * 7);
var allEndingsWatched = false;
var AJ = false;
var FS = false;
var PP = false;
var RD = false;
var RA = false;
var TS = false;
var VO_String;
switch (Math.ceil(Math.random() * 6)) {
case 1:
AJ = true;
VO_String = 'AJ';
break;
case 2:
FS = true;
VO_String = 'FS';
break;
case 3:
PP = true;
VO_String = 'PP';
break;
case 4:
RD = true;
VO_String = 'RD';
break;
case 5:
RA = true;
VO_String = 'RA';
break;
default:
TS = true;
VO_String = 'TS';
}
}
movieClip 11 {
}
movieClip 14 {
}
movieClip 19 {
}
button 21 {
on (release) {
getURL('http://www.tiarawhy.com', '_blank');
}
}
movieClip 30 {
frame 40 {
stop();
}
}
movieClip 40 {
}
button 41 {
on (release) {
startMovie(true);
}
}
button 42 {
on (release) {
startMovie(true);
}
}
movieClip 43 {
frame 1 {
function timerHandler() {
if (!loadingComplete) {
var v4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * v4;
if (v4 >= 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop('loaded');
}
return undefined;
}
}
dt = getTimer() - time;
time += dt;
frameAccum += dt;
var v3 = 0;
for (;;) {
if (!(frameAccum >= FRAME_TIME && v3 < MAX_FRAME_SKIP)) break;
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
frameAccum -= FRAME_TIME;
v3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return undefined;
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof clip[childName] == 'movieclip') {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie(begin) {
clearInterval(intervalId);
if (begin) {
_root.gotoAndPlay(_root.OPENING_FRAMES + 1);
}
}
_root.stop();
stop();
var FRAME_TIME = 33.33333333333334;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, 'timerHandler', FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
}
// unknown tag 88 length 69
// unknown tag 88 length 130
movieClip 57 {
frame 1 {
stop();
}
}
frame 3 {
_quality = 'HIGH';
c = 3;
stop();
if (BGM_Play && !BGM_isPlaying) {
BGM.attachSound('M3');
BGM.start(0, 9999);
BGM_isPlaying = true;
}
}
movieClip 60 {
}
movieClip 66 {
}
movieClip 77 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 96 {
}
movieClip 100 {
}
movieClip 101 {
instance of movieClip 96 {
onClipEvent (load) {
if (_root.allEndingsWatched) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.allEndingsWatched) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 100 {
onClipEvent (load) {
if (_root.allEndingsWatched) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.allEndingsWatched) {
this._visible = false;
} else {
this._visible = true;
}
}
}
}
movieClip 103 {
}
movieClip 106 {
}
movieClip 126 {
}
movieClip 145 {
}
// unknown tag 88 length 192
movieClip 150 {
}
movieClip 152 {
}
movieClip 154 {
}
movieClip 156 {
}
movieClip 163 {
}
movieClip 166 {
}
movieClip 169 {
}
movieClip 172 {
}
movieClip 175 {
}
movieClip 179 {
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 103 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance hornNoMagic of movieClip 106 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance hornMagic of movieClip 126 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = true;
} else {
this._visible = false;
}
}
}
frame 76 {
var next_scene = _root._currentFrame + 1;
if (!_root.linearMode) {
next_scene = Math.ceil(Math.random() * _root.TOTAL_SCENES) + _root.OPENING_FRAMES;
}
if (next_scene == _root._currentFrame) {
++next_scene;
}
if (next_scene == _root.TOTAL_SCENES + _root.OPENING_FRAMES + 1) {
next_scene = _root.OPENING_FRAMES + 1;
}
_root.gotoAndPlay(next_scene);
}
}
instance of movieClip 179 {
onClipEvent (load) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 191 {
}
movieClip 198 {
}
movieClip 210 {
instance of movieClip 191 {
onClipEvent (load) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
}
}
instance of movieClip 210 {
onClipEvent (load) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 228 {
}
movieClip 235 {
}
instance of movieClip 235 {
onClipEvent (load) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 249 {
}
movieClip 251 {
}
movieClip 253 {
}
movieClip 255 {
}
movieClip 257 {
}
movieClip 259 {
}
movieClip 261 {
}
movieClip 262 {
instance ccStraw of movieClip 249 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 7) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 7) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccLime of movieClip 251 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 6) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 6) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccCherry of movieClip 253 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 5) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 5) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccBlue of movieClip 255 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 4) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 4) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccBlack of movieClip 257 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 3) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 3) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccBan of movieClip 259 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 2) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 2) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance ccApple of movieClip 261 {
onClipEvent (load) {
if (_root.cupcakeFlavor == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.cupcakeFlavor == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
movieClip 264 {
}
movieClip 283 {
}
movieClip 284 {
instance of movieClip 264 {
onClipEvent (enterFrame) {
_root.cupcakeFlavor = Math.ceil(Math.random() * 7);
}
}
instance of movieClip 264 {
onClipEvent (enterFrame) {
_root.cupcakeFlavor = Math.ceil(Math.random() * 7);
}
}
instance of movieClip 264 {
onClipEvent (enterFrame) {
_root.cupcakeFlavor = Math.ceil(Math.random() * 7);
}
}
instance of movieClip 264 {
onClipEvent (enterFrame) {
_root.cupcakeFlavor = Math.ceil(Math.random() * 7);
}
}
}
instance of movieClip 284 {
onClipEvent (load) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 305 {
}
movieClip 312 {
}
instance of movieClip 312 {
onClipEvent (load) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 326 {
}
movieClip 333 {
}
movieClip 340 {
instance of movieClip 326 {
onClipEvent (load) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
instance of movieClip 340 {
onClipEvent (load) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
}
button 343 {
on (release) {
AJ = false;
FS = false;
PP = false;
RD = false;
RA = true;
VO_String = 'RA1';
TS = false;
voice.attachSound(VO_String);
voice.start();
}
}
button 347 {
on (release) {
AJ = false;
FS = false;
PP = false;
RD = true;
VO_String = 'RD1';
RA = false;
TS = false;
voice.attachSound(VO_String);
voice.start();
}
}
button 349 {
on (release) {
AJ = true;
VO_String = 'AJ1';
FS = false;
PP = false;
RD = false;
RA = false;
TS = false;
voice.attachSound(VO_String);
voice.start();
}
}
button 352 {
on (release) {
AJ = false;
FS = true;
VO_String = 'FS1';
PP = false;
RD = false;
RA = false;
TS = false;
voice.attachSound(VO_String);
voice.start();
}
}
button 354 {
on (release) {
AJ = false;
FS = false;
PP = false;
RD = false;
RA = false;
TS = true;
VO_String = 'TS1';
voice.attachSound(VO_String);
voice.start();
}
}
button 356 {
on (release) {
AJ = false;
FS = false;
PP = true;
VO_String = 'PP1';
RD = false;
RA = false;
TS = false;
voice.attachSound(VO_String);
voice.start();
}
}
button 361 {
on (release) {
_root.BGM_Play = false;
_root.BGM_isPlaying = false;
_root.BGM.stop();
play();
}
}
button 362 {
on (release) {
_root.BGM_Play = true;
_root.BGM_isPlaying = true;
_root.BGM.start(0, 100);
play();
}
}
movieClip 363 {
frame 1 {
if (_root.BGM_Play) {
stop();
}
}
frame 2 {
if (!_root.BGM_Play) {
stop();
}
}
}
frame 4 {
stop();
}
movieClip 377 {
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 103 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance hornNoMagic of movieClip 106 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance hornMagic of movieClip 126 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = true;
} else {
this._visible = false;
}
}
}
frame 75 {
var next_scene = _root._currentFrame + 1;
if (!_root.linearMode) {
next_scene = Math.ceil(Math.random() * _root.TOTAL_SCENES) + _root.OPENING_FRAMES;
}
if (next_scene == _root._currentFrame) {
++next_scene;
}
if (next_scene == _root.TOTAL_SCENES + _root.OPENING_FRAMES + 1) {
next_scene = _root.OPENING_FRAMES + 1;
}
_root.gotoAndPlay(next_scene);
}
}
instance of movieClip 377 {
onClipEvent (load) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 378 {
instance of movieClip 191 {
onClipEvent (load) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
}
}
instance of movieClip 378 {
onClipEvent (load) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 379 {
}
instance of movieClip 379 {
onClipEvent (load) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 380 {
}
instance of movieClip 380 {
onClipEvent (load) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 381 {
}
instance of movieClip 381 {
onClipEvent (load) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 382 {
instance of movieClip 326 {
onClipEvent (load) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
instance of movieClip 382 {
onClipEvent (load) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
}
frame 5 {
stop();
}
movieClip 385 {
}
movieClip 386 {
}
movieClip 416 {
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 66 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance of movieClip 103 {
onClipEvent (load) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS & _root.TS_Wings) {
this._visible = true;
} else {
this._visible = false;
}
}
}
instance hornNoMagic of movieClip 106 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = false;
} else {
this._visible = true;
}
}
}
instance hornMagic of movieClip 126 {
onClipEvent (load) {
if (_root._currentframe == 11 | _root._currentframe == 13) {
this._visible = true;
} else {
this._visible = false;
}
}
}
frame 75 {
var next_scene = _root._currentFrame + 1;
if (!_root.linearMode) {
next_scene = Math.ceil(Math.random() * _root.TOTAL_SCENES) + _root.OPENING_FRAMES;
}
if (next_scene == _root._currentFrame) {
++next_scene;
}
if (next_scene == _root.TOTAL_SCENES + _root.OPENING_FRAMES + 1) {
next_scene = _root.OPENING_FRAMES + 1;
}
_root.gotoAndPlay(next_scene);
}
}
instance of movieClip 416 {
onClipEvent (load) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.TS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 419 {
instance of movieClip 191 {
onClipEvent (load) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA & _root.RA_Glasses) {
this._visible = true;
} else {
this._visible = false;
}
if (_root._currentframe == 19) {
this._visible = false;
}
}
}
}
instance of movieClip 419 {
onClipEvent (load) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RA) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 422 {
}
instance of movieClip 422 {
onClipEvent (load) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.RD) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 425 {
}
instance of movieClip 425 {
onClipEvent (load) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.PP) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 428 {
}
instance of movieClip 428 {
onClipEvent (load) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.FS) {
this._visible = true;
} else {
this._visible = false;
}
}
}
movieClip 431 {
instance of movieClip 326 {
onClipEvent (load) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ & _root.AJ_Hat) {
this._visible = true;
} else {
this._visible = false;
}
}
}
}
instance of movieClip 431 {
onClipEvent (load) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.AJ) {
this._visible = true;
} else {
this._visible = false;
}
}
}