Combined Code
movieClip 4 {
}
movieClip 7 {
}
movieClip 10 savedMusicHolder {
#initclip
Object.registerClass('savedMusicHolder', com.clubpenguin.games.beatbox.menus.MenuItemListHolder);
#endinitclip
}
movieClip 11 DeleteSongHolder {
#initclip
Object.registerClass('DeleteSongHolder', com.clubpenguin.games.beatbox.menus.MenuItemListHolder);
#endinitclip
}
movieClip 13 DeleteSongMC {
#initclip
Object.registerClass('DeleteSongMC', com.clubpenguin.games.beatbox.menus.MenuItemListHolder);
#endinitclip
}
// unknown tag 88 length 65
movieClip 18 Delete Mix Scroller {
#initclip
Object.registerClass('Delete Mix Scroller', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 23 {
}
movieClip 24 closeButtonBackground {
#initclip
Object.registerClass('closeButtonBackground', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 25 deleteMix {
#initclip
Object.registerClass('deleteMix', com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix);
#endinitclip
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 32 buttonBackground {
#initclip
Object.registerClass('buttonBackground', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
// unknown tag 88 length 69
movieClip 39 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 46 {
}
movieClip 48 mixesFull {
#initclip
Object.registerClass('mixesFull', com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull);
#endinitclip
}
movieClip 55 mixSaved {
#initclip
Object.registerClass('mixSaved', com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved);
#endinitclip
}
movieClip 60 {
}
movieClip 64 nameMix {
#initclip
Object.registerClass('nameMix', com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix);
#endinitclip
}
movieClip 66 {
}
movieClip 76 {
}
movieClip 80 {
}
movieClip 83 {
}
movieClip 87 {
}
movieClip 89 {
frame 110 {
stop();
}
}
movieClip 90 {
}
movieClip 94 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 102 {
frame 95 {
stop();
}
}
movieClip 104 {
}
movieClip 106 {
frame 110 {
stop();
}
}
movieClip 108 {
}
movieClip 110 {
frame 110 {
stop();
}
}
movieClip 112 {
}
movieClip 114 {
frame 110 {
stop();
}
}
movieClip 116 {
}
movieClip 118 {
}
movieClip 119 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 122 {
frame 110 {
stop();
}
}
movieClip 127 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 128 {
}
movieClip 129 {
frame 1 {
stop();
}
}
movieClip 131 oopsMessage {
#initclip
Object.registerClass('oopsMessage', com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage);
#endinitclip
}
movieClip 136 {
}
movieClip 137 {
frame 1 {
stop();
}
}
movieClip 142 {
}
// unknown tag 88 length 68
movieClip 147 {
frame 1 {
playLabel.text = com.clubpenguin.util.LocaleText.getText('play_track');
}
}
button 149 {
on (release) {
_parent._parent._parent._parent._parent.launchSoundbank();
}
}
movieClip 150 {
}
movieClip 151 {
frame 1 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
}
button 152 {
on (release) {
_parent._parent._parent._parent.previousTrack();
}
}
movieClip 153 {
}
button 154 {
on (release) {
_parent._parent._parent._parent.nextTrack();
}
}
movieClip 155 {
}
movieClip 160 {
frame 1 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 2 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 3 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 4 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 5 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 6 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 7 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 8 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 9 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 10 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 11 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 12 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 13 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 14 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 2;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
stop();
_parent.nextFrame();
}
}
movieClip 162 {
frame 1 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 2 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 3 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 4 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 5 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 6 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 7 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 8 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 9 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 10 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 11 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 12 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
}
frame 13 {
var recordLabelMCs = [disk1_mc.label_mc, disk2_mc.label_mc, disk3_mc.label_mc, disk4_mc.label_mc];
var recordLabelMCColours = new Array();
var recordLabelColours = _parent._parent._parent._parent.recordLabelColours;
var allTracks = _parent._parent._parent._parent.allTracks;
var currentTrack = _parent._parent._parent._parent.currentTrack;
var currentSong = currentTrack % allTracks.length;
var TOTAL_SONGS = allTracks.length;
var currentSlot = currentSong + TOTAL_SONGS - 1;
var i = recordLabelMCs.length - 1;
while (i >= 0) {
if (currentSlot >= TOTAL_SONGS) {
currentSlot -= TOTAL_SONGS;
}
recordLabelMCColours[i] = new Color(recordLabelMCs[i]);
recordLabelMCColours[i].setRGB(recordLabelColours[currentSlot]);
++currentSlot;
--i;
}
stop();
_parent.nextFrame();
}
}
button 164 {
on (release) {
_parent._parent._parent._parent.launchSoundbank();
}
}
movieClip 165 {
}
movieClip 166 {
frame 1 {
stop();
}
frame 3 {
stop();
}
frame 5 {
stop();
}
frame 6 {
var labelColour = new Color(animation.label_mc);
labelColour.setRGB(15615044);
}
frame 7 {
stop();
}
}
movieClip 167 {
}
movieClip 170 selectMix {
#initclip
Object.registerClass('selectMix', com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix);
#endinitclip
}
movieClip 175 {
}
movieClip 178 {
}
movieClip 181 BTNplay {
#initclip
Object.registerClass('BTNplay', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 186 {
}
movieClip 188 {
}
movieClip 191 BTNpause {
#initclip
Object.registerClass('BTNpause', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 192 {
frame 1 {
stop();
}
}
movieClip 193 save {
#initclip
Object.registerClass('save', com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave);
#endinitclip
}
movieClip 194 menuSystem {
#initclip
Object.registerClass('menuSystem', com.clubpenguin.games.beatbox.menus.MenuSystem);
#endinitclip
}
movieClip 197 scroll button right {
#initclip
Object.registerClass('scroll button right', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 198 buttonCircleGray {
#initclip
Object.registerClass('buttonCircleGray', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 210 {
}
movieClip 215 {
}
movieClip 218 {
}
movieClip 221 {
}
movieClip 222 menuListItem {
#initclip
Object.registerClass('menuListItem', com.clubpenguin.games.beatbox.menus.MenuListItem);
#endinitclip
}
movieClip 224 Main menu scroll right {
#initclip
Object.registerClass('Main menu scroll right', com.clubpenguin.games.beatbox.util.CustomButton);
#endinitclip
frame 1 {
stop();
}
}
movieClip 227 {
}
movieClip 232 {
}
movieClip 236 {
}
movieClip 237 {
}
movieClip 241 {
}
movieClip 242 {
}
movieClip 243 {
}
movieClip 248 {
}
movieClip 249 mySavedMixes {
#initclip
Object.registerClass('mySavedMixes', com.clubpenguin.games.beatbox.menus.MenuListRenderer);
#endinitclip
instance songListMC of movieClip 237 {
}
}
movieClip 250 {
}
movieClip 252 {
}
movieClip 254 {
}
movieClip 255 {
}
movieClip 257 {
}
movieClip 259 {
}
movieClip 261 {
}
movieClip 263 {
}
movieClip 265 {
}
movieClip 266 {
}
movieClip 267 {
}
movieClip 268 {
}
movieClip 269 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 278 {
}
movieClip 280 {
}
movieClip 281 {
}
movieClip 284 {
}
movieClip 290 {
}
movieClip 296 {
}
movieClip 297 {
}
movieClip 301 {
}
movieClip 307 {
}
movieClip 309 {
}
// unknown tag 88 length 68
movieClip 314 {
}
movieClip 320 {
}
movieClip 322 {
}
movieClip 325 {
}
movieClip 327 {
}
movieClip 328 {
}
movieClip 329 {
}
movieClip 341 {
}
movieClip 345 {
}
movieClip 348 {
}
movieClip 350 {
}
movieClip 352 {
}
movieClip 353 SongChooser_mc {
#initclip
Object.registerClass('SongChooser_mc', com.clubpenguin.games.beatbox.SongChooser);
#endinitclip
frame 1 {
}
}
frame 1 {
test_txt.text = 'THIS IS NOT TEST';
}
movieClip 354 __Packages.com.clubpenguin.util.LocaleText {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.LocaleText) {
var v1 = function () {};
com.clubpenguin.util.LocaleText = v1;
var v2 = v1.prototype;
v1.init = function ($parent, $languageID, $movieLocation, $versionNumber, $useLoader) {
com.clubpenguin.util.LocaleText.debugTrace('initialise locale text');
com.clubpenguin.util.LocaleText.ready = false;
if (com.clubpenguin.util.LocaleText.eventSource == undefined) {
com.clubpenguin.util.LocaleText.eventSource = new Object();
mx.events.EventDispatcher.initialize(com.clubpenguin.util.LocaleText.eventSource);
}
if ($useLoader == undefined) {
$useLoader = false;
}
if ($languageID == undefined) {
$languageID = com.clubpenguin.util.LocaleText.getLocaleID();
}
com.clubpenguin.util.LocaleText.localeID = $languageID;
var v1 = com.clubpenguin.util.LocaleText.getLocale(com.clubpenguin.util.LocaleText.localeID);
com.clubpenguin.util.LocaleText.locale = com.clubpenguin.util.LocaleText.getLocale(com.clubpenguin.util.LocaleText.localeID);
if ($versionNumber == undefined) {
if (com.clubpenguin.util.LocaleText.localeVersion == undefined) {
v1 = com.clubpenguin.util.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.util.LocaleText.LANG_LOC_FILENAME + com.clubpenguin.util.LocaleText.LANG_LOC_FILETYPE;
} else {
v1 = com.clubpenguin.util.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.util.LocaleText.LANG_LOC_FILENAME + com.clubpenguin.util.LocaleText.localeVersion + com.clubpenguin.util.LocaleText.LANG_LOC_FILETYPE;
}
} else {
v1 = com.clubpenguin.util.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.util.LocaleText.LANG_LOC_FILENAME + $versionNumber + com.clubpenguin.util.LocaleText.LANG_LOC_FILETYPE;
}
com.clubpenguin.util.LocaleText.localeDataMC = $parent.createEmptyMovieClip('localeDataMC', $parent.getNextHighestDepth());
var v2 = new Object();
var v3 = new MovieClipLoader();
if ($languageID == com.clubpenguin.util.LocaleText.LANG_ID_LOADERROR) {
v2.onLoadError = function ($targetMC, $errorMessage) {
com.clubpenguin.util.LocaleText.debugTrace('load error: ' + $errorMessage, com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
com.clubpenguin.util.LocaleText.handleLoadComplete($targetMC);
};
} else {
v2.onLoadError = function ($targetMC) {
com.clubpenguin.util.LocaleText.init($targetMC, com.clubpenguin.util.LocaleText.LANG_ID_LOADERROR);
};
}
if ($movieLocation != undefined) {
v1 = $movieLocation + v1;
}
if ($useLoader) {
v2.onLoadProgress = function ($targetMC, $loadProgress, $loadTotal) {
com.clubpenguin.util.Loader.handleLoadProgress($targetMC, $loadProgress, $loadTotal);
};
v2.onLoadInit = function ($targetMC) {
com.clubpenguin.util.LocaleText.handleLoadComplete($targetMC);
com.clubpenguin.util.Loader.handleLoadComplete($targetMC);
};
com.clubpenguin.util.LocaleText.debugTrace('load filename ' + v1 + ' using Loader class');
v3.addListener(v2);
v3.loadClip(v1, com.clubpenguin.util.LocaleText.localeDataMC);
com.clubpenguin.util.Loader.addProgressObject(v3.getProgress(com.clubpenguin.util.LocaleText.localeDataMC));
} else {
v2.onLoadInit = function ($targetMC) {
com.clubpenguin.util.LocaleText.handleLoadComplete($targetMC);
};
com.clubpenguin.util.LocaleText.debugTrace('load filename ' + v1 + ' standalone');
v3.addListener(v2);
v3.loadClip(v1, com.clubpenguin.util.LocaleText.localeDataMC);
}
};
v1.handleLoadComplete = function ($data) {
com.clubpenguin.util.LocaleText.debugTrace('locale text loaded OK!');
com.clubpenguin.util.LocaleText.dataArray = new Array();
for (var v2 in $data.localeText) {
com.clubpenguin.util.LocaleText.dataArray[$data.localeText[v2].id] = $data.localeText[v2].value;
com.clubpenguin.util.LocaleText.debugTrace('dataArray[' + $data.localeText[v2].id + '] = ' + $data.localeText[v2].value);
}
var v3 = new Object();
v3.target = com.clubpenguin.util.LocaleText;
v3.type = com.clubpenguin.util.LocaleText.EVENT_LOAD_COMPLETED;
com.clubpenguin.util.LocaleText.ready = true;
com.clubpenguin.util.LocaleText.eventSource.dispatchEvent(v3);
com.clubpenguin.util.LocaleText.debugTrace('dispatched LOAD_COMPLETED event');
};
v1.addEventListener = function ($listener) {
if (com.clubpenguin.util.LocaleText.eventSource == undefined) {
com.clubpenguin.util.LocaleText.eventSource = new Object();
mx.events.EventDispatcher.initialize(com.clubpenguin.util.LocaleText.eventSource);
}
com.clubpenguin.util.LocaleText.eventSource.addEventListener(com.clubpenguin.util.LocaleText.EVENT_LOAD_COMPLETED, $listener);
};
v1.removeEventListener = function ($listener) {
com.clubpenguin.util.LocaleText.eventSource.removeEventListener(com.clubpenguin.util.Loader.EVENT_LOAD_COMPLETED, $listener);
};
v1.getText = function ($stringID) {
if (!com.clubpenguin.util.LocaleText.ready) {
com.clubpenguin.util.LocaleText.debugTrace('getText called when not ready', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return '[id:' + $stringID + ' not ready]';
return com.clubpenguin.util.LocaleText.dataArray[$stringID];
}
if (com.clubpenguin.util.LocaleText.dataArray[$stringID] == undefined) {
com.clubpenguin.util.LocaleText.debugTrace('load error for string: ' + $stringID, com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
return '[id:' + $stringID + ' undefined]';
}
return com.clubpenguin.util.LocaleText.dataArray[$stringID];
};
v1.localizeField = function ($field, $stringID, $verticalAlign, $minFontSize) {
$field.text = com.clubpenguin.util.LocaleText.getText($stringID);
com.clubpenguin.text.TextResize.scaleDown($field, $verticalAlign, $minFontSize);
};
v1.getTextReplaced = function ($stringID, $replacements) {
var v2 = com.clubpenguin.util.LocaleText.getText($stringID);
var v3 = $replacements.length;
var v1 = 0;
while (v1 < v3) {
v2 = (v2.split('%' + v1)).join($replacements[v1]);
++v1;
}
return v2;
};
v1.getLocale = function ($localeID) {
switch ($localeID) {
com.clubpenguin.util.LocaleText.debugTrace('unknown language id: ' + $localeID + ', using default language instead', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
case com.clubpenguin.util.LocaleText.LANG_ID_EN:
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
case com.clubpenguin.util.LocaleText.LANG_ID_PT:
return com.clubpenguin.util.LocaleText.LANG_LOC_PT;
case com.clubpenguin.util.LocaleText.LANG_ID_FR:
return com.clubpenguin.util.LocaleText.LANG_LOC_FR;
case com.clubpenguin.util.LocaleText.LANG_ID_ES:
return com.clubpenguin.util.LocaleText.LANG_LOC_ES;
case com.clubpenguin.util.LocaleText.LANG_ID_DE:
return com.clubpenguin.util.LocaleText.LANG_LOC_DE;
case com.clubpenguin.util.LocaleText.LANG_ID_RU:
return com.clubpenguin.util.LocaleText.LANG_LOC_RU;
case com.clubpenguin.util.LocaleText.LANG_ID_LOADERROR:
com.clubpenguin.util.LocaleText.debugTrace('load error occurred! reload using default language', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
}
com.clubpenguin.util.LocaleText.debugTrace('unknown language id: ' + $localeID + ', using default language instead', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
return com.clubpenguin.util.LocaleText.LANG_LOC_EN;
};
v1.setLocaleVersion = function ($localeVersion) {
com.clubpenguin.util.LocaleText.localeVersion = $localeVersion;
};
v1.setLocaleID = function ($localeID) {
com.clubpenguin.util.LocaleText.localeID = $localeID;
};
v1.getLocaleID = function () {
return com.clubpenguin.util.LocaleText.localeID;
};
v1.isReady = function () {
return com.clubpenguin.util.LocaleText.ready;
};
v1.attachLocaleClip = function ($stringID, $target) {
var v1 = com.clubpenguin.util.LocaleText.localeDataMC.attachMovie($stringID, $stringID + '_mc', com.clubpenguin.util.LocaleText.localeDataMC.getNextHighestDepth());
var v2 = new flash.display.BitmapData(v1._width, v1._height, true, 0);
v2.draw(v1, new flash.geom.Matrix(), new flash.geom.ColorTransform(), 'normal');
$target.attachBitmap(v2, $target.getNextHighestDepth());
v1.removeMovieClip();
};
v1.getGameDirectory = function ($url) {
if ($url == undefined) {
if (com.clubpenguin.util.LocaleText.localeDirectoryURL == undefined) {
com.clubpenguin.util.LocaleText.debugTrace('using cached locale directory url that hasn\'t been set yet!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
}
return com.clubpenguin.util.LocaleText.localeDirectoryURL;
}
var v2 = $url.split('/');
var v3 = '';
var v1 = 0;
while (v1 < v2.length - 1) {
v3 += v2[v1] + '/';
++v1;
}
com.clubpenguin.util.LocaleText.localeDirectoryURL = v3;
return com.clubpenguin.util.LocaleText.localeDirectoryURL;
};
v1.debugTrace = function ($message, $priority) {};
v1.EVENT_LOAD_COMPLETED = 'onLoadComplete';
v1.LANG_ID_LOADERROR = 0;
v1.LANG_ID_EN = 1;
v1.LANG_ID_PT = 2;
v1.LANG_ID_FR = 3;
v1.LANG_ID_ES = 4;
v1.LANG_ID_DE = 5;
v1.LANG_ID_RU = 6;
v1.LANG_ID_DEFAULT = com.clubpenguin.util.LocaleText.LANG_ID_EN;
v1.LANG_LOC_FILENAME = 'locale';
v1.LANG_LOC_FILETYPE = '.swf';
v1.LANG_LOC_DIRECTORY = 'lang';
v1.LANG_LOC_EN = 'en';
v1.LANG_LOC_PT = 'pt';
v1.LANG_LOC_FR = 'fr';
v1.LANG_LOC_ES = 'es';
v1.LANG_LOC_DE = 'de';
v1.LANG_LOC_RU = 'ru';
v1.localeVersion = undefined;
v1.localeID = 0;
v1.ready = false;
ASSetPropFlags(com.clubpenguin.util.LocaleText.prototype, null, 1);
}
#endinitclip
}
movieClip 355 __Packages.mx.events.EventDispatcher {
#initclip
if (!_global.mx) {
_global.mx = new Object();
}
if (!_global.mx.events) {
_global.mx.events = new Object();
}
if (!_global.mx.events.EventDispatcher) {
var v1 = function () {};
mx.events.EventDispatcher = v1;
var v2 = v1.prototype;
v1._removeEventListener = function (queue, event, handler) {
if (queue != undefined) {
var v4 = queue.length;
var v1;
v1 = 0;
while (v1 < v4) {
var v2 = queue[v1];
if (v2 == handler) {
queue.splice(v1, 1);
return undefined;
}
++v1;
}
}
};
v1.initialize = function (object) {
if (mx.events.EventDispatcher._fEventDispatcher == undefined) {
mx.events.EventDispatcher._fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = mx.events.EventDispatcher._fEventDispatcher.addEventListener;
object.removeEventListener = mx.events.EventDispatcher._fEventDispatcher.removeEventListener;
object.dispatchEvent = mx.events.EventDispatcher._fEventDispatcher.dispatchEvent;
object.dispatchQueue = mx.events.EventDispatcher._fEventDispatcher.dispatchQueue;
};
v2.dispatchQueue = function (queueObj, eventObj) {
var v7 = '__q_' + eventObj.type;
var v4 = queueObj[v7];
if (v4 != undefined) {
var v5;
for (v5 in v4) {
var v1 = v4[v5];
var v3 = typeof v1;
if (v3 == 'object' || v3 == 'movieclip') {
if (v1.handleEvent != undefined) {
v1.handleEvent(eventObj);
}
if (v1[eventObj.type] != undefined) {
if (mx.events.EventDispatcher.exceptions[eventObj.type] == undefined) {
v1[eventObj.type](eventObj);
}
}
} else {
v1.apply(queueObj, [eventObj]);
}
}
}
};
v2.dispatchEvent = function (eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + 'Handler'](eventObj);
this.dispatchQueue(this, eventObj);
};
v2.addEventListener = function (event, handler) {
var v3 = '__q_' + event;
if (this[v3] == undefined) {
this[v3] = new Array();
}
_global.ASSetPropFlags(this, v3, 1);
mx.events.EventDispatcher._removeEventListener(this[v3], event, handler);
this[v3].push(handler);
};
v2.removeEventListener = function (event, handler) {
var v2 = '__q_' + event;
mx.events.EventDispatcher._removeEventListener(this[v2], event, handler);
};
v1._fEventDispatcher = undefined;
v1.exceptions = {'move': 1, 'draw': 1, 'load': 1};
ASSetPropFlags(mx.events.EventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 356 __Packages.com.clubpenguin.util.Reporting {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.Reporting) {
var v1 = function () {};
com.clubpenguin.util.Reporting = v1;
var v2 = v1.prototype;
v1.addDebugOutput = function (debugText) {
if (com.clubpenguin.util.Reporting.output == undefined) {
com.clubpenguin.util.Reporting.output = new Array();
}
com.clubpenguin.util.Reporting.output.push(debugText);
};
v1.setDebugLevel = function (level) {
if (com.clubpenguin.util.Reporting.debugLevel > com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR || com.clubpenguin.util.Reporting.debugLevel < com.clubpenguin.util.Reporting.DEBUGLEVEL_VERBOSE) {
com.clubpenguin.util.Reporting.debugTrace('(Reporting) incorrect debug level given in setDebugLevel: ' + level, com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
} else {
com.clubpenguin.util.Reporting.debugLevel = level;
}
};
v1.debugTrace = function (message, priority) {
if (priority == undefined) {
priority = com.clubpenguin.util.Reporting.DEBUGLEVEL_VERBOSE;
}
if (com.clubpenguin.util.Reporting.DEBUG) {
if (com.clubpenguin.util.Reporting.debugLevel <= priority) {
var v1;
switch (priority) {
case com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR:
v1 = 'ERROR! ' + message;
break;
case com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING:
v1 = 'WARNING: ' + message;
break;
case com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE:
v1 = 'MESSAGE: ' + message;
break;
case com.clubpenguin.util.Reporting.DEBUGLEVEL_VERBOSE:
default:
v1 = 'VERBOSE: ' + message;
}
for (var v2 in com.clubpenguin.util.Reporting.output) {
com.clubpenguin.util.Reporting.output[v2].text = v1 + '\n' + com.clubpenguin.util.Reporting.output[v2].text;
}
}
}
};
v1.DEBUG = true;
v1.DEBUG_FPS = com.clubpenguin.util.Reporting.DEBUG && true;
v1.DEBUG_SOUNDS = com.clubpenguin.util.Reporting.DEBUG && true;
v1.DEBUG_LOCALE = com.clubpenguin.util.Reporting.DEBUG && true;
v1.DEBUG_SECURITY = com.clubpenguin.util.Reporting.DEBUG && true;
v1.DEBUGLEVEL_VERBOSE = 0;
v1.DEBUGLEVEL_MESSAGE = 1;
v1.DEBUGLEVEL_WARNING = 2;
v1.DEBUGLEVEL_ERROR = 3;
v1.debugLevel = com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE;
ASSetPropFlags(com.clubpenguin.util.Reporting.prototype, null, 1);
}
#endinitclip
}
movieClip 357 __Packages.com.clubpenguin.util.Loader {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.Loader) {
var v1 = function () {};
com.clubpenguin.util.Loader = v1;
var v2 = v1.prototype;
v1.loadAllMovies = function ($parent, $movieLocations, $initLocaleText) {
if (com.clubpenguin.util.Loader.eventSource == undefined) {
com.clubpenguin.util.Loader.eventSource = new Object();
mx.events.EventDispatcher.initialize(com.clubpenguin.util.Loader.eventSource);
}
com.clubpenguin.util.Loader.submovieProgress = new Array();
com.clubpenguin.util.Loader.loadedMovies = 0;
if ($initLocaleText == undefined) {
$initLocaleText = true;
}
if ($movieLocations == undefined) {
com.clubpenguin.util.Loader.debugTrace('no movieLocations array given!', com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
} else {
var v3 = $movieLocations[0].split('/');
var v4 = '';
var v1 = 0;
while (v1 < v3.length - 1) {
v4 += v3[v1] + '/';
++v1;
}
com.clubpenguin.util.Loader.debugTrace('root directory is \'' + v4 + '\'');
var v7 = (com.clubpenguin.util.Loader.localeOverride == undefined) ? com.clubpenguin.util.LocaleText.LANG_ID_EN : com.clubpenguin.util.Loader.localeOverride;
var v6 = (com.clubpenguin.util.Loader.localeVersion == undefined) ? com.clubpenguin.util.Loader.localeVersion;
if ($initLocaleText) {
com.clubpenguin.util.LocaleText.init($parent, v7, v4, v6, true);
}
}
v1 = 0;
while (v1 < $movieLocations.length) {
com.clubpenguin.util.Loader.loadSubmovie($parent, $movieLocations[v1], v1);
++v1;
}
};
v1.loadSubmovie = function ($parent, $movieLocation, $movieNum) {
com.clubpenguin.util.Loader.debugTrace('load submovie');
if ($parent == undefined) {
com.clubpenguin.util.Loader.debugTrace('cannot load movie, parent movie is undefined!', com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
return undefined;
}
if ($movieLocation == undefined) {
com.clubpenguin.util.Loader.debugTrace('cannot load movie, movie location is undefined!', com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
return undefined;
}
var v3 = $parent.createEmptyMovieClip('loadDataMC' + $movieNum, $parent.getNextHighestDepth());
var v1 = new Object();
var v2 = new MovieClipLoader();
v1.onLoadInit = function ($targetMC) {
com.clubpenguin.util.Loader.handleLoadComplete($targetMC);
};
v1.onLoadProgress = function ($targetMC, $loadProgress, $loadTotal) {
com.clubpenguin.util.Loader.handleLoadProgress($targetMC, $loadProgress, $loadTotal);
};
v1.onLoadError = function ($targetMC, $errorMessage) {
com.clubpenguin.util.Loader.debugTrace('error loading submovie: ' + $errorMessage, com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
};
v2.addListener(v1);
v2.loadClip($movieLocation, v3);
com.clubpenguin.util.Loader.addProgressObject(v2.getProgress(v3));
};
v1.handleLoadProgress = function ($mainMovie, $loadProgress, $loadTotal) {
var v3 = 0;
var v2 = 0;
var v1 = 0;
while (v1 < com.clubpenguin.util.Loader.submovieProgress.length) {
if (com.clubpenguin.util.Loader.submovieProgress[v1].movieClip == $mainMovie) {
com.clubpenguin.util.Loader.submovieProgress[v1].bytesLoaded = $loadProgress;
com.clubpenguin.util.Loader.submovieProgress[v1].bytesTotal = $loadTotal;
}
v2 += com.clubpenguin.util.Loader.submovieProgress[v1].bytesLoaded;
v3 += com.clubpenguin.util.Loader.submovieProgress[v1].bytesTotal;
++v1;
}
var v7 = (v2 / v3) * 100;
com.clubpenguin.util.Loader.debugTrace('updated load progress. movie is now ' + Math.round(v7) + '% loaded');
};
v1.handleLoadComplete = function ($mainMovie) {
com.clubpenguin.util.Loader.debugTrace('submovie loaded OK! are all loaded?');
if ($mainMovie._name != 'loadDataMC0') {
$mainMovie.removeMovieClip();
}
++com.clubpenguin.util.Loader.loadedMovies;
if (com.clubpenguin.util.Loader.loadedMovies >= com.clubpenguin.util.Loader.submovieProgress.length) {
com.clubpenguin.util.Loader.debugTrace('all movies loaded OK!');
var v1 = new Object();
v1.target = com.clubpenguin.util.Loader;
v1.type = com.clubpenguin.util.Loader.EVENT_LOAD_COMPLETED;
com.clubpenguin.util.Loader.eventSource.dispatchEvent(v1);
com.clubpenguin.util.Loader.debugTrace('dispatched LOAD_COMPLETED event');
}
};
v1.addEventListener = function ($listener) {
if (com.clubpenguin.util.Loader.eventSource == undefined) {
com.clubpenguin.util.Loader.eventSource = new Object();
mx.events.EventDispatcher.initialize(com.clubpenguin.util.Loader.eventSource);
}
com.clubpenguin.util.Loader.eventSource.addEventListener(com.clubpenguin.util.Loader.EVENT_LOAD_COMPLETED, $listener);
};
v1.removeEventListener = function ($listener) {
com.clubpenguin.util.Loader.eventSource.removeEventListener(com.clubpenguin.util.Loader.EVENT_LOAD_COMPLETED, $listener);
};
v1.setLocale = function ($locale) {
com.clubpenguin.util.Loader.localeOverride = $locale;
};
v1.setLocaleVersion = function ($localeVersion) {
com.clubpenguin.util.Loader.localeVersion = $localeVersion;
};
v1.addProgressObject = function ($progress) {
com.clubpenguin.util.Loader.submovieProgress.push($progress);
};
v1.debugTrace = function ($message, $priority) {
if ($priority == undefined) {
$priority = com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE;
}
if (com.clubpenguin.util.Reporting.DEBUG_LOCALE) {
com.clubpenguin.util.Reporting.debugTrace('(Loader) ' + $message, $priority);
}
};
v1.EVENT_LOAD_COMPLETED = 'onLoadComplete';
v1.EVENT_LOAD_IN_PROGRESS = 'onLoadProgress';
v1.loadedMovies = 0;
v1.submovieProgress = new Array();
v1.localeVersion = undefined;
v1.localeOverride = undefined;
ASSetPropFlags(com.clubpenguin.util.Loader.prototype, null, 1);
}
#endinitclip
}
movieClip 358 __Packages.com.clubpenguin.text.TextResize {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.text) {
_global.com.clubpenguin.text = new Object();
}
if (!_global.com.clubpenguin.text.TextResize) {
var v1 = function () {};
com.clubpenguin.text.TextResize = v1;
var v2 = v1.prototype;
v1.scaleDown = function ($field, $verticalAlign, $minFontSize) {
if ($field.autoSize != 'none') {
return undefined;
}
var v7 = $field._width;
var v5 = $field._height;
var v6;
var v10 = $field.textHeight;
var v11;
var v9 = $field._x;
var v8 = $field._y;
var v2 = $field.getTextFormat();
var v12 = v2.size;
var v4 = true;
v6 = v2.align;
v11 = v2.size;
$minFontSize = ($minFontSize == undefined) ? 2 : $minFontSize;
if ($field.multiline) {
$field.wordWrap = true;
} else {
$field.wordWrap = false;
}
while (v4) {
$field.autoSize = v6;
if ($field._width > v7 || $field._height > v5) {
--v2.size;
if (v2.size < $minFontSize) {
v2.size = $minFontSize;
v4 = false;
}
} else {
v4 = false;
}
$field.autoSize = 'none';
v2.align = v6;
$field.setTextFormat(v2);
$field._height = v5;
$field._width = v7;
$field._x = v9;
$field._y = v8;
}
if (!$field.multiline) {
switch ($verticalAlign) {
case 'center':
$field._y += (v10 - $field.textHeight - 1) / 2;
break;
case 'bottom':
$field._y += v10 - $field.textHeight - 1;
break;
case 'top':
default:
++$field._y;
}
}
};
ASSetPropFlags(com.clubpenguin.text.TextResize.prototype, null, 1);
}
#endinitclip
}
movieClip 359 __Packages.com.clubpenguin.games.beatbox.menus.MenuItemListHolder {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.MenuItemListHolder) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.MenuItemListHolder = v1;
com.clubpenguin.games.beatbox.menus.MenuItemListHolder extends MovieClip;
var v2 = v1.prototype;
v2.init = function (_defaultSliderPosition, _maxSliderPosition, _moveAmount) {
this.DEFAULT_SLIDER_POSITION = _defaultSliderPosition;
this.MAX_SLIDER_POSITION = _maxSliderPosition;
this.MOVE_AMOUNT = _moveAmount;
this.__lastPosition = this.DEFAULT_SLIDER_POSITION;
};
v2.moveRight = function () {
if (this.__buttonPressCount == 6) {
return undefined;
}
++this.__buttonPressCount;
this.__lastPosition += this.MOVE_AMOUNT;
com.greensock.TweenMax.to(this, 1, {'_x': this.__lastPosition});
};
v2.moveLeft = function () {
if (this.__buttonPressCount == 0) {
return undefined;
}
--this.__buttonPressCount;
this.__lastPosition -= this.MOVE_AMOUNT;
com.greensock.TweenMax.to(this, 1, {'_x': this.__lastPosition});
};
v2.DEFAULT_SLIDER_POSITION = 0;
v2.MAX_SLIDER_POSITION = 0;
v2.MOVE_AMOUNT = 0;
v2.__buttonPressCount = 0;
v2.__lastPosition = 0;
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.MenuItemListHolder.prototype, null, 1);
}
#endinitclip
}
movieClip 360 __Packages.com.greensock.core.TweenCore {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.TweenCore) {
var v1 = function (duration, vars) {
this.vars = vars || {};
this.cachedTotalDuration = duration || 0;
this.cachedDuration = this.cachedTotalDuration;
this._delay = Number(this.vars.delay) || 0;
this.cachedTimeScale = this.vars.timeScale || 1;
this.active = Boolean(duration == 0 && this._delay == 0 && this.vars.immediateRender != false);
this.cachedTime = 0;
this.cachedTotalTime = 0;
this.data = this.vars.data;
this.cachedReversed = false;
this.cachedPaused = this.cachedReversed;
this.cacheIsDirty = this.cachedReversed;
this.initted = this.cachedReversed;
this.gc = this.cachedReversed;
this._rawPrevTime = -1;
if (!com.greensock.core.TweenCore._classInitted) {
if (com.greensock.TweenLite.rootFrame == undefined && com.greensock.TweenLite.initClass != undefined) {
com.greensock.TweenLite.initClass();
com.greensock.core.TweenCore._classInitted = true;
} else {
return undefined;
}
}
var v2 = this.vars.timeline instanceof com.greensock.core.SimpleTimeline ? this.vars.timeline : ((this.vars.useFrames == true) ? com.greensock.TweenLite.rootFramesTimeline : com.greensock.TweenLite.rootTimeline);
v2.insert(this, v2.cachedTotalTime);
if (this.vars.reversed) {
this.cachedReversed = true;
}
if (this.vars.paused) {
this.__set__paused(true);
}
};
com.greensock.core.TweenCore = v1;
var v2 = v1.prototype;
v2.play = function () {
this.__set__reversed(false);
this.__set__paused(false);
};
v2.pause = function () {
this.__set__paused(true);
};
v2.resume = function () {
this.__set__paused(false);
};
v2.restart = function (includeDelay, suppressEvents) {
this.__set__reversed(false);
this.__set__paused(false);
this.setTotalTime(includeDelay ? -this._delay : 0, Boolean(suppressEvents != false));
};
v2.reverse = function (forceResume) {
this.__set__reversed(true);
if (forceResume != false) {
this.__set__paused(false);
} else {
if (this.gc) {
this.setEnabled(true, false);
}
}
};
v2.renderTime = function (time, suppressEvents, force) {};
v2.complete = function (skipRender, suppressEvents) {
if (!skipRender) {
this.renderTime(this.__get__totalDuration(), suppressEvents, false);
return undefined;
}
if (this.timeline.autoRemoveChildren) {
this.setEnabled(false, false);
} else {
this.active = false;
}
if (!suppressEvents) {
if (this.vars.onComplete && this.cachedTotalTime >= this.cachedTotalDuration && !this.cachedReversed) {
this.vars.onComplete.apply(this.vars.onCompleteScope, this.vars.onCompleteParams);
} else {
if (this.cachedReversed && this.cachedTotalTime == 0 && this.vars.onReverseComplete) {
this.vars.onReverseComplete.apply(this.vars.onReverseCompleteScope, this.vars.onReverseCompleteParams);
}
}
}
};
v2.invalidate = function () {};
v2.setEnabled = function (enabled, ignoreTimeline) {
this.gc = !enabled;
if (enabled) {
this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration);
if (ignoreTimeline != true && this.cachedOrphan) {
this.timeline.insert(this, this.cachedStartTime - this._delay);
}
return false;
}
this.active = false;
if (ignoreTimeline != true && !this.cachedOrphan) {
this.timeline.remove(this, true);
}
return false;
};
v2.kill = function () {
this.setEnabled(false, false);
};
v2.setDirtyCache = function (includeSelf) {
var v2 = (includeSelf != false) ? this : this.timeline;
while (v2) {
v2.cacheIsDirty = true;
v2 = v2.timeline;
}
};
v2.setTotalTime = function (time, suppressEvents) {
if (this.timeline) {
var v3 = this.cachedPaused ? this.cachedPauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed) {
var v4 = this.cacheIsDirty ? this.__get__totalDuration() : this.cachedTotalDuration;
this.cachedStartTime = v3 - (v4 - time) / this.cachedTimeScale;
} else {
this.cachedStartTime = v3 - time / this.cachedTimeScale;
}
if (!this.timeline.cacheIsDirty) {
this.setDirtyCache(false);
}
if (this.cachedTotalTime != time) {
this.renderTime(time, suppressEvents, false);
}
}
};
v2.__get__delay = function () {
return this._delay;
};
v2.__set__delay = function (n) {
this.startTime += n - this._delay;
this._delay = n;
return this.__get__delay();
};
v2.__get__duration = function () {
return this.cachedDuration;
};
v2.__set__duration = function (n) {
var v2 = n / this.cachedDuration;
this.cachedTotalDuration = n;
this.cachedDuration = this.cachedTotalDuration;
if (this.active && !this.cachedPaused && n != 0) {
this.setTotalTime(this.cachedTotalTime * v2, true);
}
this.setDirtyCache(false);
return this.__get__duration();
};
v2.__get__totalDuration = function () {
return this.cachedTotalDuration;
};
v2.__set__totalDuration = function (n) {
this.__set__duration(n);
return this.__get__totalDuration();
};
v2.__get__currentTime = function () {
return this.cachedTime;
};
v2.__set__currentTime = function (n) {
this.setTotalTime(n, false);
return this.__get__currentTime();
};
v2.__get__totalTime = function () {
return this.cachedTotalTime;
};
v2.__set__totalTime = function (n) {
this.setTotalTime(n, false);
return this.__get__totalTime();
};
v2.__get__startTime = function () {
return this.cachedStartTime;
};
v2.__set__startTime = function (n) {
if (this.timeline != undefined && (n != this.cachedStartTime || this.gc)) {
this.timeline.insert(this, n - this._delay);
} else {
this.cachedStartTime = n;
}
return this.__get__startTime();
};
v2.__get__reversed = function () {
return this.cachedReversed;
};
v2.__set__reversed = function (b) {
if (b != this.cachedReversed) {
this.cachedReversed = b;
this.setTotalTime(this.cachedTotalTime, true);
}
return this.__get__reversed();
};
v2.__get__paused = function () {
return this.cachedPaused;
};
v2.__set__paused = function (b) {
if (b != this.cachedPaused && this.timeline) {
if (b) {
this.cachedPauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime += this.timeline.__get__rawTime() - this.cachedPauseTime;
this.cachedPauseTime = NaN;
this.setDirtyCache(false);
}
this.cachedPaused = b;
this.active = Boolean(!this.cachedPaused && this.cachedTotalTime > 0 && this.cachedTotalTime < this.cachedTotalDuration);
}
if (!b && this.gc) {
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
}
return this.__get__paused();
};
v1.version = 1.64;
v2.addProperty('currentTime', v2.__get__currentTime, v2.__set__currentTime);
v2.addProperty('delay', v2.__get__delay, v2.__set__delay);
v2.addProperty('duration', v2.__get__duration, v2.__set__duration);
v2.addProperty('paused', v2.__get__paused, v2.__set__paused);
v2.addProperty('reversed', v2.__get__reversed, v2.__set__reversed);
v2.addProperty('startTime', v2.__get__startTime, v2.__set__startTime);
v2.addProperty('totalDuration', v2.__get__totalDuration, v2.__set__totalDuration);
v2.addProperty('totalTime', v2.__get__totalTime, v2.__set__totalTime);
ASSetPropFlags(com.greensock.core.TweenCore.prototype, null, 1);
}
#endinitclip
}
movieClip 361 __Packages.com.greensock.core.SimpleTimeline {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.SimpleTimeline) {
var v1 = function (vars) {
super(0, vars);
};
com.greensock.core.SimpleTimeline = v1;
com.greensock.core.SimpleTimeline extends com.greensock.core.TweenCore;
var v2 = v1.prototype;
v2.insert = function (tween, time) {
if (time == undefined) {
time = 0;
}
if (!tween.cachedOrphan && tween.timeline != undefined) {
tween.timeline.remove(tween, true);
}
tween.timeline = this;
tween.cachedStartTime = Number(time) + tween.__get__delay();
if (tween.gc) {
tween.setEnabled(true, true);
}
if (tween.cachedPaused) {
tween.cachedPauseTime = tween.cachedStartTime + (this.__get__rawTime() - tween.cachedStartTime) / tween.cachedTimeScale;
}
if (this._lastChild) {
this._lastChild.nextNode = tween;
tween.prevNode = this._lastChild;
this._lastChild = tween;
tween.nextNode = undefined;
tween.cachedOrphan = false;
return tween;
}
this._firstChild = tween;
tween.prevNode = this._lastChild;
this._lastChild = tween;
tween.nextNode = undefined;
tween.cachedOrphan = false;
return tween;
};
v2.remove = function (tween, skipDisable) {
if (tween.cachedOrphan) {
return undefined;
} else {
if (skipDisable != true) {
tween.setEnabled(false, true);
}
}
if (tween.nextNode) {
tween.nextNode.prevNode = tween.prevNode;
} else {
if (this._lastChild == tween) {
this._lastChild = tween.prevNode;
}
}
if (tween.prevNode) {
tween.prevNode.nextNode = tween.nextNode;
} else {
if (this._firstChild == tween) {
this._firstChild = tween.nextNode;
}
}
tween.cachedOrphan = true;
};
v2.renderTime = function (time, suppressEvents, force) {
var v2 = this._firstChild;
var v4;
var v5;
this.cachedTotalTime = time;
this.cachedTime = time;
while (v2) {
v5 = v2.nextNode;
if (v2.active || time >= v2.cachedStartTime && !v2.cachedPaused && !v2.gc) {
if (!v2.cachedReversed) {
v2.renderTime((time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false);
} else {
v4 = v2.cacheIsDirty ? v2.__get__totalDuration() : v2.cachedTotalDuration;
v2.renderTime(v4 - (time - v2.cachedStartTime) * v2.cachedTimeScale, suppressEvents, false);
}
}
v2 = v5;
}
};
v2.__get__rawTime = function () {
return this.cachedTotalTime;
};
v2.addProperty('rawTime', v2.__get__rawTime, function () {});
ASSetPropFlags(com.greensock.core.SimpleTimeline.prototype, null, 1);
}
#endinitclip
}
movieClip 362 __Packages.com.greensock.TweenLite {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.TweenLite) {
var v1 = function (target, duration, vars) {
super(duration, vars);
if (com.greensock.TweenLite._timingClip.onEnterFrame != com.greensock.TweenLite.updateAll) {
com.greensock.TweenLite.jumpStart(_root);
}
this.ratio = 0;
this.target = target;
this._targetID = com.greensock.TweenLite.getID(target, true);
if (this.vars.timeScale != undefined && this.target instanceof com.greensock.core.TweenCore) {
this.cachedTimeScale = 1;
}
this.propTweenLookup = {};
this._ease = com.greensock.TweenLite.defaultEase;
this._overwrite = (vars.overwrite == undefined || !com.greensock.TweenLite.overwriteManager.enabled && vars.overwrite > 1) ? com.greensock.TweenLite.overwriteManager.mode : Number(vars.overwrite);
var v5 = com.greensock.TweenLite.masterList[this._targetID].tweens;
if (v5.length == 0) {
v5[0] = this;
} else {
if (this._overwrite == 1) {
var v4 = v5.length;
while (--v4 > -1) {
if (!v5[v4].gc) {
v5[v4].setEnabled(false, false);
}
}
com.greensock.TweenLite.masterList[this._targetID].tweens = [this];
} else {
v5[v5.length] = this;
}
}
if (this.active || this.vars.immediateRender) {
this.renderTime(0, false, true);
}
};
com.greensock.TweenLite = v1;
com.greensock.TweenLite extends com.greensock.core.TweenCore;
var v2 = v1.prototype;
v1.initClass = function () {
com.greensock.TweenLite.rootFrame = 0;
com.greensock.TweenLite.rootTimeline = new com.greensock.core.SimpleTimeline(null);
com.greensock.TweenLite.rootFramesTimeline = new com.greensock.core.SimpleTimeline(null);
com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren = true;
com.greensock.TweenLite.rootTimeline.autoRemoveChildren = com.greensock.TweenLite.rootFramesTimeline.autoRemoveChildren;
com.greensock.TweenLite.rootTimeline.cachedStartTime = getTimer() * 0.001;
com.greensock.TweenLite.rootFramesTimeline.cachedTotalTime = 0;
com.greensock.TweenLite.rootTimeline.cachedTotalTime = 0;
com.greensock.TweenLite.rootFramesTimeline.cachedStartTime = com.greensock.TweenLite.rootFrame;
if (com.greensock.TweenLite.overwriteManager == undefined) {
com.greensock.TweenLite.overwriteManager = {'mode': 1, 'enabled': false};
}
com.greensock.TweenLite.jumpStart(_root);
};
v2.init = function () {
if (this.vars.onInit) {
this.vars.onInit.apply(null, this.vars.onInitParams);
}
var v2;
var v5;
var v3;
var v6;
var v7;
if (typeof this.vars.ease == 'function') {
this._ease = this.vars.ease;
}
if (this.vars.easeParams != undefined) {
this.vars.proxiedEase = this._ease;
this._ease = this.easeProxy;
}
this.cachedPT1 = undefined;
this.propTweenLookup = {};
for (v2 in this.vars) {
if (com.greensock.TweenLite._reservedProps[v2] && !(v2 == 'timeScale' && this.target instanceof com.greensock.core.TweenCore)) {
} else {
if (com.greensock.TweenLite.plugins[v2] && v3.onInitTween(this.target, this.vars[v2], this)) {
this.cachedPT1 = new com.greensock.core.PropTween(v3, 'changeFactor', 0, 1, (v3.overwriteProps.length == 1) ? v3.overwriteProps[0] : '_MULTIPLE_', true, this.cachedPT1);
if (this.cachedPT1.name == '_MULTIPLE_') {
v5 = v3.overwriteProps.length;
while (--v5 > -1) {
this.propTweenLookup[v3.overwriteProps[v5]] = this.cachedPT1;
}
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
}
if (v3.priority) {
this.cachedPT1.priority = v3.priority;
v6 = true;
}
if (v3.onDisable || v3.onEnable) {
this._notifyPluginsOfEnabled = true;
}
this._hasPlugins = true;
} else {
this.cachedPT1 = new com.greensock.core.PropTween(this.target, v2, Number(this.target[v2]), (typeof this.vars[v2] == 'number') ? Number(this.vars[v2]) - this.target[v2] : Number(this.vars[v2]), v2, false, this.cachedPT1);
this.propTweenLookup[v2] = this.cachedPT1;
}
}
}
if (v6) {
com.greensock.TweenLite.onPluginEvent('onInitAllProps', this);
}
if (this.vars.runBackwards) {
var v4 = this.cachedPT1;
while (v4) {
v4.start += v4.change;
v4.change = -v4.change;
v4 = v4.nextNode;
}
}
this._hasUpdate = Boolean(typeof this.vars.onUpdate == 'function');
if (this._overwrittenProps) {
this.killVars(this._overwrittenProps);
if (this.cachedPT1 == undefined) {
this.setEnabled(false, false);
}
}
if (this._overwrite > 1 && this.cachedPT1 && v7 && v7.length > 1) {
if (com.greensock.TweenLite.overwriteManager.manageOverwrites(this, this.propTweenLookup, v7, this._overwrite)) {
this.init();
}
}
this.initted = true;
};
v2.renderTime = function (time, suppressEvents, force) {
var v4;
var v5 = this.cachedTime;
if (time >= this.cachedDuration) {
this.cachedTime = this.cachedDuration;
this.cachedTotalTime = this.cachedTime;
this.ratio = 1;
v4 = true;
if (this.cachedDuration == 0) {
if ((time == 0 || this._rawPrevTime < 0) && this._rawPrevTime != time) {
force = true;
}
this._rawPrevTime = time;
}
} else {
if (time <= 0) {
this.ratio = 0;
this.cachedTime = 0;
this.cachedTotalTime = 0;
if (time < 0) {
this.active = false;
if (this.cachedDuration == 0) {
if (this._rawPrevTime >= 0) {
force = true;
v4 = true;
}
this._rawPrevTime = time;
}
}
if (this.cachedReversed && v5 != 0) {
v4 = true;
}
} else {
this.cachedTime = time;
this.cachedTotalTime = this.cachedTime;
this.ratio = this._ease(time, 0, 1, this.cachedDuration);
}
}
if (this.cachedTime == v5 && !force) {
return undefined;
} else {
if (!this.initted) {
this.init();
if (!v4 && this.cachedTime) {
this.ratio = this._ease(this.cachedTime, 0, 1, this.cachedDuration);
}
}
}
if (!this.active && !this.cachedPaused) {
this.active = true;
}
if (v5 == 0 && this.vars.onStart && (this.cachedTime != 0 || this.cachedDuration == 0) && !suppressEvents) {
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
}
var v2 = this.cachedPT1;
while (v2) {
v2.target[v2.property] = v2.start + this.ratio * v2.change;
v2 = v2.nextNode;
}
if (this._hasUpdate && !suppressEvents) {
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
}
if (v4 && !this.gc) {
if (this._hasPlugins && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onComplete', this);
}
this.complete(true, suppressEvents);
}
};
v2.killVars = function (vars, permanent) {
if (this._overwrittenProps == undefined) {
this._overwrittenProps = {};
}
var v3;
var v2;
var v5;
for (v3 in vars) {
if (this.propTweenLookup[v3]) {
v2 = this.propTweenLookup[v3];
if (v2.isPlugin && v2.name == '_MULTIPLE_') {
v2.target.killProps(vars);
if (v2.target.overwriteProps.length == 0) {
v2.name = '';
}
if (v3 != v2.target.propName || v2.name == '') {
delete this.propTweenLookup[v3];
}
}
if (v2.name != '_MULTIPLE_') {
if (v2.nextNode) {
v2.nextNode.prevNode = v2.prevNode;
}
if (v2.prevNode) {
v2.prevNode.nextNode = v2.nextNode;
} else {
if (this.cachedPT1 == v2) {
this.cachedPT1 = v2.nextNode;
}
}
if (v2.isPlugin && v2.target.onDisable) {
v2.target.onDisable();
if (v2.target.activeDisable) {
v5 = true;
}
}
delete this.propTweenLookup[v3];
}
}
if (permanent != false && vars != this._overwrittenProps) {
this._overwrittenProps[v3] = 1;
}
}
return v5;
};
v2.invalidate = function () {
if (this._notifyPluginsOfEnabled) {
com.greensock.TweenLite.onPluginEvent('onDisable', this);
}
this.cachedPT1 = undefined;
this._overwrittenProps = undefined;
this._notifyPluginsOfEnabled = false;
this.active = this._notifyPluginsOfEnabled;
this.initted = this._notifyPluginsOfEnabled;
this._hasUpdate = this._notifyPluginsOfEnabled;
this.propTweenLookup = {};
};
v2.setEnabled = function (enabled, ignoreTimeline) {
if (enabled) {
var v3 = com.greensock.TweenLite.masterList[this._targetID].tweens;
if (v3) {
v3[v3.length] = this;
} else {
com.greensock.TweenLite.masterList[this._targetID] = {'target': this.target, 'tweens': [this]};
}
}
super.setEnabled(enabled, ignoreTimeline);
if (this._notifyPluginsOfEnabled && this.cachedPT1) {
return com.greensock.TweenLite.onPluginEvent(enabled ? 'onEnable' : 'onDisable', this);
}
return false;
};
v2.easeProxy = function (t, b, c, d) {
return this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams));
};
v1.to = function (target, duration, vars) {
return new com.greensock.TweenLite(target, duration, vars);
};
v1.from = function (target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return new com.greensock.TweenLite(target, duration, vars);
};
v1.delayedCall = function (delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return new com.greensock.TweenLite(onComplete, 0, {'delay': delay, 'onComplete': onComplete, 'onCompleteParams': onCompleteParams, 'onCompleteScope': onCompleteScope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0});
};
v1.updateAll = function () {
com.greensock.TweenLite.rootTimeline.renderTime((getTimer() * 0.001 - com.greensock.TweenLite.rootTimeline.cachedStartTime) * com.greensock.TweenLite.rootTimeline.cachedTimeScale, false, false);
++com.greensock.TweenLite.rootFrame;
com.greensock.TweenLite.rootFramesTimeline.renderTime((com.greensock.TweenLite.rootFrame - com.greensock.TweenLite.rootFramesTimeline.cachedStartTime) * com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale, false, false);
if (!(com.greensock.TweenLite.rootFrame % 60)) {
var v3 = com.greensock.TweenLite.masterList;
var v2;
var v1;
for (var v4 in v3) {
v1 = v3[v4].tweens;
v2 = v1.length;
while (--v2 > -1) {
if (v1[v2].gc) {
v1.splice(v2, 1);
}
}
if (v1.length == 0) {
delete v3[v4];
}
}
}
};
v1.killTweensOf = function (target, complete, vars) {
var v6 = com.greensock.TweenLite.getID(target, true);
var v4 = com.greensock.TweenLite.masterList[v6].tweens;
var v3;
var v1;
if (v4 != undefined) {
v3 = v4.length;
while (--v3 > -1) {
v1 = v4[v3];
if (!v1.gc) {
if (complete == true) {
v1.complete(false, false);
}
if (vars != undefined) {
v1.killVars(vars);
}
if (vars == undefined || v1.cachedPT1 == undefined && v1.initted) {
v1.setEnabled(false, false);
}
}
}
if (vars == undefined) {
delete com.greensock.TweenLite.masterList[v6];
}
}
};
v1.getID = function (target, lookup) {
var v2;
if (lookup) {
var v1 = com.greensock.TweenLite.masterList;
if (typeof target == 'movieclip') {
if (v1[String(target)] != undefined) {
return String(target);
} else {
v2 = String(target);
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
}
++com.greensock.TweenLite._cnt;
v2 = 't' + com.greensock.TweenLite._cnt;
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
}
for (var v3 in v1) {
if (v1[v3].target == target) {
return v3;
}
}
}
++com.greensock.TweenLite._cnt;
v2 = 't' + com.greensock.TweenLite._cnt;
com.greensock.TweenLite.masterList[v2] = {'target': target, 'tweens': []};
return v2;
};
v1.easeOut = function (t, b, c, d) {
t /= d;
return -1 * t * (t - 2);
};
v1.findSubloadedSWF = function (mc) {
for (var v3 in mc) {
if (typeof mc[v3] == 'movieclip') {
if (mc[v3]._url != _root._url && mc[v3].getBytesLoaded() != undefined) {
return mc[v3];
} else {
if (com.greensock.TweenLite.findSubloadedSWF(mc[v3]) != undefined) {
return com.greensock.TweenLite.findSubloadedSWF(mc[v3]);
}
}
}
}
return undefined;
};
v1.jumpStart = function (root) {
if (com.greensock.TweenLite._timingClip != undefined) {
com.greensock.TweenLite._timingClip.removeMovieClip();
}
var v2 = (root.getBytesLoaded() == undefined) ? com.greensock.TweenLite.findSubloadedSWF(root) : root;
var v1 = 999;
while (v2.getInstanceAtDepth(v1) != undefined) {
++v1;
}
com.greensock.TweenLite._timingClip = v2.createEmptyMovieClip('__tweenLite' + ((String(com.greensock.TweenLite.version)).split('.')).join('_'), v1);
com.greensock.TweenLite._timingClip.onEnterFrame = com.greensock.TweenLite.updateAll;
com.greensock.TweenLite.to({}, 0, {});
com.greensock.TweenLite.rootTimeline.cachedTotalTime = (getTimer() * 0.001 - com.greensock.TweenLite.rootTimeline.cachedStartTime) * com.greensock.TweenLite.rootTimeline.cachedTimeScale;
com.greensock.TweenLite.rootTimeline.cachedTime = com.greensock.TweenLite.rootTimeline.cachedTotalTime;
};
v1.version = 11.65;
v1.plugins = {};
v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
v1.defaultEase = com.greensock.TweenLite.easeOut;
v1.masterList = {};
v1._cnt = -16000;
v1._reservedProps = {'ease': 1, 'delay': 1, 'overwrite': 1, 'onComplete': 1, 'onCompleteParams': 1, 'useFrames': 1, 'runBackwards': 1, 'startAt': 1, 'onUpdate': 1, 'onUpdateParams': 1, 'onStart': 1, 'onStartParams': 1, 'onReverseComplete': 1, 'onReverseCompleteParams': 1, 'onRepeat': 1, 'onRepeatParams': 1, 'proxiedEase': 1, 'easeParams': 1, 'yoyo': 1, 'onCompleteListener': 1, 'onUpdateListener': 1, 'onStartListener': 1, 'orientToBezier': 1, 'timeScale': 1, 'immediateRender': 1, 'repeat': 1, 'repeatDelay': 1, 'timeline': 1, 'data': 1, 'paused': 1};
ASSetPropFlags(com.greensock.TweenLite.prototype, null, 1);
}
#endinitclip
}
movieClip 363 __Packages.com.greensock.core.PropTween {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.core) {
_global.com.greensock.core = new Object();
}
if (!_global.com.greensock.core.PropTween) {
var v1 = function (target, property, start, change, name, isPlugin, nextNode, priority) {
this.target = target;
this.property = property;
this.start = start;
this.change = change;
this.name = name;
this.isPlugin = isPlugin;
if (nextNode) {
nextNode.prevNode = this;
this.nextNode = nextNode;
}
this.priority = priority || 0;
};
com.greensock.core.PropTween = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.greensock.core.PropTween.prototype, null, 1);
}
#endinitclip
}
movieClip 364 __Packages.com.greensock.plugins.TweenPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.TweenPlugin) {
var v1 = function () {
this._tweens = [];
this._changeFactor = 0;
};
com.greensock.plugins.TweenPlugin = v1;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this.addTween(target, this.propName, target[this.propName], value, this.propName);
return true;
};
v2.addTween = function (object, propName, start, end, overwriteProp) {
if (end != undefined) {
var v3 = (typeof end == 'number') ? Number(end) - start : Number(end);
if (v3 != 0) {
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(object, propName, start, v3, overwriteProp || propName);
}
}
};
v2.updateTweens = function (changeFactor) {
var v3 = this._tweens.length;
var v2;
if (this.round) {
var v4;
while (--v3 > -1) {
v2 = this._tweens[v3];
v4 = v2.start + v2.change * changeFactor;
if (v4 > 0) {
v2.target[v2.property] = v4 + 0.5 >> 0;
} else {
v2.target[v2.property] = v4 - 0.5 >> 0;
}
}
} else {
while (--v3 > -1) {
v2 = this._tweens[v3];
v2.target[v2.property] = v2.start + v2.change * changeFactor;
}
}
};
v2.__get__changeFactor = function () {
return this._changeFactor;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._changeFactor = n;
return this.__get__changeFactor();
};
v2.killProps = function (lookup) {
var v2 = this.overwriteProps.length;
while (--v2 > -1) {
if (lookup[this.overwriteProps[v2]]) {
this.overwriteProps.splice(v2, 1);
}
}
v2 = this._tweens.length;
while (--v2 > -1) {
if (lookup[this._tweens[v2].name]) {
this._tweens.splice(v2, 1);
}
}
};
v1.onTweenEvent = function (type, tween) {
var v1 = tween.cachedPT1;
var v5;
if (type == 'onInitAllProps') {
var v3 = [];
var v2 = 0;
while (v1) {
v3[v2++] = v1;
v1 = v1.nextNode;
}
v3.sortOn('priority', Array.NUMERIC | Array.DESCENDING);
while (--v2 > -1) {
v3[v2].nextNode = v3[v2 + 1];
v3[v2].prevNode = v3[v2 - 1];
}
tween.cachedPT1 = v3[0];
v1 = tween.cachedPT1;
}
while (v1) {
if (v1.isPlugin && v1.target[type]) {
if (v1.target.activeDisable) {
v5 = true;
}
v1.target[type]();
}
v1 = v1.nextNode;
}
return v5;
};
v1.activate = function (plugins) {
com.greensock.TweenLite.onPluginEvent = com.greensock.plugins.TweenPlugin.onTweenEvent;
var v1 = plugins.length;
var v3;
while (v1--) {
if (plugins[v1].API == 1) {
v3 = new plugins[v1]();
com.greensock.TweenLite.plugins[v3.propName] = plugins[v1];
}
}
return true;
};
v1.VERSION = 1.4;
v1.API = 1;
v2.priority = 0;
v2.addProperty('changeFactor', v2.__get__changeFactor, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.TweenPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 365 __Packages.com.greensock.plugins.VisiblePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.VisiblePlugin) {
var v1 = function () {
super();
this.propName = '_visible';
this.overwriteProps = ['_visible'];
};
com.greensock.plugins.VisiblePlugin = v1;
com.greensock.plugins.VisiblePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._tween = tween;
this._initVal = Boolean(this._target._visible);
this._visible = Boolean(value);
return true;
};
v2.__set__changeFactor = function (n) {
if (n == 1 && (this._tween.cachedDuration == this._tween.cachedTime || this._tween.cachedTime == 0)) {
this._target._visible = this._visible;
} else {
this._target._visible = this._initVal;
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.VisiblePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 366 __Packages.com.greensock.plugins.AutoAlphaPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.AutoAlphaPlugin) {
var v1 = function () {
super();
this.propName = 'autoAlpha';
this.overwriteProps = ['_alpha', '_visible'];
};
com.greensock.plugins.AutoAlphaPlugin = v1;
com.greensock.plugins.AutoAlphaPlugin extends com.greensock.plugins.VisiblePlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this.addTween(target, '_alpha', target._alpha, value, '_alpha');
return true;
};
v2.killProps = function (lookup) {
super.killProps(lookup);
this._ignoreVisible = Boolean(lookup._visible != undefined);
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
if (!this._ignoreVisible) {
this._target._visible = Boolean(this._target._alpha != 0);
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.AutoAlphaPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 367 __Packages.com.greensock.plugins.EndArrayPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.EndArrayPlugin) {
var v1 = function () {
super();
this.propName = 'endArray';
this.overwriteProps = ['endArray'];
this._info = [];
};
com.greensock.plugins.EndArrayPlugin = v1;
com.greensock.plugins.EndArrayPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(target instanceof Array) || !(value instanceof Array)) {
return false;
}
this.init([target][0], [value][0]);
return true;
};
v2.init = function (start, end) {
this._a = start;
var v2 = end.length;
while (v2--) {
if (start[v2] != end[v2] && start[v2] != undefined) {
this._info[this._info.length] = new com.greensock.plugins.helpers.ArrayTweenInfo(v2, this._a[v2], end[v2] - this._a[v2]);
}
}
};
v2.__set__changeFactor = function (n) {
var v3 = this._info.length;
var v2;
if (this.round) {
while (v3--) {
v2 = this._info[v3];
this._a[v2.index] = Math.round(v2.start + v2.change * n);
}
} else {
while (v3--) {
v2 = this._info[v3];
this._a[v2.index] = v2.start + v2.change * n;
}
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.EndArrayPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 368 __Packages.com.greensock.plugins.helpers.ArrayTweenInfo {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.helpers) {
_global.com.greensock.plugins.helpers = new Object();
}
if (!_global.com.greensock.plugins.helpers.ArrayTweenInfo) {
var v1 = function (index, start, change) {
this.index = index;
this.start = start;
this.change = change;
};
com.greensock.plugins.helpers.ArrayTweenInfo = v1;
var v2 = v1.prototype;
ASSetPropFlags(com.greensock.plugins.helpers.ArrayTweenInfo.prototype, null, 1);
}
#endinitclip
}
movieClip 369 __Packages.com.greensock.plugins.FramePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FramePlugin) {
var v1 = function () {
super();
this.propName = 'frame';
this.overwriteProps = ['frame'];
this.round = true;
};
com.greensock.plugins.FramePlugin = v1;
com.greensock.plugins.FramePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' || isNaN(value)) {
return false;
}
this._target = MovieClip(target);
this.frame = this._target._currentframe;
this.addTween(this, 'frame', this.frame, value, 'frame');
return true;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._target.gotoAndStop(this.frame);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.FramePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 370 __Packages.com.greensock.plugins.TintPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.TintPlugin) {
var v1 = function () {
super();
this.propName = 'tint';
this.overwriteProps = ['tint'];
};
com.greensock.plugins.TintPlugin = v1;
com.greensock.plugins.TintPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' && !(target instanceof TextField)) {
return false;
}
var v2 = (tween.vars._alpha != undefined) ? tween.vars._alpha : ((tween.vars.autoAlpha != undefined) ? tween.vars.autoAlpha : target._alpha);
var v4 = Number(value);
if (!(value == null || tween.vars.removeTint == true)) {
var v6 = {'rb': v4 >> 16, 'gb': v4 >> 8 & 255, 'bb': v4 & 255, 'ra': 0, 'ga': 0, 'ba': 0, 'aa': v2};
this._ignoreAlpha = true;
this.init(target, v6);
return true;
}
var v6 = {'rb': 0, 'gb': 0, 'bb': 0, 'ab': 0, 'ra': v2, 'ga': v2, 'ba': v2, 'aa': v2};
this._ignoreAlpha = true;
this.init(target, v6);
return true;
};
v2.init = function (target, end) {
this._color = new Color(target);
this._ct = this._color.getTransform();
var v5;
var v2;
for (v2 in end) {
if (this._ct[v2] != end[v2]) {
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(this._ct, v2, this._ct[v2], end[v2] - this._ct[v2], 'tint', false);
}
}
};
v2.__set__changeFactor = function (n) {
var v3 = this._tweens.length;
var v2;
while (v3--) {
v2 = this._tweens[v3];
v2.target[v2.property] = v2.start + v2.change * n;
}
if (this._ignoreAlpha) {
var v5 = this._color.getTransform();
this._ct.aa = v5.aa;
this._ct.ab = v5.ab;
}
this._color.setTransform(this._ct);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.TintPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 371 __Packages.com.greensock.plugins.RemoveTintPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.RemoveTintPlugin) {
var v1 = function () {
super();
this.propName = 'removeTint';
};
com.greensock.plugins.RemoveTintPlugin = v1;
com.greensock.plugins.RemoveTintPlugin extends com.greensock.plugins.TintPlugin;
var v2 = v1.prototype;
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.RemoveTintPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 372 __Packages.com.greensock.plugins.VolumePlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.VolumePlugin) {
var v1 = function () {
super();
this.propName = 'volume';
this.overwriteProps = ['volume'];
};
com.greensock.plugins.VolumePlugin = v1;
com.greensock.plugins.VolumePlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (isNaN(value) || typeof target != 'movieclip' && !(target instanceof Sound)) {
return false;
}
if (typeof target != 'movieclip') {
this._sound = Sound(target);
this.volume = this._sound.getVolume();
this.addTween(this, 'volume', this.volume, value, 'volume');
return true;
}
this._sound = new Sound(target);
this.volume = this._sound.getVolume();
this.addTween(this, 'volume', this.volume, value, 'volume');
return true;
};
v2.__set__changeFactor = function (n) {
this.updateTweens(n);
this._sound.setVolume(this.volume);
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.VolumePlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 373 __Packages.com.greensock.plugins.FilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FilterPlugin) {
var v1 = function () {
super();
};
com.greensock.plugins.FilterPlugin = v1;
com.greensock.plugins.FilterPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.initFilter = function (props, defaultFilter, propNames) {
var v6 = this._target.filters;
var v2;
var v3;
var v5;
var v7 = props instanceof flash.filters.BitmapFilter ? {} : props;
this._index = -1;
if (v7.index != undefined) {
this._index = v7.index;
} else {
v3 = v6.length;
while (v3--) {
if (v6[v3] instanceof this._type) {
this._index = v3;
break;
}
}
}
if (this._index == -1 || v6[this._index] == undefined || v7.addFilter == true) {
this._index = (v7.index != undefined) ? v7.index : v6.length;
v6[this._index] = defaultFilter;
this._target.filters = v6;
}
this._filter = v6[this._index];
if (v7.remove == true) {
this._remove = true;
this.onComplete = this.onCompleteTween;
}
v3 = propNames.length;
while (v3--) {
v2 = propNames[v3];
if (props[v2] != undefined && this._filter[v2] != props[v2]) {
if (v2 == 'color' || v2 == 'highlightColor' || v2 == 'shadowColor') {
v5 = new com.greensock.plugins.HexColorsPlugin();
v5.initColor(this._filter, v2, this._filter[v2], props[v2]);
this._tweens[this._tweens.length] = new com.greensock.core.PropTween(v5, 'changeFactor', 0, 1, this.propName);
} else {
if (v2 == 'quality' || v2 == 'inner' || v2 == 'knockout' || v2 == 'hideObject') {
this._filter[v2] = props[v2];
} else {
this.addTween(this._filter, v2, this._filter[v2], props[v2], this.propName);
}
}
}
}
};
v2.onCompleteTween = function () {
if (this._remove) {
var v3 = this._target.filters;
if (!(v3[this._index] instanceof this._type)) {
var v2 = v3.length;
while (v2--) {
if (v3[v2] instanceof this._type) {
v3.splice(v2, 1);
break;
}
}
} else {
v3.splice(this._index, 1);
}
this._target.filters = v3;
}
};
v2.__set__changeFactor = function (n) {
var v2 = this._tweens.length;
var v3;
var v4 = this._target.filters;
while (v2--) {
v3 = this._tweens[v2];
v3.target[v3.property] = v3.start + v3.change * n;
}
if (!(v4[this._index] instanceof this._type)) {
this._index = v4.length;
v2 = this._index;
while (v2--) {
if (v4[v2] instanceof this._type) {
this._index = v2;
break;
}
}
}
v4[this._index] = this._filter;
this._target.filters = v4;
return this.__get__changeFactor();
};
v1.VERSION = 2.03;
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.FilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 374 __Packages.com.greensock.plugins.HexColorsPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.HexColorsPlugin) {
var v1 = function () {
super();
this.propName = 'hexColors';
this.overwriteProps = [];
this._colors = [];
};
com.greensock.plugins.HexColorsPlugin = v1;
com.greensock.plugins.HexColorsPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
for (var v4 in value) {
this.initColor(target, v4, Number(target[v4]), Number(value[v4]));
}
return true;
};
v2.initColor = function (target, propName, start, end) {
if (start != end) {
var v3 = start >> 16;
var v5 = start >> 8 & 255;
var v2 = start & 255;
this._colors[this._colors.length] = [target, propName, v3, (end >> 16) - v3, v5, (end >> 8 & 255) - v5, v2, (end & 255) - v2];
this.overwriteProps[this.overwriteProps.length] = propName;
}
};
v2.killProps = function (lookup) {
var v3 = this._colors.length;
while (v3--) {
if (lookup[this._colors[v3][1]] != undefined) {
this._colors.splice(v3, 1);
}
}
super.killProps(lookup);
};
v2.__set__changeFactor = function (n) {
var v4 = this._colors.length;
var v2;
while (v4--) {
v2 = this._colors[v4];
v2[0][v2[1]] = v2[2] + n * v2[3] << 16 | v2[4] + n * v2[5] << 8 | v2[6] + n * v2[7];
}
return this.__get__changeFactor();
};
v1.API = 1;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.HexColorsPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 375 __Packages.com.greensock.plugins.BevelFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BevelFilterPlugin) {
var v1 = function () {
super();
this.propName = 'bevelFilter';
this.overwriteProps = ['bevelFilter'];
};
com.greensock.plugins.BevelFilterPlugin = v1;
com.greensock.plugins.BevelFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.BevelFilter;
this.initFilter(value, new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, value.quality || 2), com.greensock.plugins.BevelFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['distance', 'angle', 'highlightColor', 'highlightAlpha', 'shadowColor', 'shadowAlpha', 'blurX', 'blurY', 'strength', 'quality'];
ASSetPropFlags(com.greensock.plugins.BevelFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 376 __Packages.com.greensock.plugins.BezierPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BezierPlugin) {
var v1 = function () {
super();
this.propName = 'bezier';
this.overwriteProps = [];
this._future = {};
};
com.greensock.plugins.BezierPlugin = v1;
com.greensock.plugins.BezierPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(value instanceof Array)) {
return false;
}
this.init(tween, [value][0], false);
return true;
};
v2.init = function (tween, beziers, through) {
this._target = tween.target;
var v7 = tween.vars;
if (v7.orientToBezier == true) {
this._orientData = [['_x', '_y', '_rotation', 0, 0.01]];
this._orient = true;
} else {
if (v7.orientToBezier instanceof Array) {
this._orientData = v7.orientToBezier;
this._orient = true;
}
}
var v3 = {};
var v4;
var v2;
var v8;
v4 = 0;
while (v4 < beziers.length) {
for (v2 in beziers[v4]) {
if (v3[v2] == undefined) {
v3[v2] = [tween.target[v2]];
}
if (typeof beziers[v4][v2] == 'number') {
v3[v2].push(beziers[v4][v2]);
} else {
v3[v2].push(tween.target[v2] + Number(beziers[v4][v2]));
}
}
++v4;
}
for (v2 in v3) {
this.overwriteProps[this.overwriteProps.length] = v2;
if (v7[v2] != undefined) {
if (typeof v7[v2] == 'number') {
v3[v2].push(v7[v2]);
} else {
v3[v2].push(tween.target[v2] + Number(v7[v2]));
}
v8 = {};
v8[v2] = true;
tween.killVars(v8, false);
delete v7[v2];
}
}
this._beziers = com.greensock.plugins.BezierPlugin.parseBeziers(v3, through);
};
v1.parseBeziers = function (props, through) {
var v2;
var v1;
var v3;
var v4;
var v6 = {};
if (through == true) {
for (v4 in props) {
v1 = props[v4];
v3 = [];
v6[v4] = v3;
if (v1.length > 2) {
v3[v3.length] = [v1[0], v1[1] - (v1[2] - v1[0]) / 4, v1[1]];
v2 = 1;
while (v2 < v1.length - 1) {
v3[v3.length] = [v1[v2], v1[v2] + (v1[v2] - v3[v2 - 1][1]), v1[v2 + 1]];
++v2;
}
} else {
v3[v3.length] = [v1[0], (v1[0] + v1[1]) / 2, v1[1]];
}
}
return v6;
}
for (v4 in props) {
v1 = props[v4];
v3 = [];
v6[v4] = v3;
if (v1.length > 3) {
v3[v3.length] = [v1[0], v1[1], (v1[1] + v1[2]) / 2];
v2 = 2;
while (v2 < v1.length - 2) {
v3[v3.length] = [v3[v2 - 2][2], v1[v2], (v1[v2] + v1[v2 + 1]) / 2];
++v2;
}
v3[v3.length] = [v3[v3.length - 1][2], v1[v1.length - 2], v1[v1.length - 1]];
} else {
if (v1.length == 3) {
v3[v3.length] = [v1[0], v1[1], v1[2]];
} else {
if (v1.length == 2) {
v3[v3.length] = [v1[0], (v1[0] + v1[1]) / 2, v1[1]];
}
}
}
}
return v6;
};
v2.killProps = function (lookup) {
for (var v4 in this._beziers) {
if (lookup[v4] != undefined) {
delete this._beziers[v4];
}
}
super.killProps(lookup);
};
v2.__set__changeFactor = function (n) {
var v3;
var v5;
var v4;
var v6;
var v7;
var v15;
var v16;
if (n == 1) {
for (v5 in this._beziers) {
v3 = this._beziers[v5].length - 1;
this._target[v5] = this._beziers[v5][v3][2];
}
} else {
for (v5 in this._beziers) {
v7 = this._beziers[v5].length;
if (n < 0) {
v3 = 0;
} else {
if (n >= 1) {
v3 = v7 - 1;
} else {
v3 = v7 * n >> 0;
}
}
v6 = (n - v3 * (1 / v7)) * v7;
v4 = this._beziers[v5][v3];
if (this.round) {
this._target[v5] = Math.round(v4[0] + v6 * (2 * (1 - v6) * (v4[1] - v4[0]) + v6 * (v4[2] - v4[0])));
} else {
this._target[v5] = v4[0] + v6 * (2 * (1 - v6) * (v4[1] - v4[0]) + v6 * (v4[2] - v4[0]));
}
}
}
if (this._orient == true) {
v3 = this._orientData.length;
var v9 = {};
var v11;
var v10;
var v2;
var v12;
while (v3-- > 0) {
v2 = this._orientData[v3];
v9[v2[0]] = this._target[v2[0]];
v9[v2[1]] = this._target[v2[1]];
}
var v13 = this._target;
var v14 = this.round;
this._target = this._future;
this.round = false;
this._orient = false;
v3 = this._orientData.length;
while (v3-- > 0) {
v2 = this._orientData[v3];
this.__set__changeFactor(n + (v2[4] || 0.01));
v12 = v2[3] || 0;
v11 = this._future[v2[0]] - v9[v2[0]];
v10 = this._future[v2[1]] - v9[v2[1]];
v13[v2[2]] = Math.atan2(v10, v11) * com.greensock.plugins.BezierPlugin._RAD2DEG + v12;
}
this._target = v13;
this.round = v14;
this._orient = true;
}
return this.__get__changeFactor();
};
v1.API = 1;
v1._RAD2DEG = 57.29577951308232;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.BezierPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 377 __Packages.com.greensock.plugins.BezierThroughPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BezierThroughPlugin) {
var v1 = function () {
super();
this.propName = 'bezierThrough';
};
com.greensock.plugins.BezierThroughPlugin = v1;
com.greensock.plugins.BezierThroughPlugin extends com.greensock.plugins.BezierPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (!(value instanceof Array)) {
return false;
}
this.init(tween, [value][0], true);
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.BezierThroughPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 378 __Packages.com.greensock.plugins.BlurFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.BlurFilterPlugin) {
var v1 = function () {
super();
this.propName = 'blurFilter';
this.overwriteProps = ['blurFilter'];
};
com.greensock.plugins.BlurFilterPlugin = v1;
com.greensock.plugins.BlurFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.BlurFilter;
this.initFilter(value, new flash.filters.BlurFilter(0, 0, value.quality || 2), com.greensock.plugins.BlurFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['blurX', 'blurY', 'quality'];
ASSetPropFlags(com.greensock.plugins.BlurFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 379 __Packages.com.greensock.plugins.ColorMatrixFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ColorMatrixFilterPlugin) {
var v1 = function () {
super();
this.propName = 'colorMatrixFilter';
this.overwriteProps = ['colorMatrixFilter'];
};
com.greensock.plugins.ColorMatrixFilterPlugin = v1;
com.greensock.plugins.ColorMatrixFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.ColorMatrixFilter;
var v3 = value;
this.initFilter({'remove': value.remove, 'index': value.index, 'addFilter': value.addFilter}, new flash.filters.ColorMatrixFilter(com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice()), com.greensock.plugins.ColorMatrixFilterPlugin._propNames);
this._matrix = (flash.filters.ColorMatrixFilter(this._filter)).matrix;
var v2 = [];
if (v3.matrix != undefined && v3.matrix instanceof Array) {
v2 = v3.matrix;
this._matrixTween = new com.greensock.plugins.EndArrayPlugin();
this._matrixTween.init(this._matrix, v2);
return true;
}
if (v3.relative == true) {
v2 = this._matrix.slice();
} else {
v2 = com.greensock.plugins.ColorMatrixFilterPlugin._idMatrix.slice();
}
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setBrightness(v2, v3.brightness);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setContrast(v2, v3.contrast);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setHue(v2, v3.hue);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setSaturation(v2, v3.saturation);
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.setThreshold(v2, v3.threshold);
if (!isNaN(v3.colorize)) {
v2 = com.greensock.plugins.ColorMatrixFilterPlugin.colorize(v2, v3.colorize, v3.amount);
}
this._matrixTween = new com.greensock.plugins.EndArrayPlugin();
this._matrixTween.init(this._matrix, v2);
return true;
};
v2.__set__changeFactor = function (n) {
this._matrixTween.__set__changeFactor(n);
(flash.filters.ColorMatrixFilter(this._filter)).matrix = this._matrix;
super.__set__changeFactor(n);
return this.__get__changeFactor();
};
v1.colorize = function (m, color, amount) {
if (isNaN(color)) {
return m;
var v3 = (color >> 16 & 255) / 255;
var v5 = (color >> 8 & 255) / 255;
var v2 = (color & 255) / 255;
var v4 = 1 - amount;
var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m);
}
if (isNaN(amount)) {
amount = 1;
}
var v3 = (color >> 16 & 255) / 255;
var v5 = (color >> 8 & 255) / 255;
var v2 = (color & 255) / 255;
var v4 = 1 - amount;
var v7 = [v4 + amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v3 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, v4 + amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, amount * v5 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR, amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, v4 + amount * v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v7, m);
};
v1.setThreshold = function (m, n) {
if (isNaN(n)) {
return m;
}
var v2 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, com.greensock.plugins.ColorMatrixFilterPlugin._lumR * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumG * 256, com.greensock.plugins.ColorMatrixFilterPlugin._lumB * 256, 0, -256 * n, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m);
};
v1.setHue = function (m, n) {
if (isNaN(n)) {
return m;
}
n *= 0.0174532925199433;
var v1 = Math.cos(n);
var v2 = Math.sin(n);
var v4 = [com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR) + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB), 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * 0.143, com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumG) + v2 * 0.14, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v2 * -0.283, 0, 0, com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumR + v2 * -(1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumR), com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v1 * -com.greensock.plugins.ColorMatrixFilterPlugin._lumG + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG, com.greensock.plugins.ColorMatrixFilterPlugin._lumB + v1 * (1 - com.greensock.plugins.ColorMatrixFilterPlugin._lumB) + v2 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v4, m);
};
v1.setBrightness = function (m, n) {
if (isNaN(n)) {
return m;
}
n = n * 100 - 100;
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix([1, 0, 0, 0, n, 0, 1, 0, 0, n, 0, 0, 1, 0, n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], m);
};
v1.setSaturation = function (m, n) {
if (isNaN(n)) {
return m;
}
var v4 = 1 - n;
var v2 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumR;
var v5 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumG;
var v1 = v4 * com.greensock.plugins.ColorMatrixFilterPlugin._lumB;
var v6 = [v2 + n, v5, v1, 0, 0, v2, v5 + n, v1, 0, 0, v2, v5, v1 + n, 0, 0, 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v6, m);
};
v1.setContrast = function (m, n) {
if (isNaN(n)) {
return m;
}
n += 0.01;
var v2 = [n, 0, 0, 0, 128 * (1 - n), 0, n, 0, 0, 128 * (1 - n), 0, 0, n, 0, 128 * (1 - n), 0, 0, 0, 1, 0];
return com.greensock.plugins.ColorMatrixFilterPlugin.applyMatrix(v2, m);
};
v1.applyMatrix = function (m, m2) {
if (!(m instanceof Array) || !(m2 instanceof Array)) {
return m2;
}
var v7 = [];
var v2 = 0;
var v5 = 0;
var v6;
var v1;
v6 = 0;
while (v6 < 4) {
v1 = 0;
while (v1 < 5) {
if (v1 == 4) {
v5 = m[v2 + 4];
} else {
v5 = 0;
}
v7[v2 + v1] = m[v2] * m2[v1] + m[v2 + 1] * m2[v1 + 5] + m[v2 + 2] * m2[v1 + 10] + m[v2 + 3] * m2[v1 + 15] + v5;
++v1;
}
v2 += 5;
++v6;
}
return v7;
};
v1.API = 1;
v1._propNames = [];
v1._idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
v1._lumR = 0.212671;
v1._lumG = 0.71516;
v1._lumB = 0.072169;
v2.addProperty('changeFactor', function () {}, v2.__set__changeFactor);
ASSetPropFlags(com.greensock.plugins.ColorMatrixFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 380 __Packages.com.greensock.plugins.ColorTransformPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ColorTransformPlugin) {
var v1 = function () {
super();
this.propName = 'colorTransform';
};
com.greensock.plugins.ColorTransformPlugin = v1;
com.greensock.plugins.ColorTransformPlugin extends com.greensock.plugins.TintPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof target != 'movieclip' && !(target instanceof TextField)) {
return false;
}
var v7 = new Color(target);
var v2 = v7.getTransform();
if (value.redMultiplier != undefined) {
v2.ra = value.redMultiplier * 100;
}
if (value.greenMultiplier != undefined) {
v2.ga = value.greenMultiplier * 100;
}
if (value.blueMultiplier != undefined) {
v2.ba = value.blueMultiplier * 100;
}
if (value.alphaMultiplier != undefined) {
v2.aa = value.alphaMultiplier * 100;
}
if (value.redOffset != undefined) {
v2.rb = value.redOffset;
}
if (value.greenOffset != undefined) {
v2.gb = value.greenOffset;
}
if (value.blueOffset != undefined) {
v2.bb = value.blueOffset;
}
if (value.alphaOffset != undefined) {
v2.ab = value.alphaOffset;
}
if (!isNaN(value.tint) || !isNaN(value.color)) {
var v4 = !isNaN(value.tint) ? value.tint : value.color;
if (v4 != null) {
v2.rb = Number(v4) >> 16;
v2.gb = Number(v4) >> 8 & 255;
v2.bb = Number(v4) & 255;
v2.ra = 0;
v2.ga = 0;
v2.ba = 0;
}
}
if (!isNaN(value.tintAmount)) {
var v5 = value.tintAmount / (1 - (v2.ra + v2.ga + v2.ba) / 300);
v2.rb *= v5;
v2.gb *= v5;
v2.bb *= v5;
v2.ba = (1 - value.tintAmount) * 100;
v2.ga = v2.ba;
v2.ra = v2.ba;
} else {
if (!isNaN(value.exposure)) {
v2.bb = 255 * (value.exposure - 1);
v2.gb = v2.bb;
v2.rb = v2.bb;
v2.ba = 100;
v2.ga = 100;
v2.ra = 100;
} else {
if (!isNaN(value.brightness)) {
v2.bb = Math.max(0, (value.brightness - 1) * 255);
v2.gb = v2.bb;
v2.rb = v2.bb;
v2.ba = (1 - Math.abs(value.brightness - 1)) * 100;
v2.ga = v2.ba;
v2.ra = v2.ba;
}
}
}
if (tween.vars._alpha != undefined && value.alphaMultiplier == undefined) {
v2.aa = tween.vars._alpha;
tween.killVars({'alpha': 1});
}
this.init(target, v2);
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.ColorTransformPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 381 __Packages.com.greensock.plugins.DropShadowFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.DropShadowFilterPlugin) {
var v1 = function () {
super();
this.propName = 'dropShadowFilter';
this.overwriteProps = ['dropShadowFilter'];
};
com.greensock.plugins.DropShadowFilterPlugin = v1;
com.greensock.plugins.DropShadowFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.DropShadowFilter;
this.initFilter(value, new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, value.quality || 2, value.inner, value.knockout, value.hideObject), com.greensock.plugins.DropShadowFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['distance', 'angle', 'color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout', 'hideObject'];
ASSetPropFlags(com.greensock.plugins.DropShadowFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 382 __Packages.com.greensock.plugins.FrameLabelPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.FrameLabelPlugin) {
var v1 = function () {
super();
this.propName = 'frameLabel';
};
com.greensock.plugins.FrameLabelPlugin = v1;
com.greensock.plugins.FrameLabelPlugin extends com.greensock.plugins.FramePlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof tween.target != 'movieclip') {
return false;
}
this._target = MovieClip(target);
this.frame = this._target._currentframe;
var v2 = this._target.duplicateMovieClip('__frameLabelPluginTempMC', this._target._parent.getNextHighestDepth());
v2.gotoAndStop(value);
var v3 = v2._currentframe;
v2.removeMovieClip();
if (this.frame != v3) {
this.addTween(this, 'frame', this.frame, v3, 'frame');
}
return true;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.FrameLabelPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 383 __Packages.com.greensock.plugins.GlowFilterPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.GlowFilterPlugin) {
var v1 = function () {
super();
this.propName = 'glowFilter';
this.overwriteProps = ['glowFilter'];
};
com.greensock.plugins.GlowFilterPlugin = v1;
com.greensock.plugins.GlowFilterPlugin extends com.greensock.plugins.FilterPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._target = target;
this._type = flash.filters.GlowFilter;
this.initFilter(value, new flash.filters.GlowFilter(16777215, 0, 0, 0, value.strength || 1, value.quality || 2, value.inner, value.knockout), com.greensock.plugins.GlowFilterPlugin._propNames);
return true;
};
v1.API = 1;
v1._propNames = ['color', 'alpha', 'blurX', 'blurY', 'strength', 'quality', 'inner', 'knockout'];
ASSetPropFlags(com.greensock.plugins.GlowFilterPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 384 __Packages.com.greensock.plugins.RoundPropsPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.RoundPropsPlugin) {
var v1 = function () {
super();
this.propName = 'roundProps';
this.overwriteProps = ['roundProps'];
this.round = true;
this.priority = -1;
this.onInitAllProps = this._initAllProps;
};
com.greensock.plugins.RoundPropsPlugin = v1;
com.greensock.plugins.RoundPropsPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
this._tween = tween;
var v2 = value;
this.overwriteProps = this.overwriteProps.concat(v2);
return true;
};
v2._initAllProps = function () {
var v3;
var v4;
var v6 = this._tween.vars.roundProps;
var v2;
var v5 = v6.length;
while (--v5 > -1) {
v3 = v6[v5];
v2 = this._tween.cachedPT1;
while (v2) {
if (v2.name == v3) {
if (v2.isPlugin) {
v2.target.round = true;
} else {
this.add(v2.target, v3, v2.start, v2.change);
this._removePropTween(v2);
this._tween.propTweenLookup[v3] = this._tween.propTweenLookup.roundProps;
}
} else {
if (v2.isPlugin && v2.name == '_MULTIPLE_' && !v2.target.round) {
v4 = ' ' + v2.target.overwriteProps.join(' ') + ' ';
if (v4.indexOf(' ' + v3 + ' ') != -1) {
v2.target.round = true;
}
}
}
v2 = v2.nextNode;
}
}
};
v2._removePropTween = function (propTween) {
if (propTween.nextNode) {
propTween.nextNode.prevNode = propTween.prevNode;
}
if (propTween.prevNode) {
propTween.prevNode.nextNode = propTween.nextNode;
} else {
if (this._tween.cachedPT1 == propTween) {
this._tween.cachedPT1 = propTween.nextNode;
}
}
if (propTween.isPlugin && propTween.target.onDisable) {
propTween.target.onDisable();
}
};
v2.add = function (object, propName, start, change) {
this.addTween(object, propName, start, start + change, propName);
this.overwriteProps[this.overwriteProps.length] = propName;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.RoundPropsPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 385 __Packages.com.greensock.plugins.ShortRotationPlugin {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.plugins) {
_global.com.greensock.plugins = new Object();
}
if (!_global.com.greensock.plugins.ShortRotationPlugin) {
var v1 = function () {
super();
this.propName = 'shortRotation';
this.overwriteProps = [];
};
com.greensock.plugins.ShortRotationPlugin = v1;
com.greensock.plugins.ShortRotationPlugin extends com.greensock.plugins.TweenPlugin;
var v2 = v1.prototype;
v2.onInitTween = function (target, value, tween) {
if (typeof value == 'number') {
return false;
}
for (var v4 in value) {
this.initRotation(target, v4, target[v4], (typeof value[v4] == 'number') ? Number(value[v4]) : target[v4] + Number(value[v4]));
}
return true;
};
v2.initRotation = function (target, propName, start, end) {
var v2 = (end - start) % 360;
if (v2 != v2 % 180) {
v2 = v2 < 0 ? v2 + 360 : v2 - 360;
}
this.addTween(target, propName, start, start + v2, propName);
this.overwriteProps[this.overwriteProps.length] = propName;
};
v1.API = 1;
ASSetPropFlags(com.greensock.plugins.ShortRotationPlugin.prototype, null, 1);
}
#endinitclip
}
movieClip 386 __Packages.com.greensock.OverwriteManager {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.OverwriteManager) {
var v1 = function () {};
com.greensock.OverwriteManager = v1;
var v2 = v1.prototype;
v1.init = function (defaultMode) {
if (com.greensock.TweenLite.version < 11.6) {
}
com.greensock.TweenLite.overwriteManager = com.greensock.OverwriteManager;
if (defaultMode != undefined) {
com.greensock.OverwriteManager.mode = defaultMode;
com.greensock.OverwriteManager.enabled = true;
return com.greensock.OverwriteManager.mode;
}
com.greensock.OverwriteManager.mode = 2;
com.greensock.OverwriteManager.enabled = true;
return com.greensock.OverwriteManager.mode;
};
v1.manageOverwrites = function (tween, props, targetTweens, mode) {
var v3;
var v10;
var v1;
if (mode >= 4) {
var v17 = targetTweens.length;
v3 = 0;
while (v3 < v17) {
v1 = targetTweens[v3];
if (v1 != tween) {
if (v1.setEnabled(false, false)) {
v10 = true;
}
} else {
if (mode == 5) {
break;
}
}
++v3;
}
return v10;
}
var v5 = tween.cachedStartTime + 1.0e-010;
var v9 = [];
var v13 = [];
var v15 = 0;
var v12 = 0;
v3 = targetTweens.length;
while (--v3 > -1) {
v1 = targetTweens[v3];
if (v1 == tween || v1.gc || !v1.initted && v5 - v1.cachedStartTime <= 2.0e-010) {
} else {
if (v1.timeline != tween.timeline) {
if (!com.greensock.OverwriteManager.getGlobalPaused(v1)) {
v13[v15++] = v1;
}
} else {
if (v1.cachedStartTime <= v5 && v1.cachedStartTime + v1.__get__totalDuration() + 1.0e-010 > v5 && !v1.cachedPaused && !(tween.cachedDuration == 0 && v5 - v1.cachedStartTime <= 2.0e-010)) {
v9[v12++] = v1;
}
}
}
}
if (v15 != 0) {
var v6 = tween.cachedTimeScale;
var v7 = v5;
var v4;
var v11;
var v2;
v2 = tween.timeline;
while (v2) {
v6 *= v2.cachedTimeScale;
v7 += v2.cachedStartTime;
v2 = v2.timeline;
}
v5 = v6 * v7;
v3 = v15;
while (--v3 > -1) {
v4 = v13[v3];
v6 = v4.cachedTimeScale;
v7 = v4.cachedStartTime;
v2 = v4.timeline;
while (v2) {
v6 *= v2.cachedTimeScale;
v7 += v2.cachedStartTime;
v2 = v2.timeline;
}
v11 = v6 * v7;
if (v11 <= v5 && (v11 + v4.__get__totalDuration() * v6 + 1.0e-010 > v5 || v4.cachedDuration == 0)) {
v9[v12++] = v4;
}
}
}
if (v12 == 0) {
return v10;
}
v3 = v12;
if (mode == 2) {
while (--v3 > -1) {
v1 = v9[v3];
if (v1.killVars(props)) {
v10 = true;
}
if (v1.cachedPT1 == undefined && v1.initted) {
v1.setEnabled(false, false);
}
}
return v10;
}
while (--v3 > -1) {
if (v9[v3].setEnabled(false, false)) {
v10 = true;
}
}
return v10;
};
v1.getGlobalPaused = function (tween) {
while (tween) {
if (tween.cachedPaused) {
return true;
}
tween = tween.timeline;
}
return false;
};
v1.version = 6.1;
v1.NONE = 0;
v1.ALL_IMMEDIATE = 1;
v1.AUTO = 2;
v1.CONCURRENT = 3;
v1.ALL_ONSTART = 4;
v1.PREEXISTING = 5;
ASSetPropFlags(com.greensock.OverwriteManager.prototype, null, 1);
}
#endinitclip
}
movieClip 387 __Packages.com.greensock.TweenMax {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.greensock) {
_global.com.greensock = new Object();
}
if (!_global.com.greensock.TweenMax) {
var v1 = function (target, duration, vars) {
super(target, duration, vars);
if (com.greensock.TweenLite.version < 11.2) {
}
this._cyclesComplete = 0;
this.yoyo = Boolean(this.vars.yoyo);
this._repeat = this.vars.repeat || 0;
this._repeatDelay = this.vars.repeatDelay || 0;
this.cacheIsDirty = true;
if (this.vars.timeScale != undefined && !(this.target instanceof com.greensock.core.TweenCore)) {
this.cachedTimeScale = this.vars.timeScale;
}
};
com.greensock.TweenMax = v1;
com.greensock.TweenMax extends com.greensock.TweenLite;
var v2 = v1.prototype;
v2.init = function () {
if (this.vars.startAt) {
this.vars.startAt.overwrite = 0;
this.vars.startAt.immediateRender = true;
var v3 = new com.greensock.TweenMax(this.target, 0, this.vars.startAt);
}
super.init();
};
v2.invalidate = function () {
this.yoyo = Boolean(this.vars.yoyo);
this._repeat = this.vars.repeat || 0;
this._repeatDelay = this.vars.repeatDelay || 0;
this.setDirtyCache(true);
super.invalidate();
};
v2.updateTo = function (vars, resetDuration) {
var v7 = this.ratio;
if (resetDuration && this.timeline != undefined && this.cachedStartTime < this.timeline.cachedTime) {
this.cachedStartTime = this.timeline.cachedTime;
this.setDirtyCache(false);
if (this.gc) {
this.setEnabled(true, false);
} else {
this.timeline.insert(this, this.cachedStartTime - this._delay);
}
}
for (var v6 in vars) {
this.vars[v6] = vars[v6];
}
if (this.initted) {
if (resetDuration) {
this.initted = false;
} else {
if (this._notifyPluginsOfEnabled && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onDisable', this);
}
if (this.cachedTime / this.cachedDuration > 0.998) {
var v8 = this.cachedTime;
this.renderTime(0, true, false);
this.initted = false;
this.renderTime(v8, true, false);
} else {
if (this.cachedTime > 0) {
this.initted = false;
this.init();
var v5 = 1 / (1 - v7);
var v2 = this.cachedPT1;
var v3;
while (v2) {
v3 = v2.start + v2.change;
v2.change *= v5;
v2.start = v3 - v2.change;
v2 = v2.nextNode;
}
}
}
}
}
};
v2.setDestination = function (property, value, adjustStartValues) {
var v2 = {};
v2[property] = value;
this.updateTo(v2, Boolean(adjustStartValues != false));
};
v2.killProperties = function (names) {
var v3 = {};
var v2 = names.length;
while (--v2 > -1) {
v3[names[v2]] = true;
}
this.killVars(v3);
};
v2.renderTime = function (time, suppressEvents, force) {
var v9 = this.cacheIsDirty ? this.__get__totalDuration() : this.cachedTotalDuration;
var v7 = this.cachedTotalTime;
var v5;
var v11;
var v6;
if (time >= v9) {
this.cachedTotalTime = v9;
this.cachedTime = this.cachedDuration;
this.ratio = 1;
v5 = true;
if (this.cachedDuration == 0) {
if ((time == 0 || this._rawPrevTime < 0) && this._rawPrevTime != time) {
force = true;
}
this._rawPrevTime = time;
}
} else {
if (time <= 0) {
if (time < 0) {
this.active = false;
if (this.cachedDuration == 0) {
if (this._rawPrevTime >= 0) {
force = true;
v5 = true;
}
this._rawPrevTime = time;
}
} else {
if (time == 0 && !this.initted) {
force = true;
}
}
this.ratio = 0;
this.cachedTime = 0;
this.cachedTotalTime = 0;
if (this.cachedReversed && v7 != 0) {
v5 = true;
}
} else {
this.cachedTime = time;
this.cachedTotalTime = this.cachedTime;
v6 = true;
}
}
if (this._repeat != 0) {
var v4 = this.cachedDuration + this._repeatDelay;
var v12 = this._cyclesComplete;
this._cyclesComplete = this.cachedTotalTime / v4 >> 0;
if (this._cyclesComplete == this.cachedTotalTime / v4) {
--this._cyclesComplete;
}
if (v12 != this._cyclesComplete) {
v11 = true;
}
if (v5) {
if (this.yoyo && this._repeat % 2) {
this.ratio = 0;
this.cachedTime = 0;
}
} else {
if (time > 0) {
this.cachedTime = (this.cachedTotalTime / v4 - this._cyclesComplete) * v4;
if (this.yoyo && this._cyclesComplete % 2) {
this.cachedTime = this.cachedDuration - this.cachedTime;
} else {
if (this.cachedTime >= this.cachedDuration) {
this.cachedTime = this.cachedDuration;
this.ratio = 1;
v6 = false;
}
}
if (this.cachedTime <= 0) {
this.ratio = 0;
this.cachedTime = 0;
v6 = false;
}
} else {
this._cyclesComplete = 0;
}
}
}
if (v7 == this.cachedTotalTime && !force) {
return undefined;
} else {
if (!this.initted) {
this.init();
}
}
if (!this.active && !this.cachedPaused) {
this.active = true;
}
if (v6) {
this.ratio = this._ease(this.cachedTime, 0, 1, this.cachedDuration);
}
if (v7 == 0 && this.vars.onStart && (this.cachedTotalTime != 0 || this.cachedDuration == 0) && !suppressEvents) {
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
}
var v2 = this.cachedPT1;
while (v2) {
v2.target[v2.property] = v2.start + this.ratio * v2.change;
v2 = v2.nextNode;
}
if (this._hasUpdate && !suppressEvents) {
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
}
if (v11 && !suppressEvents && !this.gc) {
if (this.vars.onRepeat) {
this.vars.onRepeat.apply(this.vars.onRepeatScope, this.vars.onRepeatParams);
}
}
if (v5 && !this.gc) {
if (this._hasPlugins && this.cachedPT1) {
com.greensock.TweenLite.onPluginEvent('onComplete', this);
}
this.complete(true, suppressEvents);
}
};
v1.to = function (target, duration, vars) {
return new com.greensock.TweenMax(target, duration, vars);
};
v1.from = function (target, duration, vars) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return new com.greensock.TweenMax(target, duration, vars);
};
v1.fromTo = function (target, duration, fromVars, toVars) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return new com.greensock.TweenMax(target, duration, toVars);
};
v1.allTo = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
var v2;
var v3;
var v1;
if (stagger == undefined) {
stagger = 0;
}
var v7 = targets.length;
var v6 = [];
var v5 = vars.delay || 0;
var onCompleteProxy = vars.onComplete;
var onCompleteParamsProxy = vars.onCompleteParams;
var onCompleteScopeProxy = vars.onCompleteScope;
var v9 = v7 - 1;
v2 = 0;
while (v2 < v7) {
v3 = {};
for (v1 in vars) {
v3[v1] = vars[v1];
}
v3.delay = v5;
if (v2 == v9 && onCompleteAll != undefined) {
v3.onComplete = function () {
if (onCompleteProxy != undefined) {
onCompleteProxy.apply(onCompleteScopeProxy, onCompleteParamsProxy);
}
onCompleteAll.apply(onCompleteAllScope, onCompleteAllParams);
};
}
v6[v2] = new com.greensock.TweenMax(targets[v2], duration, v3);
v5 += stagger;
++v2;
}
return v6;
};
v1.allFrom = function (targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
vars.runBackwards = true;
if (vars.immediateRender != false) {
vars.immediateRender = true;
}
return com.greensock.TweenMax.allTo(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
};
v1.allFromTo = function (targets, duration, fromVars, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
toVars.startAt = fromVars;
if (fromVars.immediateRender) {
toVars.immediateRender = true;
}
return com.greensock.TweenMax.allTo(targets, duration, toVars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope);
};
v1.delayedCall = function (delay, onComplete, onCompleteParams, onCompleteScope, useFrames) {
return new com.greensock.TweenMax(onComplete, 0, {'delay': delay, 'onComplete': onComplete, 'onCompleteParams': onCompleteParams, 'onCompleteScope': onCompleteScope, 'immediateRender': false, 'useFrames': useFrames, 'overwrite': 0});
};
v1.getTweensOf = function (target) {
var v2 = com.greensock.TweenLite.masterList[target].tweens;
var v3 = [];
if (v2) {
var v1 = v2.length;
while (--v1 > -1) {
if (!v2[v1].gc) {
v3[v3.length] = v2[v1];
}
}
}
return v3;
};
v1.isTweening = function (target) {
var v3 = com.greensock.TweenMax.getTweensOf(target);
var v2 = v3.length;
var v1;
while (--v2 > -1) {
v1 = v3[v2];
if (v1.active || v1.cachedStartTime == v1.timeline.cachedTime && v1.timeline.active) {
return true;
}
}
return false;
};
v1.getAllTweens = function () {
var v5 = com.greensock.TweenLite.masterList;
var v4 = 0;
var v3 = [];
var v2;
var v1;
for (var v6 in v5) {
v2 = v5[v6].tweens;
v1 = v2.length;
while (--v1 > -1) {
if (!v2[v1].gc) {
v3[v4++] = v2[v1];
}
}
}
return v3;
};
v1.killAll = function (complete, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var v2 = com.greensock.TweenMax.getAllTweens();
var v3;
var v1 = v2.length;
while (--v1 > -1) {
v3 = v2[v1].target == v2[v1].vars.onComplete;
if (v3 == delayedCalls || v3 != tweens) {
if (complete == true) {
v2[v1].complete(false, false);
} else {
v2[v1].setEnabled(false, false);
}
}
}
};
v1.killChildTweensOf = function (parent, complete) {
var v3 = com.greensock.TweenMax.getAllTweens();
var v4;
var v1;
var v2 = v3.length;
while (--v2 > -1) {
v4 = v3[v2].target;
if (v4 instanceof MovieClip) {
v1 = v4._parent;
while (v1) {
if (v1 == parent) {
if (complete == true) {
v3[v2].complete(false, false);
} else {
v3[v2].setEnabled(false, false);
}
}
v1 = v1._parent;
}
}
}
};
v1.pauseAll = function (tweens, delayedCalls) {
com.greensock.TweenMax.changePause(true, tweens, delayedCalls);
};
v1.resumeAll = function (tweens, delayedCalls) {
com.greensock.TweenMax.changePause(false, tweens, delayedCalls);
};
v1.changePause = function (pause, tweens, delayedCalls) {
if (tweens == undefined) {
tweens = true;
}
if (delayedCalls == undefined) {
delayedCalls = true;
}
var v2 = com.greensock.TweenMax.getAllTweens();
var v3;
var v1 = v2.length;
while (--v1 > -1) {
v3 = Boolean(v2[v1].target == v2[v1].vars.onComplete);
if (v3 == delayedCalls || v3 != tweens) {
v2[v1].paused = pause;
}
}
};
v2.__get__currentProgress = function () {
return this.cachedTime / this.__get__duration();
};
v2.__set__currentProgress = function (n) {
if (this._cyclesComplete == 0) {
this.setTotalTime(this.__get__duration() * n, false);
} else {
this.setTotalTime(this.__get__duration() * n + this._cyclesComplete * this.cachedDuration, false);
}
return this.__get__currentProgress();
};
v2.__get__totalProgress = function () {
return this.cachedTotalTime / this.__get__totalDuration();
};
v2.__set__totalProgress = function (n) {
this.setTotalTime(this.__get__totalDuration() * n, false);
return this.__get__totalProgress();
};
v2.__get__currentTime = function () {
return this.cachedTime;
};
v2.__set__currentTime = function (n) {
if (this._cyclesComplete == 0) {
} else {
if (this.yoyo && this._cyclesComplete % 2 == 1) {
n = this.__get__duration() - n + this._cyclesComplete * (this.cachedDuration + this._repeatDelay);
} else {
n += this._cyclesComplete * (this.__get__duration() + this._repeatDelay);
}
}
this.setTotalTime(n, false);
return this.__get__currentTime();
};
v2.__get__totalDuration = function () {
if (this.cacheIsDirty) {
this.cachedTotalDuration = (this._repeat == -1) ? 999999999999.0 : this.cachedDuration * (this._repeat + 1) + this._repeatDelay * this._repeat;
this.cacheIsDirty = false;
}
return this.cachedTotalDuration;
};
v2.__set__totalDuration = function (n) {
if (this._repeat == -1) {
return undefined;
}
this.__set__duration((n - this._repeat * this._repeatDelay) / (this._repeat + 1));
return this.__get__totalDuration();
};
v2.__get__timeScale = function () {
return this.cachedTimeScale;
};
v2.__set__timeScale = function (n) {
if (n == 0) {
n = 0.0001;
}
var v3 = (this.cachedPauseTime || this.cachedPauseTime == 0) ? this.cachedPauseTime : this.timeline.cachedTotalTime;
this.cachedStartTime = v3 - (v3 - this.cachedStartTime) * this.cachedTimeScale / n;
this.cachedTimeScale = n;
this.setDirtyCache(false);
return this.__get__timeScale();
};
v2.__get__repeat = function () {
return this._repeat;
};
v2.__set__repeat = function (n) {
this._repeat = n;
this.setDirtyCache(true);
return this.__get__repeat();
};
v2.__get__repeatDelay = function () {
return this._repeatDelay;
};
v2.__set__repeatDelay = function (n) {
this._repeatDelay = n;
this.setDirtyCache(true);
return this.__get__repeatDelay();
};
v1.__get__globalTimeScale = function () {
return (com.greensock.TweenLite.rootTimeline == undefined) ? 1 : com.greensock.TweenLite.rootTimeline.cachedTimeScale;
};
v1.__set__globalTimeScale = function (n) {
if (n == 0) {
n = 0.0001;
}
if (com.greensock.TweenLite.rootTimeline == undefined) {
com.greensock.TweenLite.to({}, 0, {});
}
var v1 = com.greensock.TweenLite.rootTimeline;
var v2 = getTimer() * 0.001;
v1.cachedStartTime = v2 - (v2 - v1.cachedStartTime) * v1.cachedTimeScale / n;
v1 = com.greensock.TweenLite.rootFramesTimeline;
v2 = com.greensock.TweenLite.rootFrame;
v1.cachedStartTime = v2 - (v2 - v1.cachedStartTime) * v1.cachedTimeScale / n;
com.greensock.TweenLite.rootTimeline.cachedTimeScale = n;
com.greensock.TweenLite.rootFramesTimeline.cachedTimeScale = com.greensock.TweenLite.rootTimeline.cachedTimeScale;
return com.greensock.TweenMax.__get__globalTimeScale();
};
v1.version = 11.68;
v1._activatedPlugins = com.greensock.plugins.TweenPlugin.activate([com.greensock.plugins.AutoAlphaPlugin, com.greensock.plugins.EndArrayPlugin, com.greensock.plugins.FramePlugin, com.greensock.plugins.RemoveTintPlugin, com.greensock.plugins.TintPlugin, com.greensock.plugins.VisiblePlugin, com.greensock.plugins.VolumePlugin, com.greensock.plugins.BevelFilterPlugin, com.greensock.plugins.BezierPlugin, com.greensock.plugins.BezierThroughPlugin, com.greensock.plugins.BlurFilterPlugin, com.greensock.plugins.ColorMatrixFilterPlugin, com.greensock.plugins.ColorTransformPlugin, com.greensock.plugins.DropShadowFilterPlugin, com.greensock.plugins.FrameLabelPlugin, com.greensock.plugins.GlowFilterPlugin, com.greensock.plugins.HexColorsPlugin, com.greensock.plugins.RoundPropsPlugin, com.greensock.plugins.ShortRotationPlugin, {}]);
v1._overwriteMode = com.greensock.OverwriteManager.enabled ? com.greensock.OverwriteManager.mode : com.greensock.OverwriteManager.init(2);
v1.killTweensOf = com.greensock.TweenLite.killTweensOf;
v1.killDelayedCallsTo = com.greensock.TweenLite.killTweensOf;
v2.addProperty('currentProgress', v2.__get__currentProgress, v2.__set__currentProgress);
v2.addProperty('currentTime', v2.__get__currentTime, v2.__set__currentTime);
v1.addProperty('globalTimeScale', v1.__get__globalTimeScale, v1.__set__globalTimeScale);
v2.addProperty('repeat', v2.__get__repeat, v2.__set__repeat);
v2.addProperty('repeatDelay', v2.__get__repeatDelay, v2.__set__repeatDelay);
v2.addProperty('timeScale', v2.__get__timeScale, v2.__set__timeScale);
v2.addProperty('totalDuration', v2.__get__totalDuration, v2.__set__totalDuration);
v2.addProperty('totalProgress', v2.__get__totalProgress, v2.__set__totalProgress);
ASSetPropFlags(com.greensock.TweenMax.prototype, null, 1);
}
#endinitclip
}
movieClip 388 __Packages.com.clubpenguin.games.beatbox.util.CustomButton {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util) {
_global.com.clubpenguin.games.beatbox.util = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util.CustomButton) {
var v1 = function () {
super();
this.onReleaseOutside = com.clubpenguin.util.Delegate.create(this, this.handleReleaseOutside);
this.onRollOut = com.clubpenguin.util.Delegate.create(this, this.handleRollOut);
this.onRollOver = com.clubpenguin.util.Delegate.create(this, this.handleRollOver);
this.onPress = com.clubpenguin.util.Delegate.create(this, this.handlePress);
};
com.clubpenguin.games.beatbox.util.CustomButton = v1;
com.clubpenguin.games.beatbox.util.CustomButton extends MovieClip;
var v2 = v1.prototype;
v2.handlePress = function () {
this.gotoAndStop('press');
};
v2.handleRelease = function () {
this.gotoAndStop('default');
};
v2.handleRollOver = function () {
this.gotoAndStop('rollover');
};
v2.handleRollOut = function () {
this.gotoAndStop('default');
};
v2.handleReleaseOutside = function () {
this.gotoAndStop('default');
};
ASSetPropFlags(com.clubpenguin.games.beatbox.util.CustomButton.prototype, null, 1);
}
#endinitclip
}
movieClip 389 __Packages.com.clubpenguin.util.Delegate {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.Delegate) {
var v1 = function () {};
com.clubpenguin.util.Delegate = v1;
var v2 = v1.prototype;
v1.create = function (target, handler) {
var v2 = function () {
var v2 = arguments.callee;
var v3 = arguments.concat(v2.initArgs);
return v2.handler.apply(v2.target, v3);
};
v2.target = target;
v2.handler = handler;
v2.initArgs = arguments.slice(2);
return v2;
};
ASSetPropFlags(com.clubpenguin.util.Delegate.prototype, null, 1);
}
#endinitclip
}
movieClip 390 __Packages.com.clubpenguin.lib.event.IEventDispatcher {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.event) {
_global.com.clubpenguin.lib.event = new Object();
}
if (!_global.com.clubpenguin.lib.event.IEventDispatcher) {
_global.com.clubpenguin.lib.event.IEventDispatcher = function () {};
}
#endinitclip
}
movieClip 391 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.Dialogue {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.Dialogue) {
var v1 = function () {
super();
this.__menuHost = com.clubpenguin.games.beatbox.menus.MenuSystem(this._parent);
this._x = this.__menuX;
this._y = this.__menuY;
this.stop();
};
com.clubpenguin.games.beatbox.menus.dialogue.Dialogue = v1;
com.clubpenguin.games.beatbox.menus.dialogue.Dialogue extends MovieClip;
var v2 = v1.prototype;
_global.com.clubpenguin.games.beatbox.menus.dialogue.Dialogue implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.show = function () {
this.gotoAndStop('show');
this.onEnterFrame = this.showFrameRendered;
};
v2.__get__contentTest = function () {
return false;
};
v2.showFrameRendered = function () {
if (this.__get__contentTest()) {
delete this.onEnterFrame;
this.btnClose.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCloseRelease);
this.init();
}
};
v2.init = function () {};
v2.hide = function () {
this.gotoAndStop('hide');
};
v2.getUniqueName = function () {
return this._name;
};
v2.handleMessage = function (_message) {};
v2.setSongName = function (_songName) {};
v2.buildSongForPlayback = function (_data, _container) {};
v2.handleCloseRelease = function () {
this.hide();
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_CHOOSE_SONG));
};
v2.populateListItems = function (_listItems) {};
v2.handleSongPlaybackComplete = function () {};
v2.__menuX = 300;
v2.__menuY = 215;
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.Dialogue.prototype, null, 1);
}
#endinitclip
}
movieClip 392 __Packages.com.clubpenguin.games.beatbox.menus.MenuSystem {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.MenuSystem) {
var v1 = function () {
super();
this.songChooser = com.clubpenguin.games.beatbox.SongChooser(this._parent);
};
com.clubpenguin.games.beatbox.menus.MenuSystem = v1;
com.clubpenguin.games.beatbox.menus.MenuSystem extends MovieClip;
var v2 = v1.prototype;
v2.init = function () {
this.container = this.createEmptyMovieClip('containerMC', this.getNextHighestDepth());
this.container.stop();
this.container.createEmptyMovieClip('soundHolder', this.container.getNextHighestDepth());
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.CLOSE_EVENT, this.handleCloseEvent, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.ACCEPT_EVENT, this.handleAcceptEvent, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.CONFIRM_SAVE_EVENT, this.handleConfirmSaveEvent, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SEND_SAVE_DATA_EVENT, this.handleSendSaveDataEvent, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_NEXT_DIALOGUE, this.showNextDialogue, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_CHOOSE_SONG, this.showChooseSong, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_CONFIRM, this.handleConfirmDelete, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_NEW_SONG, this.handlePlaybackNewSong, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.GO_TO_IGLOO, this.handleGoToIgloo, this);
};
v2.setSongData = function (_dataSaver) {
this.__gameData = _dataSaver.__newGameData;
this.__gameDataSaver = _dataSaver;
};
v2.__get__songData = function () {
return this.__gameData;
};
v2.showChooseSong = function () {
this.songChooser.showChooseSongs();
this.songChooser.stopCurrentSong();
this.__currentDialogue.hide();
};
v2.showMenu = function (_menuName) {
this.__currentDialogue.hide();
switch (_menuName) {
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_DELETE_MIX:
this.__currentDialogue = this.dialogueDeleteMix;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_MIXES_FULL:
this.__currentDialogue = this.dialogueMixesFull;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_MIX_SAVED:
this.__currentDialogue = this.dialogueMixSaved;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_NAME_MIX:
this.__currentDialogue = this.dialogueNameMix;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_OOPS_MESSAGE:
this.__currentDialogue = this.dialogueOopsMessage;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_SAVE:
this.__currentDialogue = this.dialogueSave;
break;
case com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_SELECT_MIX:
this.__currentDialogue = this.dialogueSelectMix;
}
this.__currentDialogue.show();
};
v2.handleAcceptEvent = function (_event) {
this.__currentDialogue.hide();
};
v2.handleConfirmSaveEvent = function (_event) {
var v2;
v2 = (_event.__get__data())._nextDialogue;
this.showMenu(v2);
};
v2.handleCloseEvent = function (_event) {
this.__currentDialogue.hide();
this.showChooseSong();
};
v2.showNextDialogue = function (_event) {
var v2;
v2 = (_event.__get__data())._nextDialogue;
this.showMenu(v2);
};
v2.getCurrentSongName = function () {
return this.__currentSongName;
};
v2.handleSendSaveDataEvent = function (_event) {
this.__currentSongName = (_event.__get__data())._songName.toString();
this.__emptySongs = this.songChooser.getAvailableSongSlots();
if (this.__emptySongs.length == 0) {
this.showMenu(com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_MIXES_FULL);
return undefined;
}
var v2;
v2 = (this.__emptySongs.splice(0, 1))[0] - 1;
this.__gameData.setString((_event.__get__data())._songName.toString(), 0);
this.songChooser.saveActiveSong(v2);
this.__songNames.splice(v2, 1, this.__currentSongName);
this.__songs.splice(v2, 1, this.songChooser.__activeSong);
this.songChooser.dispatchNewSongNames(this.__songs, this.__songNames);
this.showMenu(com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_MIX_SAVED);
};
v2.handleConfirmDelete = function (_event) {
var v3;
v3 = (_event.__get__data()).id;
this.__gameData.setString(this.__currentSongName, 0);
this.songChooser.saveActiveSong(v3);
this.__songNames.splice((_event.__get__data()).id, 1, this.__currentSongName);
this.__songs.splice((_event.__get__data()).id, 1, this.songChooser.__activeSong);
this.songChooser.dispatchNewSongNames(this.__songs, this.__songNames);
this.showMenu(com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_MIX_SAVED);
};
v2.handleGoToIgloo = function () {
this.songChooser.handleGoToIgloo();
};
v2.getListInfo = function () {
this.dialogueDeleteMix.populateListItems(this.__songs, this.__listItems);
};
v2.handlePlaybackNewSong = function () {
this.songChooser.playSong();
};
v2.populateList = function (songs, _listItems, _songNames) {
this.__songNames = _songNames;
this.__songs = songs;
this.__listItems = _listItems;
};
v2.handleSongPlaybackComplete = function () {
this.__currentDialogue.handleSongPlaybackComplete();
};
v2.handleSongComplete = function () {
this.__currentDialogue.handleMessage('songComplete');
};
v1.DIALOGUE_DELETE_MIX = 'DialogueDeleteMix';
v1.DIALOGUE_MIXES_FULL = 'DialogueMixesFull';
v1.DIALOGUE_MIX_SAVED = 'DialogueMixSaved';
v1.DIALOGUE_NAME_MIX = 'DialogueNameMix';
v1.DIALOGUE_OOPS_MESSAGE = 'DialogueOopsMessage';
v1.DIALOGUE_SAVE = 'DialogueSave';
v1.DIALOGUE_SELECT_MIX = 'DialogueSelectMix';
v2.addProperty('songData', v2.__get__songData, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.MenuSystem.prototype, null, 1);
}
#endinitclip
}
movieClip 393 __Packages.com.clubpenguin.games.beatbox.playback.SoundControlPlayback {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback) {
_global.com.clubpenguin.games.beatbox.playback = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback.SoundControlPlayback) {
var v1 = function () {
this.__uid = ++com.clubpenguin.games.beatbox.playback.SoundControlPlayback.$_uids;
this.__triggerSound = new com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound();
this.__loop = false;
};
com.clubpenguin.games.beatbox.playback.SoundControlPlayback = v1;
var v2 = v1.prototype;
v2.prepareData = function (_songData, _playBackSounds, _loop, _callBack) {
this.__loop = _loop;
this.__playbackSoundsHolder = _playBackSounds;
this.__completeSongCallback = _callBack;
if (!this.__isSongPlaying) {
this.setReady();
}
};
v2.setReady = function () {
this.__triggerSound.init();
if (!this.__ready) {
this.__ready = true;
return undefined;
}
};
v2.startSong = function (_song) {
this.__song = _song;
this.__actionSet = new Array();
this.__actionSet = _song.songReference;
this.__originalActionSet = new Array();
this.__originalActionSet = _song.songReference;
this.__ready = false;
this.__triggerSound.loadLoops(this.__playbackSoundsHolder);
this.__playInterval = setInterval(com.clubpenguin.util.Delegate.create(this, this.songReadyToStart), 500);
};
v2.songReadyToStart = function () {
clearInterval(this.__playInterval);
this.__triggerSound.startLoops(this.__playbackSoundsHolder);
this.__isSongPlaying = true;
this.fireNextTrigger();
};
v2.fireNextTrigger = function () {
this.__previousAction = this.__currentAction;
var v2;
this.__currentAction = com.clubpenguin.games.beatbox.util.MixMasterAction(this.__actionSet.shift());
v2 = (this.__previousAction == null) ? this.__currentAction.time : this.__currentAction.time - this.__previousAction.time;
this.__triggerSound.playSound(this.__currentAction.id, this.__playbackSoundsHolder);
this.__playInterval = setInterval(com.clubpenguin.util.Delegate.create(this, this.triggerEventInterval), v2, this.__currentAction.id, this);
};
v2.stopAllSounds = function () {
this.__triggerSound.stopAllSounds();
clearInterval(this.__playInterval);
this.__isSongPlaying = false;
};
v2.destroy = function () {
clearInterval(this.__playInterval);
this.__isSongPlaying = false;
this.__triggerSound.clearSounds();
};
v2.dispatchComplete = function () {
this.__completeSongCallback();
};
v2.triggerEventInterval = function (_id) {
clearInterval(this.__playInterval);
if (_id != this.STOP_RECORD_ID) {
this.fireNextTrigger();
} else {
if (this.__loop) {
this.__triggerSound.stopAllSounds();
this.__triggerSound.resetSounds();
this.prepareData(null, this.__playbackSoundsHolder, this.__loop);
this.startSong(this.__song);
return undefined;
}
this.__isSongPlaying = false;
stopAllSounds();
this.dispatchComplete();
}
};
v2.toString = function () {
return '[SoundControlPlayback]';
};
v1.$_uids = -1;
v2.STOP_RECORD_ID = 0;
v2.__isSongPlaying = false;
ASSetPropFlags(com.clubpenguin.games.beatbox.playback.SoundControlPlayback.prototype, null, 1);
}
#endinitclip
}
movieClip 394 __Packages.com.clubpenguin.games.beatbox.util.MixMasterAction {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util) {
_global.com.clubpenguin.games.beatbox.util = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util.MixMasterAction) {
var v1 = function (_time, _id) {
if (!isNaN(_time) || !isNaN(_id)) {
this.defineAction(_time, _id);
}
};
com.clubpenguin.games.beatbox.util.MixMasterAction = v1;
var v2 = v1.prototype;
v2.defineAction = function (_time, _id) {
this.time = _time;
this.id = _id;
};
v2.toString = function () {
return '[MixMasterAction]';
};
ASSetPropFlags(com.clubpenguin.games.beatbox.util.MixMasterAction.prototype, null, 1);
}
#endinitclip
}
movieClip 395 __Packages.com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback) {
_global.com.clubpenguin.games.beatbox.playback = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound) {
var v1 = function () {
++com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound.UID;
};
com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound = v1;
var v2 = v1.prototype;
v2.init = function () {
this.__loopIDArray = new Array();
this.__loopHolder = new Array();
this.__loopContainer = new Array();
this.__loopIDArray = ['31', '33', '32', '38', '35', '37', '39', '34', '36', '41', '43', '40', '42', '44'];
};
v2.loadLoops = function (_mc) {
var v3 = 0;
while (v3 < this.__loopIDArray.length) {
var v2;
v2 = this.__loopIDArray[v3];
_mc.createEmptyMovieClip(v2, _mc.getNextHighestDepth());
var v5 = new Sound(_mc[v2]);
v5.attachSound(v2);
this.__loopHolder[v2] = v5;
this.__loopContainer.push(_mc);
++v3;
}
};
v2.startLoops = function (_mc) {
var v3 = 0;
while (v3 < this.__loopIDArray.length) {
var v2;
v2 = this.__loopIDArray[v3];
this.__loopHolder[v2].start(0, 9999);
this.__loopHolder[v2].setVolume(0);
++v3;
}
};
v2.playSound = function (_id, _soundContainer) {
switch (_id) {
case com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound.STOP_SOUND_ID:
return undefined;
case com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound.MUTE_SOUND_ID:
return undefined;
}
var v3;
var v5;
var v6;
v6 = false;
var v2 = 0;
while (v2 < this.__loopIDArray.length) {
if (this.__loopIDArray[v2] == _id.toString()) {
v6 = true;
v5 = _id.toString();
v3 = this.__loopHolder[v5];
if (v3.getVolume() == 100) {
v3.setVolume(0);
} else {
v3.setVolume(100);
}
}
++v2;
}
if (!v6) {
var v7 = new Sound(_soundContainer);
v7.attachSound('' + _id);
v7.setVolume(100);
v7.start();
}
};
v2.stopAllSounds = function () {
var v2 = 0;
while (v2 < this.__loopIDArray.length) {
this.__loopHolder[this.__loopIDArray[v2]].setVolume(0);
++v2;
}
};
v2.clearSounds = function () {
while (this.__loopContainer.length > 0) {
(this.__loopContainer.shift()).removeMovieClip();
}
};
v2.resetSounds = function () {
var v2 = 0;
while (v2 < this.__loopIDArray.length) {
this.__loopHolder[this.__loopIDArray[v2]].stop();
++v2;
}
};
v2.toString = function () {
return 'SoundControlTriggerSound';
};
v1.UID = 0;
v1.STOP_SOUND_ID = 0;
v1.MUTE_SOUND_ID = -1;
ASSetPropFlags(com.clubpenguin.games.beatbox.playback.SoundControlTriggerSound.prototype, null, 1);
}
#endinitclip
}
movieClip 396 __Packages.com.clubpenguin.games.beatbox.playback.SongMusicLoader {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback) {
_global.com.clubpenguin.games.beatbox.playback = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback.SongMusicLoader) {
var v1 = function () {};
com.clubpenguin.games.beatbox.playback.SongMusicLoader = v1;
var v2 = v1.prototype;
v2.preload = function (_container, _songData, _callback) {
this.__callback = _callback;
this.__songArray = _songData;
this.loadSongSWF(_container);
};
v2.loadSongSWF = function (_container) {
var v3 = (com.clubpenguin.games.beatbox.util.MixMasterAction(this.__songArray.shift())).id;
var v2;
switch (v3) {
case 500:
v2 = 'MixMasterPlayback';
break;
case 501:
v2 = 'MixMasterPlayback_Reggae';
break;
case 502:
v2 = 'MixMasterPlayback_Oldschool';
break;
case 503:
v2 = 'MixMasterPlayback_South';
break;
case 504:
v2 = 'MixMasterPlayback_Funk';
break;
case 505:
v2 = 'MixMasterPlayback_Drum';
break;
case 506:
v2 = 'MixMasterPlayback_Brazil';
break;
case 507:
v2 = 'MixMasterPlayback_Halloween';
}
var v4 = com.clubpenguin.lib.locale.LocaleText.getGameDirectory(_container._url);
var v5 = new MovieClipLoader();
v5.addListener(this);
v5.loadClip(v4 + v2 + '.swf', _container);
};
v2.onLoadInit = function (_mc) {
if (this.__callback != null) {
this.__interval = setInterval(com.clubpenguin.util.Delegate.create(this, this.handleInterval), 250);
}
};
v2.handleInterval = function () {
clearInterval(this.__interval);
if (this.__callback != null) {
this.__callback();
}
};
ASSetPropFlags(com.clubpenguin.games.beatbox.playback.SongMusicLoader.prototype, null, 1);
}
#endinitclip
}
movieClip 397 __Packages.com.clubpenguin.lib.locale.LocaleText {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.locale) {
_global.com.clubpenguin.lib.locale = new Object();
}
if (!_global.com.clubpenguin.lib.locale.LocaleText) {
var v1 = function () {};
com.clubpenguin.lib.locale.LocaleText = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.locale.LocaleText implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.getUniqueName = function () {
return '[LocaleText]';
};
v1.init = function ($parent, $languageID, $movieLocation, $versionNumber, $useLoader) {
com.clubpenguin.lib.locale.LocaleText.ready = false;
if ($useLoader == undefined) {
$useLoader = false;
}
if ($languageID == undefined) {
$languageID = com.clubpenguin.lib.locale.LocaleText.getLocaleID();
}
com.clubpenguin.lib.locale.LocaleText.localeID = $languageID;
var v1 = com.clubpenguin.lib.locale.LocaleText.getLocale(com.clubpenguin.lib.locale.LocaleText.localeID);
com.clubpenguin.lib.locale.LocaleText.locale = v1;
if ($versionNumber == undefined) {
if (com.clubpenguin.lib.locale.LocaleText.localeVersion == undefined) {
v1 = com.clubpenguin.lib.locale.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILENAME + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILETYPE;
} else {
v1 = com.clubpenguin.lib.locale.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILENAME + com.clubpenguin.lib.locale.LocaleText.localeVersion + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILETYPE;
}
} else {
v1 = com.clubpenguin.lib.locale.LocaleText.LANG_LOC_DIRECTORY + '/' + v1 + '/' + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILENAME + $versionNumber + com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FILETYPE;
}
com.clubpenguin.lib.locale.LocaleText.localeDataMC = $parent.createEmptyMovieClip('localeDataMC', $parent.getNextHighestDepth());
var v2 = new Object();
var v3 = new MovieClipLoader();
if ($languageID == com.clubpenguin.lib.locale.LocaleText.LANG_ID_LOADERROR) {
v2.onLoadError = com.clubpenguin.lib.locale.LocaleText.onSecondLocaleLoadError;
} else {
v2.onLoadError = com.clubpenguin.lib.locale.LocaleText.onFirstLocaleLoadError;
}
if ($movieLocation != undefined) {
v1 = $movieLocation + v1;
}
if ($useLoader) {
v2.onLoadProgress = com.clubpenguin.lib.locale.LocaleText.onLocaleLoaderLoadProgress;
v2.onLoadInit = com.clubpenguin.lib.locale.LocaleText.onLoacaleLoaderLoadInit;
v3.addListener(v2);
v3.loadClip(v1, com.clubpenguin.lib.locale.LocaleText.localeDataMC);
} else {
v2.onLoadInit = com.clubpenguin.lib.locale.LocaleText.onLocaleLoadInit;
v3.addListener(v2);
v3.loadClip(v1, com.clubpenguin.lib.locale.LocaleText.localeDataMC);
}
};
v1.onLocaleLoadInit = function ($targetMC) {
com.clubpenguin.lib.locale.LocaleText.handleLoadComplete($targetMC);
};
v1.onLoacaleLoaderLoadInit = function ($targetMC) {
com.clubpenguin.lib.locale.LocaleText.handleLoadComplete($targetMC);
};
v1.onLocaleLoaderLoadProgress = function ($targetMC, $loadProgress, $loadTotal) {};
v1.onFirstLocaleLoadError = function ($targetMC) {
com.clubpenguin.lib.locale.LocaleText.init($targetMC, com.clubpenguin.lib.locale.LocaleText.LANG_ID_LOADERROR);
};
v1.onSecondLocaleLoadError = function ($targetMC, $errorMessage) {
com.clubpenguin.lib.locale.LocaleText.debugTrace('load error: ' + $errorMessage, com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
com.clubpenguin.lib.locale.LocaleText.handleLoadComplete($targetMC);
};
v1.handleLoadComplete = function ($data) {
com.clubpenguin.lib.locale.LocaleText.dataArray = new Array();
for (var v2 in $data.localeText) {
com.clubpenguin.lib.locale.LocaleText.dataArray[$data.localeText[v2].id] = $data.localeText[v2].value;
com.clubpenguin.lib.locale.LocaleText.debugTrace('dataArray[' + $data.localeText[v2].id + '] = ' + $data.localeText[v2].value);
}
com.clubpenguin.lib.locale.LocaleText.ready = true;
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.lib.event.LocaleTextEvent(new com.clubpenguin.lib.locale.LocaleText(), com.clubpenguin.lib.event.LocaleTextEvent.LOAD_COMPLETE));
};
v1.getText = function ($stringID) {
if (!com.clubpenguin.lib.locale.LocaleText.ready) {
com.clubpenguin.lib.locale.LocaleText.debugTrace('getText called when not ready', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return '[id:' + $stringID + ' not ready]';
return com.clubpenguin.lib.locale.LocaleText.dataArray[$stringID];
}
if (com.clubpenguin.lib.locale.LocaleText.dataArray[$stringID] == undefined) {
com.clubpenguin.lib.locale.LocaleText.debugTrace('load error for string: ' + $stringID, com.clubpenguin.util.Reporting.DEBUGLEVEL_ERROR);
return '[id:' + $stringID + ' undefined]';
}
return com.clubpenguin.lib.locale.LocaleText.dataArray[$stringID];
};
v1.getTextReplaced = function ($stringID, $replacements) {
var v2 = com.clubpenguin.lib.locale.LocaleText.getText($stringID);
var v3 = $replacements.length;
var v1 = 0;
while (v1 < v3) {
v2 = (v2.split('%' + v1)).join($replacements[v1]);
++v1;
}
return v2;
};
v1.getLocale = function ($localeID) {
switch ($localeID) {
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_EN:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_PT:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_PT;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_FR:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_FR;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_ES:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_ES;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_DE:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_DE;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_RU:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_RU;
case com.clubpenguin.lib.locale.LocaleText.LANG_ID_LOADERROR:
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
}
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
return com.clubpenguin.lib.locale.LocaleText.LANG_LOC_EN;
};
v1.setLocaleVersion = function ($localeVersion) {
com.clubpenguin.lib.locale.LocaleText.localeVersion = $localeVersion;
};
v1.setLocaleID = function ($localeID) {
com.clubpenguin.lib.locale.LocaleText.localeID = $localeID;
};
v1.getLocaleID = function () {
return com.clubpenguin.lib.locale.LocaleText.localeID;
};
v1.isReady = function () {
return com.clubpenguin.lib.locale.LocaleText.ready;
};
v1.attachLocaleClip = function ($stringID, $target) {
var v1 = com.clubpenguin.lib.locale.LocaleText.localeDataMC.attachMovie($stringID, $stringID + '_mc', com.clubpenguin.lib.locale.LocaleText.localeDataMC.getNextHighestDepth());
var v2 = new flash.display.BitmapData(v1._width, v1._height, true, 0);
v2.draw(v1, new flash.geom.Matrix(), new flash.geom.ColorTransform(), 'normal');
$target.attachBitmap(v2, $target.getNextHighestDepth());
v1.removeMovieClip();
};
v1.getGameDirectory = function ($url) {
var v4;
var v2;
var v3;
var v1;
if ($url == undefined) {
if (com.clubpenguin.lib.locale.LocaleText.localeDirectoryURL == undefined) {
com.clubpenguin.lib.locale.LocaleText.debugTrace('using cached locale directory url that hasn\'t been set yet!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
}
v4 = com.clubpenguin.lib.locale.LocaleText.localeDirectoryURL;
return v4;
}
v2 = $url.split('/');
v3 = '';
v1 = 0;
while (v1 < v2.length - 1) {
v3 += v2[v1] + '/';
++v1;
}
com.clubpenguin.lib.locale.LocaleText.localeDirectoryURL = v3;
v4 = com.clubpenguin.lib.locale.LocaleText.localeDirectoryURL;
return v4;
};
v1.debugTrace = function ($message, $priority) {
if ($priority == undefined) {
$priority = com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE;
}
if (com.clubpenguin.util.Reporting.DEBUG_LOCALE) {
com.clubpenguin.util.Reporting.debugTrace('(LocaleText) ' + $message, $priority);
}
};
v1.$_instanceCount = 0;
v1.EVENT_LOAD_COMPLETED = 'onLoadComplete';
v1.LANG_ID_LOADERROR = 0;
v1.LANG_ID_EN = 1;
v1.LANG_ID_PT = 2;
v1.LANG_ID_FR = 3;
v1.LANG_ID_ES = 4;
v1.LANG_ID_DE = 5;
v1.LANG_ID_RU = 6;
v1.LANG_ID_DEFAULT = com.clubpenguin.lib.locale.LocaleText.LANG_ID_EN;
v1.LANG_LOC_FILENAME = 'locale';
v1.LANG_LOC_FILETYPE = '.swf';
v1.LANG_LOC_DIRECTORY = 'lang';
v1.LANG_LOC_EN = 'en';
v1.LANG_LOC_PT = 'pt';
v1.LANG_LOC_FR = 'fr';
v1.LANG_LOC_ES = 'es';
v1.LANG_LOC_DE = 'de';
v1.LANG_LOC_RU = 'ru';
v1.localeVersion = undefined;
v1.localeID = 0;
v1.ready = false;
ASSetPropFlags(com.clubpenguin.lib.locale.LocaleText.prototype, null, 1);
}
#endinitclip
}
movieClip 398 __Packages.com.clubpenguin.lib.event.EventManager {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.event) {
_global.com.clubpenguin.lib.event = new Object();
}
if (!_global.com.clubpenguin.lib.event.EventManager) {
var v1 = function () {
this.__uid = com.clubpenguin.lib.event.EventManager.$_instanceCount++;
this.__listenerObjects = new Array();
};
com.clubpenguin.lib.event.EventManager = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.event.EventManager implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v1.__get__instance = function () {
if (com.clubpenguin.lib.event.EventManager.$_instance == null) {
com.clubpenguin.lib.event.EventManager.$_instance = new com.clubpenguin.lib.event.EventManager();
}
return com.clubpenguin.lib.event.EventManager.$_instance;
};
v1.addEventListener = function (_eventType, _handler, _scope, _context) {
var v1;
v1 = (com.clubpenguin.lib.event.EventManager.__get__instance()).addInternalEventListener(_eventType, _handler, _scope, _context);
return v1;
};
v2.addInternalEventListener = function (_eventType, _handler, _scope, _context) {
var v2;
v2 = false;
if (!_eventType.length) {
}
if (!(_handler instanceof Function)) {
}
var v3;
var v7;
var v5;
if (_context == null) {
v5 = this;
} else {
v5 = _context;
}
v3 = com.clubpenguin.lib.event.EventManager.getListenersArray(v5, _eventType);
v7 = com.clubpenguin.lib.event.EventManager.getListenerIndex(v3, _handler, _scope);
if (v7 == -1) {
v3.push(new com.clubpenguin.lib.event.EventListener(_handler, _scope));
v2 = true;
}
return v2;
};
v1.removeEventListener = function (_eventType, _handler, _scope) {
var v1;
v1 = (com.clubpenguin.lib.event.EventManager.__get__instance()).removeInternalEventListener(_eventType, _handler, _scope);
return v1;
};
v2.removeInternalEventListener = function (_eventType, _handler, _scope) {
var v2;
v2 = false;
if (!_eventType.length) {
}
if (!(_handler instanceof Function)) {
}
var v3;
var v5;
v3 = com.clubpenguin.lib.event.EventManager.getListenersArray(this, _eventType);
v5 = com.clubpenguin.lib.event.EventManager.getListenerIndex(v3, _handler, _scope);
if (v5 != -1) {
v3.splice(v5, 1);
v2 = true;
}
return v2;
};
v1.dispatchEvent = function (_event) {
var v1;
v1 = (com.clubpenguin.lib.event.EventManager.__get__instance()).dispatchInternalEvent(_event);
return v1;
};
v2.dispatchInternalEvent = function (_event) {
var v8;
var v7;
v8 = false;
if (!(_event.__get__type()).length) {
}
v7 = (_event.__get__target()).getUniqueName();
if (v7 == undefined || v7 == '') {
_event.__set__target(this);
}
var v6;
var v5;
var v9;
var v3;
var v2;
v6 = (com.clubpenguin.lib.event.EventManager.getListenersArray(this, _event.__get__type())).concat();
if ((_event.__get__target()).getUniqueName() == this.getUniqueName()) {
v5 = new Array();
} else {
v5 = (com.clubpenguin.lib.event.EventManager.getListenersArray(_event.__get__target(), _event.__get__type())).concat();
}
v9 = v6.length + v5.length;
if (v9 > 0) {
v8 = true;
v3 = 0;
while (v3 < v6.length) {
v2 = v6[v3];
v2.scope ? v2.handler.call(v2.scope, _event) : v2.handler(_event);
++v3;
}
v3 = 0;
while (v3 < v5.length) {
v2 = v5[v3];
v2.scope ? v2.handler.call(v2.scope, _event) : v2.handler(_event);
++v3;
}
}
return v8;
};
v1.getListenerIndex = function (_listeners, _handler, _scope) {
var v5 = _listeners.length;
var v1 = 0;
var v2;
var v4;
v4 = -1;
v1 = 0;
while (v1 < v5) {
v2 = _listeners[v1];
if (v2.handler == _handler && (_scope == undefined || v2.scope == _scope)) {
v4 = v1;
} else {}
++v1;
}
return v4;
};
v1.getListenersArray = function (_eventSource, _eventType) {
var v1;
v1 = (com.clubpenguin.lib.event.EventManager.__get__instance()).listenerObject(_eventSource.getUniqueName());
if (!v1[_eventType]) {
v1[_eventType] = new Array();
}
return v1[_eventType];
};
v2.listenerObject = function (_context) {
if (this.__listenerObjects[_context] == null) {
this.__listenerObjects[_context] = new Array();
}
return this.__listenerObjects[_context];
};
v2.getUniqueName = function () {
return '[EventManager<' + this.__uid + '>]';
};
v1.dispose = function () {
(com.clubpenguin.lib.event.EventManager.__get__instance()).__listenerObjects = new Array();
(com.clubpenguin.lib.event.EventManager.__get__instance()).dispatchInternalEvent(new com.clubpenguin.game.net.event.NetClientEvent(new com.clubpenguin.lib.event.IEventDispatcher(), com.clubpenguin.game.net.event.NetClientEvent.NET_REQUEST));
};
v1.$_instanceCount = 0;
v1.addProperty('instance', v1.__get__instance, function () {});
ASSetPropFlags(com.clubpenguin.lib.event.EventManager.prototype, null, 1);
}
#endinitclip
}
movieClip 399 __Packages.com.clubpenguin.lib.event.EventListener {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.event) {
_global.com.clubpenguin.lib.event = new Object();
}
if (!_global.com.clubpenguin.lib.event.EventListener) {
var v1 = function (_handler, _scope) {
this.handler = _handler;
this.scope = _scope;
};
com.clubpenguin.lib.event.EventListener = v1;
var v2 = v1.prototype;
v2.toString = function () {
return 'EventListener with scope (' + this.scope + ')';
};
ASSetPropFlags(com.clubpenguin.lib.event.EventListener.prototype, null, 1);
}
#endinitclip
}
movieClip 400 __Packages.com.clubpenguin.lib.event.Event {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.event) {
_global.com.clubpenguin.lib.event = new Object();
}
if (!_global.com.clubpenguin.lib.event.Event) {
var v1 = function (_source, _type, _data) {
super();
this.__eventDispatcher = _source;
this.__eventType = _type;
this.__eventData = _data;
};
com.clubpenguin.lib.event.Event = v1;
com.clubpenguin.lib.event.Event extends Object;
var v2 = v1.prototype;
v2.__get__target = function () {
return this.__eventDispatcher;
};
v2.__set__target = function (_val) {
this.__eventDispatcher = _val;
return this.__get__target();
};
v2.__get__data = function () {
return this.__eventData;
};
v2.__set__data = function (_val) {
this.__eventData = _val;
return this.__get__data();
};
v2.__get__type = function () {
return this.__eventType;
};
v2.__set__type = function (_val) {
this.__eventType = _val;
return this.__get__type();
};
v2.clone = function () {
var v2;
v2 = this.createEvent();
return v2;
};
v2.createEvent = function () {
return new com.clubpenguin.lib.event.Event(this.__eventDispatcher, this.__eventType, this.__eventData);
};
v2.toString = function () {
var v1;
v1 = 'Event';
return v1;
};
v2.addProperty('data', v2.__get__data, v2.__set__data);
v2.addProperty('target', v2.__get__target, v2.__set__target);
v2.addProperty('type', v2.__get__type, v2.__set__type);
ASSetPropFlags(com.clubpenguin.lib.event.Event.prototype, null, 1);
}
#endinitclip
}
movieClip 401 __Packages.com.clubpenguin.game.net.event.NetClientEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.game) {
_global.com.clubpenguin.game = new Object();
}
if (!_global.com.clubpenguin.game.net) {
_global.com.clubpenguin.game.net = new Object();
}
if (!_global.com.clubpenguin.game.net.event) {
_global.com.clubpenguin.game.net.event = new Object();
}
if (!_global.com.clubpenguin.game.net.event.NetClientEvent) {
var v1 = function (_source, _type, _message, _data) {
super(_source, _type, _data);
this.__netMessage = _message;
};
com.clubpenguin.game.net.event.NetClientEvent = v1;
com.clubpenguin.game.net.event.NetClientEvent extends com.clubpenguin.lib.event.Event;
var v2 = v1.prototype;
v2.clone = function () {
var v2;
v2 = this.createEvent();
return v2;
};
v2.createEvent = function () {
return new com.clubpenguin.game.net.event.NetClientEvent(this.__eventDispatcher, this.__eventType, this.__netMessage, this.__eventData);
};
v2.__get__message = function () {
return this.__netMessage;
};
v1.NET_REQUEST = 'netClientRequest';
v1.NET_RECEIVE = 'netClientReceive';
v1.REQ_GAME_CONNECT = 'ncRequestGameConnect';
v1.REC_GAME_CONNECT = 'ncReceiveGameConnect';
v1.REQ_GAME_JOIN = 'ncRequestGameJoin';
v1.REC_GAME_JOIN = 'ncReceiveGameJoin';
v1.REQ_GAME_LEAVE = 'ncRequestGameLeave';
v1.REC_GAME_LEAVE = 'ncReceiveGameLeave';
v1.REQ_GAME_PLAYERS = 'ncRequestGamePlayers';
v1.REC_GAME_PLAYERS = 'ncReceiveGamePlayers';
v1.REQ_GAME_START = 'ncRequestGameStart';
v1.REC_GAME_START = 'ncReceiveGameStart';
v1.REQ_GAME_ABORT = 'ncRequestGameAbort';
v1.REC_GAME_ABORT = 'ncReceiveGameAbort';
v1.REQ_GAME_ACTION = 'ncRequestGameAction';
v1.REC_GAME_ACTION = 'ncReceiveGameAction';
v1.REQ_GAME_OVER = 'ncRequestGameOver';
v1.REC_GAME_OVER = 'ncReceiveGameOver';
v1.REQ_GAME_ERROR = 'ncRequestGameError';
v1.REC_GAME_ERROR = 'ncReceiveGameError';
v1.REC_STAMP_INFORMATION = 'ncStampInfo';
v2.addProperty('message', v2.__get__message, function () {});
ASSetPropFlags(com.clubpenguin.game.net.event.NetClientEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 402 __Packages.com.clubpenguin.lib.event.LocaleTextEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.event) {
_global.com.clubpenguin.lib.event = new Object();
}
if (!_global.com.clubpenguin.lib.event.LocaleTextEvent) {
var v1 = function (_source, _type, _data) {
super(_source, _type, _data);
};
com.clubpenguin.lib.event.LocaleTextEvent = v1;
com.clubpenguin.lib.event.LocaleTextEvent extends com.clubpenguin.lib.event.Event;
var v2 = v1.prototype;
v1.LOAD_COMPLETE = 'localeTextLoadComplete';
ASSetPropFlags(com.clubpenguin.lib.event.LocaleTextEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 403 __Packages.com.clubpenguin.games.beatbox.playback.Song {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback) {
_global.com.clubpenguin.games.beatbox.playback = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.playback.Song) {
var v1 = function () {
this.__song = new Array();
};
com.clubpenguin.games.beatbox.playback.Song = v1;
var v2 = v1.prototype;
v2.__get__songIndex = function () {
return this.__songIndex;
};
v2.__set__songIndex = function (param) {
this.__songIndex = param;
return this.__get__songIndex();
};
v2.addAction = function (_action) {
this.__song.push(_action);
};
v2.__get__songReference = function () {
return this.__song.concat();
};
v2.destroy = function () {
this.__song = new Array();
};
v2.saveTo = function (_sd, _index) {
var v2;
v2 = 0;
while (v2 < this.__song.length) {
_sd.setGameData(this.__song[v2]);
++v2;
}
_sd.saveGameData(_sd.__newGameData, _index);
};
v2.buildSongFromSavedData = function (_dataSet) {
var v6;
var v3;
var v4;
var v2 = 1;
while (v2 < _dataSet.__get__numEntries()) {
v3 = _dataSet.getInt16(v2);
v4 = _dataSet.getInt16(v2 + 1);
v6 = new com.clubpenguin.games.beatbox.util.MixMasterAction(v3, v4);
this.addAction(v6);
v2 += 2;
}
};
v2.toString = function () {
return 'I AM A SONG';
};
v2.addProperty('songIndex', v2.__get__songIndex, v2.__set__songIndex);
v2.addProperty('songReference', v2.__get__songReference, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.playback.Song.prototype, null, 1);
}
#endinitclip
}
movieClip 404 __Packages.com.clubpenguin.games.beatbox.MixMasterGameDataSaver {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.MixMasterGameDataSaver) {
var v1 = function () {
this.__newGameData = new com.clubpenguin.lib.data.compression.DataSet();
this.__saveData = new com.clubpenguin.lib.data.SaveData();
this.__songIDSet = false;
this.__netClient = new com.clubpenguin.game.net.NetClient();
this.__numOfSaves = 0;
this.__numOfRecords = 0;
this.__numOfDeletes = 0;
};
com.clubpenguin.games.beatbox.MixMasterGameDataSaver = v1;
var v2 = v1.prototype;
v2.setGameData = function (_data) {
if (_data.id == com.clubpenguin.games.beatbox.MixMasterGameDataSaver.START_RECORD_ID) {
++this.__numOfRecords;
}
if (!this.__songIDSet) {
this.__newGameData.setInt16(_data.time, 1);
this.__newGameData.setInt16(_data.id, 2);
this.__songIDSet = true;
return undefined;
}
this.__newGameData.setInt16(_data.time);
this.__newGameData.setInt16(_data.id);
};
v2.saveGameData = function (_dataSet, _index) {
if (_dataSet != undefined) {
++this.__numOfDeletes;
this.__saveData.setGameData(_dataSet, _index);
} else {
++this.__numOfSaves;
this.__saveData.setGameData(this.__newGameData, _index);
}
};
v2.sendBI = function () {
(com.clubpenguin.games.beatbox.util.DJ3KNetClient.__get__instance()).sendBI(this.__numOfRecords, this.__numOfSaves, this.__numOfDeletes);
};
v2.validateSongName = function (_songName) {
this.__newGameData.setString(_songName, 0);
};
v1.START_RECORD_ID = 100;
ASSetPropFlags(com.clubpenguin.games.beatbox.MixMasterGameDataSaver.prototype, null, 1);
}
#endinitclip
}
movieClip 405 __Packages.com.clubpenguin.lib.data.compression.DataSet {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.DataSet) {
var v1 = function () {
this._entries = new Array();
};
com.clubpenguin.lib.data.compression.DataSet = v1;
var v2 = v1.prototype;
v2.__get__size = function () {
return this._size;
};
v2.__get__numEntries = function () {
return this._entries.length;
};
v2.getData = function ($index) {
return com.clubpenguin.lib.data.compression.type.DataType(this._entries[$index]);
};
v2.setData = function ($data, $index) {
this._size += $data.size();
if ($index == undefined) {
this._entries.push($data);
return undefined;
} else {
if (this.getData($index) != undefined) {
this._size -= (this.getData($index)).size();
}
}
this._entries[$index] = $data;
};
v2.deleteEntry = function ($index) {
var v2 = this.getData($index);
this._entries[$index] = undefined;
return v2;
};
v2.setInt16 = function ($value, $index) {
this.setData(new com.clubpenguin.lib.data.compression.type.CInt16($value), $index);
};
v2.getInt16 = function ($index) {
if ((this.getData($index)).type() != com.clubpenguin.lib.data.compression.type.CInt16.TYPE_ID) {
return null;
}
return (com.clubpenguin.lib.data.compression.type.CInt16(this.getData($index))).__get__value();
};
v2.setBool = function ($value, $boolIndex, $index) {
var v4;
if ($boolIndex == undefined || $boolIndex > 15 || $boolIndex < 0) {
return undefined;
}
if ($index == undefined) {
if ((this.getData(this._entries.length - 1)).type() == com.clubpenguin.lib.data.compression.type.CBool.TYPE_ID) {
(com.clubpenguin.lib.data.compression.type.CBool(this.getData(this._entries.length - 1))).setBoolAt($boolIndex, $value);
return undefined;
}
} else {
if (this.getData($index) != undefined) {
if ((this.getData($index)).type() != com.clubpenguin.lib.data.compression.type.CBool.TYPE_ID) {
return undefined;
}
(com.clubpenguin.lib.data.compression.type.CBool(this.getData($index))).setBoolAt($boolIndex, $value);
return undefined;
}
}
v4 = new com.clubpenguin.lib.data.compression.type.CBool();
v4.setBoolAt($boolIndex, $value);
this.setData(v4, $index);
};
v2.getBool = function ($index, $boolIndex) {
if ($boolIndex == undefined || $boolIndex > 15 || $boolIndex < 0) {
return null;
}
if ((this.getData($index)).type() != com.clubpenguin.lib.data.compression.type.CBool.TYPE_ID) {
return null;
}
return (com.clubpenguin.lib.data.compression.type.CBool(this.getData($index))).getBoolAt($boolIndex);
};
v2.setFloat = function ($value, $index) {
this.setData(new com.clubpenguin.lib.data.compression.type.CFloat($value), $index);
};
v2.getFloat = function ($index) {
if ((this.getData($index)).type() != com.clubpenguin.lib.data.compression.type.CFloat.TYPE_ID) {
return null;
}
return (com.clubpenguin.lib.data.compression.type.CFloat(this.getData($index))).__get__value();
};
v2.setString = function ($value, $index) {
this.setData(new com.clubpenguin.lib.data.compression.type.CString($value), $index);
};
v2.getString = function ($index) {
var v3;
v3 = this.getData($index);
var v4;
v4 = v3.type();
if (v4 != com.clubpenguin.lib.data.compression.type.CString.TYPE_ID) {
return null;
}
return (com.clubpenguin.lib.data.compression.type.CString(this.getData($index))).__get__value();
};
v2._size = 0;
v2.addProperty('numEntries', v2.__get__numEntries, function () {});
v2.addProperty('size', v2.__get__size, function () {});
ASSetPropFlags(com.clubpenguin.lib.data.compression.DataSet.prototype, null, 1);
}
#endinitclip
}
movieClip 406 __Packages.com.clubpenguin.lib.data.compression.type.DataType {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.DataType) {
_global.com.clubpenguin.lib.data.compression.type.DataType = function () {};
}
#endinitclip
}
movieClip 407 __Packages.com.clubpenguin.lib.data.compression.type.CInt16 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.CInt16) {
var v1 = function ($value, $manifest) {
this._manifest = $manifest;
if (this._manifest == undefined) {
this._manifest = new com.clubpenguin.lib.data.compression.manifest.ManifestEntry();
this._manifest.setNull(1, false);
this._manifest.setNull(2, false);
this._manifest.setNull(3, false);
}
this._value = $value;
if (this._value == undefined) {
this._value = 0;
}
};
com.clubpenguin.lib.data.compression.type.CInt16 = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.data.compression.type.CInt16 implements _global.com.clubpenguin.lib.data.compression.type.DataType;
v2.compress = function () {
var v3;
if (this._value == 0) {
this._manifest.setNull(0, true);
v3 = String.fromCharCode(1);
return this._manifest.serialize() + v3;
}
this._manifest.setNull(0, false);
v3 = String.fromCharCode(this._value & com.clubpenguin.lib.data.compression.type.TypeMasks.INT_16);
var v2 = 0;
while (v2 < com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes.length) {
if (v3 == String(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[v2])) {
v3 = String.fromCharCode(v2 + 1) + String.fromCharCode(v2 + 1);
this._manifest.__set__size(3);
break;
} else {
this._manifest.__set__size(2);
}
++v2;
}
return this._manifest.serialize() + v3;
};
v2.decompress = function ($entry) {
if (this._manifest.__get__size() == 3) {
var v2 = String(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[$entry.charCodeAt(0) - 1]);
$entry = v2;
}
if (this._manifest.isNull(0)) {
this._value = 0;
} else {
this._value = $entry.charCodeAt(0);
if (this._value >>> 15 == 1) {
this._value |= com.clubpenguin.lib.data.compression.type.TypeMasks.UPPER_INT32;
}
}
};
v2.__set__value = function ($value) {
this._value = $value;
return this.__get__value();
};
v2.__get__value = function () {
return this._value;
};
v2.size = function () {
return this._manifest.__get__size();
};
v2.type = function () {
return this._manifest.__get__type();
};
v1.TYPE_ID = 1;
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.CInt16.prototype, null, 1);
}
#endinitclip
}
movieClip 408 __Packages.com.clubpenguin.lib.data.compression.manifest.ManifestEntry {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.manifest) {
_global.com.clubpenguin.lib.data.compression.manifest = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.manifest.ManifestEntry) {
var v1 = function ($char) {
this.nullChars = new Array(true, true, true, true);
if ($char != undefined) {
this.deserialize($char);
}
};
com.clubpenguin.lib.data.compression.manifest.ManifestEntry = v1;
var v2 = v1.prototype;
v2.serialize = function () {
var v3 = 0;
var v2 = 0;
while (v2 < this.nullChars.length) {
v3 |= Boolean(this.nullChars[v2]) ? 1 << v2 : 0;
++v2;
}
v3 |= this.__get__type() << 4;
v3 |= this.__get__size() << 8;
return String.fromCharCode(v3);
};
v2.deserialize = function ($char) {
var v3 = $char.charCodeAt(0);
var v2 = 0;
while (v2 < this.nullChars.length) {
this.nullChars[v2] = (v3 >>> v2 & com.clubpenguin.lib.data.compression.manifest.ManifestMasks.NULL_MASK == 1) ? true : false;
++v2;
}
this._type = v3 >>> 4 & com.clubpenguin.lib.data.compression.manifest.ManifestMasks.TYPE_MASK;
this._size = v3 >>> 8 & com.clubpenguin.lib.data.compression.manifest.ManifestMasks.SIZE_MASK;
};
v2.isNull = function ($charIndex) {
return Boolean(this.nullChars[$charIndex]);
};
v2.setNull = function ($charIndex, $null) {
this.nullChars[$charIndex] = $null;
};
v2.__get__type = function () {
return this._type;
};
v2.__set__type = function ($newVal) {
this._type = $newVal;
return this.__get__type();
};
v2.__get__size = function () {
return this._size;
};
v2.__set__size = function ($newVal) {
this._size = $newVal;
return this.__get__size();
};
v2.toString = function () {
return '[ManifestEntry type:' + this._type + ' size:' + this._size + ' nullChars:' + this.nullChars + ']';
};
v2._type = 1;
v2._size = 2;
v2.addProperty('size', v2.__get__size, v2.__set__size);
v2.addProperty('type', v2.__get__type, v2.__set__type);
ASSetPropFlags(com.clubpenguin.lib.data.compression.manifest.ManifestEntry.prototype, null, 1);
}
#endinitclip
}
movieClip 409 __Packages.com.clubpenguin.lib.data.compression.manifest.ManifestMasks {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.manifest) {
_global.com.clubpenguin.lib.data.compression.manifest = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.manifest.ManifestMasks) {
var v1 = function () {};
com.clubpenguin.lib.data.compression.manifest.ManifestMasks = v1;
var v2 = v1.prototype;
v1.NULL_MASK = 1;
v1.TYPE_MASK = 15;
v1.SIZE_MASK = 255;
ASSetPropFlags(com.clubpenguin.lib.data.compression.manifest.ManifestMasks.prototype, null, 1);
}
#endinitclip
}
movieClip 410 __Packages.com.clubpenguin.lib.data.compression.type.TypeMasks {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.TypeMasks) {
var v1 = function () {};
com.clubpenguin.lib.data.compression.type.TypeMasks = v1;
var v2 = v1.prototype;
v1.LOWER_BYTE = 255;
v1.UPPER_BYTE = 65280;
v1.INT_16 = 65535;
v1.LOWER_INT32 = 65535;
v1.UPPER_INT32 = 4294901760.0;
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.TypeMasks.prototype, null, 1);
}
#endinitclip
}
movieClip 411 __Packages.com.clubpenguin.lib.data.compression.type.SpecialTypes {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.SpecialTypes) {
var v1 = function () {};
com.clubpenguin.lib.data.compression.type.SpecialTypes = v1;
var v2 = v1.prototype;
v1.specialTypes = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '_', '=', '+', '|'];
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.SpecialTypes.prototype, null, 1);
}
#endinitclip
}
movieClip 412 __Packages.com.clubpenguin.lib.data.compression.type.CBool {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.CBool) {
var v1 = function ($value, $manifest) {
super($value, $manifest);
this._manifest.__set__type(com.clubpenguin.lib.data.compression.type.CBool.TYPE_ID);
};
com.clubpenguin.lib.data.compression.type.CBool = v1;
com.clubpenguin.lib.data.compression.type.CBool extends com.clubpenguin.lib.data.compression.type.CInt16;
var v2 = v1.prototype;
v2.decompress = function ($entry) {
if (this._manifest.__get__size() == 3) {
var v2 = String(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[$entry.charCodeAt(0) - 1]);
$entry = v2;
}
if (this._manifest.isNull(0)) {
this._value = 0;
} else {
this._value = $entry.charCodeAt(0);
}
};
v2.getBoolAt = function ($bit) {
return (this._value >>> $bit & true) ? true : false;
};
v2.setBoolAt = function ($bit, $value) {
if ($value) {
this._value |= 1 << $bit;
} else {
this._value &= com.clubpenguin.lib.data.compression.type.TypeMasks.INT_16 ^ 1 << $bit;
}
};
v1.TYPE_ID = 2;
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.CBool.prototype, null, 1);
}
#endinitclip
}
movieClip 413 __Packages.com.clubpenguin.lib.data.compression.type.CFloat {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.CFloat) {
var v1 = function ($value, $manifest) {
this._manifest = $manifest;
if (this._manifest == undefined) {
this._manifest = new com.clubpenguin.lib.data.compression.manifest.ManifestEntry();
this._manifest.__set__type(com.clubpenguin.lib.data.compression.type.CFloat.TYPE_ID);
this._manifest.__set__size(3);
this._manifest.setNull(2, false);
this._manifest.setNull(3, false);
}
this._value = $value;
if (this._value == undefined) {
this._value = 0;
}
};
com.clubpenguin.lib.data.compression.type.CFloat = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.data.compression.type.CFloat implements _global.com.clubpenguin.lib.data.compression.type.DataType;
v2.compress = function () {
var v3 = this._value >>> 15 & com.clubpenguin.lib.data.compression.type.TypeMasks.INT_16;
var v2 = this._value & com.clubpenguin.lib.data.compression.type.TypeMasks.INT_16;
if (v3 == 0) {
this._manifest.setNull(0, true);
v3 = 1;
} else {
this._manifest.setNull(0, false);
}
if (v2 == 0) {
this._manifest.setNull(1, true);
v2 = 1;
var v4 = String.fromCharCode(v3);
var v5 = String.fromCharCode(v2);
return this._manifest.serialize() + v4 + v5;
}
this._manifest.setNull(1, false);
var v4 = String.fromCharCode(v3);
var v5 = String.fromCharCode(v2);
return this._manifest.serialize() + v4 + v5;
};
v2.decompress = function ($entry) {
var v3 = $entry.charCodeAt(0);
var v2 = $entry.charCodeAt(1);
if (this._manifest.isNull(0)) {
v3 = 0;
}
if (this._manifest.isNull(1)) {
v2 = 0;
}
this._value = v2 | v3 << 15;
};
v2.type = function () {
return this._manifest.__get__type();
};
v2.size = function () {
return this._manifest.__get__size();
};
v2.__get__value = function () {
return this._value;
};
v2.__set__value = function ($value) {
this._value = $value;
return this.__get__value();
};
v1.TYPE_ID = 3;
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.CFloat.prototype, null, 1);
}
#endinitclip
}
movieClip 414 __Packages.com.clubpenguin.lib.data.compression.type.CString {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type) {
_global.com.clubpenguin.lib.data.compression.type = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.type.CString) {
var v1 = function ($value, $manifest) {
this._value = $value;
if (this._value == undefined) {
this._value = '';
}
this._manifest = $manifest;
if (this._manifest == undefined) {
this._manifest = new com.clubpenguin.lib.data.compression.manifest.ManifestEntry();
this._manifest.__set__type(com.clubpenguin.lib.data.compression.type.CString.TYPE_ID);
this._manifest.__set__size(this._value.length);
this._manifest.setNull(0, false);
this._manifest.setNull(1, false);
this._manifest.setNull(2, false);
this._manifest.setNull(3, false);
}
};
com.clubpenguin.lib.data.compression.type.CString = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.data.compression.type.CString implements _global.com.clubpenguin.lib.data.compression.type.DataType;
v2.compress = function () {
var v3 = this._value;
var v4;
var v2 = 0;
while (v2 < com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes.length) {
if (v3.indexOf(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[v2], 0) != -1) {
v4 = String.fromCharCode(v2 + 1) + String.fromCharCode(v2 + 1);
(v3.split(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[v2])).join(v4);
}
++v2;
}
this._manifest.__set__size(v3.length + 1);
return this._manifest.serialize() + v3;
};
v2.decompress = function ($entry) {
var v3;
var v2 = 0;
while (v2 < com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes.length) {
v3 = String.fromCharCode(v2 + 1) + String.fromCharCode(v2 + 1);
if ($entry.indexOf(v3, 0) != -1) {
($entry.split(v3)).join(com.clubpenguin.lib.data.compression.type.SpecialTypes.specialTypes[v2]);
}
++v2;
}
this._value = $entry;
this._manifest.__set__size(this._value.length + 1);
};
v2.type = function () {
return this._manifest.__get__type();
};
v2.size = function () {
return this._manifest.__get__size();
};
v2.__get__value = function () {
return this._value;
};
v2.__set__value = function ($value) {
this._value = $value;
return this.__get__value();
};
v1.TYPE_ID = 4;
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(com.clubpenguin.lib.data.compression.type.CString.prototype, null, 1);
}
#endinitclip
}
movieClip 415 __Packages.com.clubpenguin.lib.IDisposable {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.IDisposable) {
_global.com.clubpenguin.lib.IDisposable = function () {};
}
#endinitclip
}
movieClip 416 __Packages.com.clubpenguin.lib.data.SaveData {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.SaveData) {
var v1 = function () {
this.uid = ++com.clubpenguin.lib.data.SaveData.uids;
this.roomId = (_global.getCurrentShell()).getCurrentServerRoomId();
this.AIRTOWER = _global.getCurrentAirtower();
this.AIRTOWER.removeListener(com.clubpenguin.lib.data.SaveData.MESSAGE_GET_GAME_DATA, this.handleGetGameData, this);
this.AIRTOWER.removeListener(com.clubpenguin.lib.data.SaveData.MESSAGE_SET_GAME_DATA, this.handleSetGameData, this);
this.AIRTOWER.addListener(com.clubpenguin.lib.data.SaveData.MESSAGE_GET_GAME_DATA, this.handleGetGameData, this);
this.AIRTOWER.addListener(com.clubpenguin.lib.data.SaveData.MESSAGE_SET_GAME_DATA, this.handleSetGameData, this);
};
com.clubpenguin.lib.data.SaveData = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.lib.data.SaveData implements _global.com.clubpenguin.lib.IDisposable, _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.getGameData = function (index) {
var v2 = new Array();
if (index != undefined) {
v2.push(index.toString());
}
this.AIRTOWER.send(com.clubpenguin.lib.data.SaveData.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.lib.data.SaveData.MESSAGE_GET_GAME_DATA, v2, com.clubpenguin.lib.data.SaveData.SERVER_SIDE_MESSAGE_TYPE, this.roomId);
};
v2.setGameData = function (data, index) {
var v2 = new Array();
if (index != undefined) {
v2.push(index.toString());
}
var v4 = com.clubpenguin.lib.data.compression.Compressor.compress(data);
v2.push(v4);
this.AIRTOWER.send(com.clubpenguin.lib.data.SaveData.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.lib.data.SaveData.MESSAGE_SET_GAME_DATA, v2, com.clubpenguin.lib.data.SaveData.SERVER_SIDE_MESSAGE_TYPE, this.roomId);
};
v2.handleGetGameData = function (responseArray) {
var v3 = String(responseArray[1]);
var v2 = com.clubpenguin.lib.data.compression.Compressor.decompress(v3);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.lib.data.event.SaveDataEvent(this, com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, v2, v2, v3));
};
v2.handleSetGameData = function (resonseArray) {};
v2.getUniqueName = function () {
return '[SaveGameData' + this.uid + ']';
};
v2.dispose = function () {
this.AIRTOWER.removeListener(com.clubpenguin.lib.data.SaveData.MESSAGE_GET_GAME_DATA, this.handleGetGameData, this);
this.AIRTOWER.removeListener(com.clubpenguin.lib.data.SaveData.MESSAGE_SET_GAME_DATA, this.handleSetGameData, this);
this.AIRTOWER = null;
};
v1.SERVER_SIDE_EXTENSION_NAME = 'z';
v1.SERVER_SIDE_MESSAGE_TYPE = 'str';
v1.MESSAGE_GET_GAME_DATA = 'ggd';
v1.MESSAGE_SET_GAME_DATA = 'sgd';
v1.uids = -1;
ASSetPropFlags(com.clubpenguin.lib.data.SaveData.prototype, null, 1);
}
#endinitclip
}
movieClip 417 __Packages.com.clubpenguin.lib.data.compression.Compressor {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression) {
_global.com.clubpenguin.lib.data.compression = new Object();
}
if (!_global.com.clubpenguin.lib.data.compression.Compressor) {
var v1 = function () {};
com.clubpenguin.lib.data.compression.Compressor = v1;
var v2 = v1.prototype;
v1.compress = function ($data) {
var v3 = '';
var v1 = 0;
while (v1 < $data.__get__numEntries()) {
if ($data.getData(v1) != undefined && $data.getData(v1) != null) {
v3 += ($data.getData(v1)).compress();
}
++v1;
}
return v3;
};
v1.decompress = function ($cData) {
var v4 = new com.clubpenguin.lib.data.compression.DataSet();
var v3;
var v6;
var v2;
var v5;
v5 = $cData.length + 2;
for (;;) {
if (!($cData.length > 0 && $cData.length != v5)) break;
v2 = new com.clubpenguin.lib.data.compression.manifest.ManifestEntry($cData.charAt(0));
v6 = $cData.substr(1, v2.__get__size() - 1);
switch (v2.__get__type()) {
case com.clubpenguin.lib.data.compression.type.CInt16.TYPE_ID:
v3 = new com.clubpenguin.lib.data.compression.type.CInt16(0, v2);
break;
case com.clubpenguin.lib.data.compression.type.CBool.TYPE_ID:
v3 = new com.clubpenguin.lib.data.compression.type.CBool(0, v2);
break;
case com.clubpenguin.lib.data.compression.type.CFloat.TYPE_ID:
v3 = new com.clubpenguin.lib.data.compression.type.CFloat(0, v2);
break;
case com.clubpenguin.lib.data.compression.type.CString.TYPE_ID:
v3 = new com.clubpenguin.lib.data.compression.type.CString(null, v2);
break;
default:
return v4;
}
v3.decompress(v6);
v4.setData(v3);
v5 = $cData.length;
$cData = $cData.substring(v2.__get__size(), $cData.length);
}
if ($cData.length != 0) {
}
return v4;
};
ASSetPropFlags(com.clubpenguin.lib.data.compression.Compressor.prototype, null, 1);
}
#endinitclip
}
movieClip 418 __Packages.com.clubpenguin.lib.data.event.SaveDataEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.lib) {
_global.com.clubpenguin.lib = new Object();
}
if (!_global.com.clubpenguin.lib.data) {
_global.com.clubpenguin.lib.data = new Object();
}
if (!_global.com.clubpenguin.lib.data.event) {
_global.com.clubpenguin.lib.data.event = new Object();
}
if (!_global.com.clubpenguin.lib.data.event.SaveDataEvent) {
var v1 = function (_source, _type, _data, _dataSet, _orgString) {
super(_source, _type, _data);
this.__dataSet = _dataSet;
this.__orgString = _orgString;
};
com.clubpenguin.lib.data.event.SaveDataEvent = v1;
com.clubpenguin.lib.data.event.SaveDataEvent extends com.clubpenguin.lib.event.Event;
var v2 = v1.prototype;
v2.__get__dataSet = function () {
return this.__dataSet;
};
v2.__get__stringSource = function () {
return this.__orgString;
};
v1.EVENT_GET_GAME_DATA = 'eventGetGameData';
v2.addProperty('dataSet', v2.__get__dataSet, function () {});
v2.addProperty('stringSource', v2.__get__stringSource, function () {});
ASSetPropFlags(com.clubpenguin.lib.data.event.SaveDataEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 419 __Packages.com.clubpenguin.game.net.NetClient {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.game) {
_global.com.clubpenguin.game = new Object();
}
if (!_global.com.clubpenguin.game.net) {
_global.com.clubpenguin.game.net = new Object();
}
if (!_global.com.clubpenguin.game.net.NetClient) {
var v1 = function () {};
com.clubpenguin.game.net.NetClient = v1;
var v2 = v1.prototype;
_global.com.clubpenguin.game.net.NetClient implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.__get__roomID = function () {
this.__roomID = this.SHELL.getCurrentServerRoomId();
return this.__roomID;
};
v1.__get__AirTower = function () {
if (com.clubpenguin.game.net.NetClient.$_AirTower == null) {
com.clubpenguin.game.net.NetClient.$_AirTower = _global.getCurrentAirtower();
}
return com.clubpenguin.game.net.NetClient.$_AirTower;
};
v2.init = function () {
this.SHELL = _global.getCurrentShell();
this.AIRTOWER = _global.getCurrentAirtower();
if (com.clubpenguin.game.net.NetClient.__get__AirTower() == null) {
com.clubpenguin.game.net.NetClient.AirTower = this.AIRTOWER;
}
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_GET_GAME, this.handleGetGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_JOIN_GAME, this.handleJoinGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_LEAVE_GAME, this.handleAbortGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_UPDATE_PLAYERLIST, this.handleUpdateGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_START_GAME, this.handleStartGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_ABORT_GAME, this.handleCloseGameMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_PLAYER_ACTION, this.handlePlayerActionMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_STAMP_INFORMATION, this.handleStampInformationMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_GAME_OVER, this.handleGameOverMessage, this);
this.AIRTOWER.addListener(com.clubpenguin.game.net.NetClient.MESSAGE_ERROR, this.handleErrorMessage, this);
this.roomID = this.SHELL.getCurrentServerRoomId();
};
v2.destroy = function () {
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_GET_GAME, this.handleGetGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_JOIN_GAME, this.handleJoinGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_LEAVE_GAME, this.handleAbortGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_UPDATE_PLAYERLIST, this.handleUpdateGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_START_GAME, this.handleStartGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_ABORT_GAME, this.handleCloseGameMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_PLAYER_ACTION, this.handlePlayerActionMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_STAMP_INFORMATION, this.handleStampInformationMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_GAME_OVER, this.handleGameOverMessage, this);
this.AIRTOWER.removeListener(com.clubpenguin.game.net.NetClient.MESSAGE_ERROR, this.handleErrorMessage, this);
};
v2.sendGetGameMessage = function () {
this.debugTrace('sendGetGameMessage');
this.AIRTOWER.send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.game.net.NetClient.MESSAGE_GET_GAME, '', com.clubpenguin.game.net.NetClient.SERVER_SIDE_MESSAGE_TYPE, this.__get__roomID());
};
v2.sendJoinGameMessage = function () {
this.debugTrace('sendJoinGameMessage');
this.AIRTOWER.send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.game.net.NetClient.MESSAGE_JOIN_GAME, '', com.clubpenguin.game.net.NetClient.SERVER_SIDE_MESSAGE_TYPE, this.__get__roomID());
};
v2.sendLeaveGameMessage = function () {
this.debugTrace('sendLeaveGameMessage');
this.AIRTOWER.send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.game.net.NetClient.MESSAGE_LEAVE_GAME, '', com.clubpenguin.game.net.NetClient.SERVER_SIDE_MESSAGE_TYPE, this.__get__roomID());
};
v2.sendAbortGameMessage = function () {
this.debugTrace('sendAbortGameMessage');
this.AIRTOWER.send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.game.net.NetClient.MESSAGE_ABORT_GAME, '', com.clubpenguin.game.net.NetClient.SERVER_SIDE_MESSAGE_TYPE, this.__get__roomID());
};
v2.sendPlayerActionMessage = function (messageData) {
this.debugTrace('sendPlayerActionMessage - messageData is...');
for (var v3 in messageData) {
this.debugTrace('messageData[' + v3 + '] = ' + messageData[v3]);
}
this.AIRTOWER.send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.game.net.NetClient.MESSAGE_PLAYER_ACTION, messageData, com.clubpenguin.game.net.NetClient.SERVER_SIDE_MESSAGE_TYPE, this.__get__roomID());
};
v2.handleGetGameMessage = function (resObj) {
this.debugTrace('handleGetGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleJoinGameMessage = function (resObj) {
this.debugTrace('handleJoinGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleStartGameMessage = function (resObj) {
this.debugTrace('handleStartGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleUpdateGameMessage = function (resObj) {
this.debugTrace('handleUpdateGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handlePlayerActionMessage = function (resObj) {
this.debugTrace('handlePlayerActionMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleStampInformationMessage = function (resObj) {
this.debugTrace('handleStampInformationMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleCloseGameMessage = function (resObj) {
this.debugTrace('handleCloseGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleAbortGameMessage = function (resObj) {
this.debugTrace('handleAbortGameMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleGameOverMessage = function (resObj) {
this.debugTrace('handleGameOverMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.handleErrorMessage = function (resObj) {
this.debugTrace('handleErrorMessage - not implemented!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
};
v2.dispose = function () {};
v2.debugTrace = function (message, priority) {};
v2.getUniqueName = function () {
return '[NetClient]';
};
v1.MESSAGE_GET_GAME = 'gz';
v1.MESSAGE_JOIN_GAME = 'jz';
v1.MESSAGE_LEAVE_GAME = 'lz';
v1.MESSAGE_PLAYER_ACTION = 'zm';
v1.MESSAGE_STAMP_INFORMATION = 'cjsi';
v1.MESSAGE_START_GAME = 'sz';
v1.MESSAGE_UPDATE_PLAYERLIST = 'uz';
v1.MESSAGE_ABORT_GAME = 'cz';
v1.MESSAGE_GAME_OVER = 'zo';
v1.MESSAGE_ERROR = 'ez';
v1.SERVER_SIDE_EXTENSION_NAME = 'z';
v1.SERVER_SIDE_MESSAGE_TYPE = 'str';
v1.addProperty('AirTower', v1.__get__AirTower, function () {});
v2.addProperty('roomID', v2.__get__roomID, function () {});
ASSetPropFlags(com.clubpenguin.game.net.NetClient.prototype, null, 1);
}
#endinitclip
}
movieClip 420 __Packages.com.clubpenguin.games.beatbox.util.DJ3KNetClient {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util) {
_global.com.clubpenguin.games.beatbox.util = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.util.DJ3KNetClient) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.util.DJ3KNetClient = v1;
com.clubpenguin.games.beatbox.util.DJ3KNetClient extends com.clubpenguin.game.net.NetClient;
var v2 = v1.prototype;
v1.__get__instance = function () {
if (com.clubpenguin.games.beatbox.util.DJ3KNetClient.$_instance == null) {
com.clubpenguin.games.beatbox.util.DJ3KNetClient.$_instance = new com.clubpenguin.games.beatbox.util.DJ3KNetClient();
com.clubpenguin.games.beatbox.util.DJ3KNetClient.$_instance.init();
}
return com.clubpenguin.games.beatbox.util.DJ3KNetClient.$_instance;
};
v2.init = function () {
super.init();
this.AIRTOWER.addListener(com.clubpenguin.games.beatbox.util.DJ3KNetClient.MESSAGE_CHECK_NAME, this.handleCheckName, this);
this.AIRTOWER.addListener(com.clubpenguin.games.beatbox.util.DJ3KNetClient.MESSAGE_ERROR, this.handleError, this);
};
v2.handleError = function (_response) {
com.clubpenguin.games.beatbox.util.DJ3KNetClient.checkNameResponseHandler(null);
};
v2.handleCheckName = function (_response) {
com.clubpenguin.games.beatbox.util.DJ3KNetClient.checkNameResponseHandler(_response);
};
v2.destroy = function () {
super.destroy();
this.AIRTOWER.removeListener(com.clubpenguin.games.beatbox.util.DJ3KNetClient.MESSAGE_CHECK_NAME, this.handleErrorMessage, this);
};
v2.sendBI = function (numRecords, numSaves, numDeleted) {
var v2 = [numRecords, numSaves, numDeleted];
var v3 = _global.getCurrentShell();
var v4 = v3.getCurrentServerRoomId();
(com.clubpenguin.game.net.NetClient.__get__AirTower()).send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.games.beatbox.util.DJ3KNetClient.MESSAGE_BI_INFO, v2, com.clubpenguin.games.beatbox.util.DJ3KNetClient.SERVER_SIDE_MESSAGE_TYPE, v4);
};
v2.checkTrackName = function (songName, _handler) {
com.clubpenguin.games.beatbox.util.DJ3KNetClient.checkNameResponseHandler = _handler;
var v2 = _global.getCurrentShell();
var v4 = v2.getCurrentServerRoomId();
var v3 = [songName];
(com.clubpenguin.game.net.NetClient.__get__AirTower()).send(com.clubpenguin.game.net.NetClient.SERVER_SIDE_EXTENSION_NAME, com.clubpenguin.games.beatbox.util.DJ3KNetClient.MESSAGE_CHECK_NAME, v3, com.clubpenguin.games.beatbox.util.DJ3KNetClient.SERVER_SIDE_MESSAGE_TYPE, v4);
};
v1.SERVER_SIDE_MESSAGE_TYPE = 'str';
v1.MESSAGE_BI_INFO = 'djbis';
v1.MESSAGE_CHECK_NAME = 'vn';
v1.MESSAGE_ERROR = 'e';
v1.addProperty('instance', v1.__get__instance, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.util.DJ3KNetClient.prototype, null, 1);
}
#endinitclip
}
movieClip 421 __Packages.com.clubpenguin.games.beatbox.SongChooser {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.SongChooser) {
var v1 = function () {
super();
this.soundEffects = this.createEmptyMovieClip('soundEffects', this.getNextHighestDepth());
this.closeBtn.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCloseButton);
this.test_playback.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleTestPlayback);
this.onEnterFrame = this.init;
};
com.clubpenguin.games.beatbox.SongChooser = v1;
com.clubpenguin.games.beatbox.SongChooser extends MovieClip;
var v2 = v1.prototype;
v2.handleTestPlayback = function () {
var v2;
v2 = this.createEmptyMovieClip('playBackSounds', this.getNextHighestDepth());
};
v2.handleGoToIgloo = function () {
var v4 = _global.getCurrentEngine();
var v3 = this.SHELL.getMyPlayerId();
v4.sendGameOver(1);
this.SHELL.sendJoinPlayerIgloo(v3);
};
v2.handleCloseButton = function () {
this.__dataSaver.sendBI();
this.destroy();
var v3 = _global.getCurrentEngine();
v3.sendGameOver(2);
};
v2.init = function () {
delete this.onEnterFrame;
this.SHELL = _global.getCurrentShell();
this.createEmptyMovieClip('soundEffectHolder', this.getNextHighestDepth());
var v6 = this.SHELL.getMyPlayerHex();
var v3 = new Color(this.penguin.penguinBody);
v3.setRGB(v6);
_global.dlearning_learner_id = this.SHELL.getMyPlayerId();
_global.dlsMixMaster = new com.disney.dlearning.games.mixmaster.DlsMixMaster(_global.dlearning_learner_id.toString());
_global.dlsMixMaster.init();
this.__playBackDevice = new com.clubpenguin.games.beatbox.playback.SoundControlPlayback();
this.__dataSaver = new com.clubpenguin.games.beatbox.MixMasterGameDataSaver();
this.savedMixesMenu._visible = false;
this.savedMixesMenu.init();
this.instructionsMenu._visible = false;
this.newMixMenu.oops._visible = false;
this.__currentMainMenu = this.newMixMenu;
this.newMixMenu.btnMySavedMixes.onRelease = com.clubpenguin.util.Delegate.create(this, this.showSavedMixes);
this.newMixMenu.btnInstructions.onRelease = com.clubpenguin.util.Delegate.create(this, this.showInstructions);
this.instructionsMenu.btnMySavedMixes.onRelease = com.clubpenguin.util.Delegate.create(this, this.showSavedMixes);
this.instructionsMenu.btnNewMixes.onRelease = com.clubpenguin.util.Delegate.create(this, this.showNewMixes);
this.savedMixesMenu.btnInstructions.onRelease = com.clubpenguin.util.Delegate.create(this, this.showInstructions);
this.savedMixesMenu.btnNewMixes.onRelease = com.clubpenguin.util.Delegate.create(this, this.showNewMixes);
this.__menuSystem = com.clubpenguin.games.beatbox.menus.MenuSystem(this.attachMovie('menuSystem', '__menuSystem', 2));
this.__menuSystem.init();
var v4 = this.SHELL.getLocalizedFrame();
this.mixMasterGameDataLoader = new com.clubpenguin.games.beatbox.MixMasterGameDataLoader();
this.mixMasterGameDataLoader.init();
this.mixMasterGameDataLoader.loadGameData(this);
this.localeTextListener.onLoadComplete = com.clubpenguin.util.Delegate.create(this, this.localeLoadHandler);
com.clubpenguin.util.LocaleText.addEventListener(this.localeTextListener);
var v5 = com.clubpenguin.util.LocaleText.getGameDirectory(this._url);
com.clubpenguin.util.LocaleText.init(this, v4, v5, undefined, false);
};
v2.playSong = function () {
if (this.__playBackDevice.__isSongPlaying) {
return undefined;
}
this.songActionSet = this.__activeSong.songReference;
this.playSavedTrack();
};
v2.getSongString = function () {
var v2 = this.songActionSet[0].id;
switch (v2) {
case 500:
return 'MixMasterPlayback';
case 501:
return 'MixMasterPlayback_Reggae';
case 502:
return 'MixMasterPlayback_Oldschool';
case 503:
return 'MixMasterPlayback_South';
case 504:
return 'MixMasterPlayback_Funk';
case 505:
return 'MixMasterPlayback_Drum';
case 506:
return 'MixMasterPlayback_Brazil';
case 507:
return 'MixMasterPlayback_Halloween';
}
};
v2.playSavedTrack = function () {
var songString = this.getSongString();
var v6 = this.createEmptyMovieClip('playback', 1001);
var v5 = com.clubpenguin.util.LocaleText.getGameDirectory(this._url);
var v3 = v5 + songString + '.swf';
var v4 = new MovieClipLoader();
v4.addListener(this);
v4.loadClip(v3, v6);
_global.dlsMixMaster.playSavedMix(this.mixMasterGameDataLoader.__songNames[this.__activeSong.__get__songIndex()], this.mixMasterGameDataLoader.__get__maxSongCount() - (this.getAvailableSongSlots()).length);
};
v2.onLoadInit = function (_mc) {
var v2 = this.songActionSet;
if (this.__playBackDevice.__isSongPlaying) {
return undefined;
}
this.__playBackDevice.prepareData(null, _mc, false, com.clubpenguin.util.Delegate.create(this, this.sendPlaybackComplete));
this.__playBackDevice.startSong(this.__activeSong);
};
v2.sendPlaybackComplete = function () {
this.__menuSystem.handleSongPlaybackComplete();
this.savedMixesMenu.songComplete();
};
v2.handleSongPlaybackComplete = function () {};
v2.dispatchAllSongsLoaded = function (_songActions, songs, songNames, songCount) {
this.__songActions = _songActions;
this.savedMixesMenu.populateList(this.__songActions, songNames, songCount);
this.__menuSystem.populateList(this.__songActions, this.savedMixesMenu.getListItems(), songNames);
};
v2.getAvailableSongSlots = function () {
return this.mixMasterGameDataLoader.getAvailableSongSlots();
};
v2.deleteSongByID = function (songID) {
var v2 = new com.clubpenguin.lib.data.compression.DataSet();
v2.setString('-1');
this.mixMasterGameDataLoader.setEmptySongSlot(songID);
this.__dataSaver.saveGameData(v2, songID);
};
v2.dispatchNewSongNames = function (_songs, _songNames) {
this.savedMixesMenu.updateSongInfo(_songs, _songNames);
};
v2.showSavedMixes = function () {
if (!this.SHELL.isMyPlayerMember()) {
var v3 = _global.getCurrentInterface();
v3.showContent('oops_game_dj3k_save');
return undefined;
}
this.savedMixesMenu.refreshMenu();
this.__currentMainMenu._visible = false;
this.__currentMainMenu = this.savedMixesMenu;
this.__currentMainMenu._visible = true;
this.setMenuLocalization();
};
v2.showInstructions = function () {
this.__currentMainMenu._visible = false;
this.__currentMainMenu = this.instructionsMenu;
this.__currentMainMenu._visible = true;
this.setMenuLocalization();
_global.dlsMixMaster.selectInstructions();
};
v2.showNewMixes = function () {
this.__currentMainMenu._visible = false;
this.__currentMainMenu = this.newMixMenu;
this.__currentMainMenu._visible = true;
this.setMenuLocalization();
};
v2.setMenuLocalization = function () {
switch (this.__currentMainMenu) {
case this.savedMixesMenu:
this.__currentMainMenu.make_new_mix.text = com.clubpenguin.util.LocaleText.getText('make_new_mix');
this.__currentMainMenu.my_saved_mixes.text = com.clubpenguin.util.LocaleText.getText('my_saved_mixes');
this.__currentMainMenu.instructions.text = com.clubpenguin.util.LocaleText.getText('instructions');
this.__currentMainMenu.my_saved_mixes_title.text = com.clubpenguin.util.LocaleText.getText('my_saved_mixes_title');
break;
case this.instructionsMenu:
this.__currentMainMenu.make_new_mix.text = com.clubpenguin.util.LocaleText.getText('make_new_mix');
this.__currentMainMenu.my_saved_mixes.text = com.clubpenguin.util.LocaleText.getText('my_saved_mixes');
this.__currentMainMenu.instructions.text = com.clubpenguin.util.LocaleText.getText('instructions');
var v2 = this.__currentMainMenu.instructions_mc.step_1_label.getTextFormat();
v2.bold = true;
this.__currentMainMenu.instructions_mc.step_1_label.setTextFormat(v2);
this.__currentMainMenu.instructions_mc.step_1_label.text = com.clubpenguin.util.LocaleText.getText('instructions_mix_label');
this.__currentMainMenu.instructions_mc.step_1_msg.text = com.clubpenguin.util.LocaleText.getText('instructions_mix');
this.__currentMainMenu.instructions_mc.step_2_label.text = com.clubpenguin.util.LocaleText.getText('instructions_record_label');
this.__currentMainMenu.instructions_mc.step_2_msg1.text = com.clubpenguin.util.LocaleText.getText('instructions_record');
this.__currentMainMenu.instructions_mc.step_2_msg2.text = com.clubpenguin.util.LocaleText.getText('instructions_stop_record');
this.__currentMainMenu.instructions_mc.step_3_label.text = com.clubpenguin.util.LocaleText.getText('instructions_save_label');
this.__currentMainMenu.instructions_mc.step_3_msg.text = com.clubpenguin.util.LocaleText.getText('instructions_save');
this.__currentMainMenu.instructions_mc.step_4_label.text = com.clubpenguin.util.LocaleText.getText('instructions_play_label');
this.__currentMainMenu.instructions_mc.step_4_msg.text = com.clubpenguin.util.LocaleText.getText('instructions_play');
this.__currentMainMenu.instructions_mc.instructions_save_btn.text = com.clubpenguin.util.LocaleText.getText('instructions_save_btn');
this.__currentMainMenu.instructions_mc.instructions_cancel_btn.text = com.clubpenguin.util.LocaleText.getText('instructions_cancel_btn');
break;
case this.newMixMenu:
this.__currentMainMenu.make_new_mix.text = com.clubpenguin.util.LocaleText.getText('make_new_mix');
this.__currentMainMenu.my_saved_mixes.text = com.clubpenguin.util.LocaleText.getText('my_saved_mixes');
this.__currentMainMenu.instructions.text = com.clubpenguin.util.LocaleText.getText('instructions');
this.__currentMainMenu.select_track.text = com.clubpenguin.util.LocaleText.getText('select_track');
this.__currentMainMenu.unlock_text.text = com.clubpenguin.util.LocaleText.getText('unlock_text');
}
};
v2.reset = function () {
this.newMixMenu.trackAnimator.recordMovie.gotoAndStop('blank');
this.newMixMenu.trackAnimator._visible = false;
};
v2.destroy = function () {
com.clubpenguin.util.LocaleText.removeEventListener(this.localeTextListener);
this.removeMovieClip();
this.removeMovieClip();
this.removeMovieClip();
this.mixMasterGameDataLoader = null;
this.__menuSystem = null;
this.reset();
};
v2.localeLoadHandler = function () {
var v3 = _global.getCurrentShell();
this.selectTrack.text = com.clubpenguin.util.LocaleText.getText('select_track');
this.selectTrackShadow.text = com.clubpenguin.util.LocaleText.getText('select_track');
this.postItNote.text = com.clubpenguin.util.LocaleText.getText('track_help');
this.newMixMenu.trackAnimator.recordMovie.trackName.text = com.clubpenguin.util.LocaleText.getText('track_id_0');
var v4 = new Color(this.penguin.colour);
v4.setRGB(v3.getMyPlayerHex());
v3.hideLoading();
this.currentTrack = 0;
this.allTracks = new Array();
this.allTracks.push(0);
if (v3.isMyPlayerMember()) {
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_FESTIVAL)) {
this.allTracks.push(1);
this.recordLabelColours.push(3394815);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_JUNGLE)) {
this.allTracks.push(2);
this.recordLabelColours.push(3394560);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_FUNKY)) {
this.allTracks.push(3);
this.recordLabelColours.push(11362246);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_SOUTHASIAN)) {
this.allTracks.push(4);
this.recordLabelColours.push(16776960);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_OLDSKOOL)) {
this.allTracks.push(5);
this.recordLabelColours.push(12587672);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_REGGAE)) {
this.allTracks.push(6);
this.recordLabelColours.push(16750848);
}
if (v3.isItemInMyInventory(this.ITEMID_SOUNDPACK_HALLOWEEN)) {
this.allTracks.push(7);
this.recordLabelColours.push(16750848);
}
}
this.showNewMixes();
if (this.allTracks.length == 1) {
this.newMixMenu.trackAnimator.recordMovie.gotoAndStop('single');
} else {
this.newMixMenu.trackAnimator.recordMovie.gotoAndStop('static');
}
};
v2.previousTrack = function () {
++this.currentTrack;
this.newMixMenu.trackAnimator.recordMovie.gotoAndStop('animateLeft');
var v2 = this.allTracks[this.currentTrack % this.allTracks.length];
this.newMixMenu.trackAnimator.recordMovie.trackName.text = com.clubpenguin.util.LocaleText.getText('track_id_' + v2);
};
v2.nextTrack = function () {
--this.currentTrack;
if (this.currentTrack <= 0) {
this.currentTrack += this.allTracks.length;
}
this.newMixMenu.trackAnimator.recordMovie.gotoAndStop('animateRight');
var v2 = this.allTracks[this.currentTrack % this.allTracks.length];
this.newMixMenu.trackAnimator.recordMovie.trackName.text = com.clubpenguin.util.LocaleText.getText('track_id_' + v2);
};
v2.launchSoundbank = function () {
var v7 = _global.getCurrentShell();
var v9 = _global.getCurrentAirtower();
var v10 = v7.getCurrentServerRoomId();
var v8 = this.allTracks[this.currentTrack % this.allTracks.length];
var v5 = '';
switch (v8) {
case 1:
v5 = '_Brazil1';
break;
case 2:
v5 = '_Drum_n_Bass1';
break;
case 3:
v5 = '_Funk1';
break;
case 4:
v5 = '_SouthAsian1';
break;
case 5:
v5 = '_OldSchool1';
break;
case 6:
v5 = '_Reggae1';
break;
case 7:
v5 = '_Halloween';
}
var v4 = this._url.split('/');
var v6 = '';
var v3 = 0;
while (v3 < v4.length - 1) {
v6 += v4[v3] + '/';
++v3;
}
this.interfaceMC = this.createEmptyMovieClip('interface', 1);
this.interfaceMCLoader = new MovieClipLoader();
this.loadCompleteListener = new Object();
this.loadCompleteListener.onLoadInit = com.clubpenguin.util.Delegate.create(this, this.somefunction);
this.interfaceMCLoader.addListener(this.loadCompleteListener);
this.interfaceMCLoader.loadClip(v6 + 'MixMaster' + v5 + '.swf', this.interfaceMC);
v7.showLoading(com.clubpenguin.util.LocaleText.getText('track_id_' + v8), undefined);
this.reset();
};
v2.somefunction = function () {
this.SHELL.hideLoading();
this.SHELL.stopMusic();
this.interfaceMC.init(this, this.__dataSaver);
this.interfaceMCLoader.removeListener(this.loadCompleteListener);
};
v2.showMenu = function (_menu) {
this.__menuSystem.showMenu(_menu);
};
v2.showChooseSongs = function () {
this.interfaceMC.removeMovieClip();
this.__dataSaver.__newGameData = new com.clubpenguin.lib.data.compression.DataSet();
this.newMixMenu.trackAnimator._visible = true;
};
v2.setSongData = function () {
this.__menuSystem.setSongData(this.__dataSaver);
};
v2.toString = function () {
return 'ChooseSong.swf';
};
v2.saveActiveSong = function (_index) {
var v2 = _index + 1;
this.__activeSong.saveTo(this.__dataSaver, v2);
};
v2.stopCurrentSong = function () {
this.__playBackDevice.destroy();
};
v2.playSongFromData = function (songIndex) {
this.__activeSong = this.mixMasterGameDataLoader.__songs[songIndex];
this.__activeSong.__set__songIndex(songIndex);
this.playSong();
};
v2.ITEMID_SOUNDPACK_FESTIVAL = 5038;
v2.ITEMID_SOUNDPACK_JUNGLE = 5039;
v2.ITEMID_SOUNDPACK_FUNKY = 5037;
v2.ITEMID_SOUNDPACK_SOUTHASIAN = 5071;
v2.ITEMID_SOUNDPACK_OLDSKOOL = 5072;
v2.ITEMID_SOUNDPACK_REGGAE = 5070;
v2.ITEMID_SOUNDPACK_HALLOWEEN = 5121;
v2.recordLabelColours = [15615044];
v2.localeTextListener = new Object();
v2.currentTrack = 0;
v2.allTracks = new Array();
v2.MAX_NUM_SONGS = 6;
ASSetPropFlags(com.clubpenguin.games.beatbox.SongChooser.prototype, null, 1);
}
#endinitclip
}
movieClip 422 __Packages.com.clubpenguin.games.beatbox.MixMasterGameDataLoader {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.MixMasterGameDataLoader) {
var v1 = function () {};
com.clubpenguin.games.beatbox.MixMasterGameDataLoader = v1;
var v2 = v1.prototype;
v2.__get__maxSongCount = function () {
return com.clubpenguin.games.beatbox.MixMasterGameDataLoader.MAX_SONG_COUNT;
};
v2.init = function () {
this.__songsLoaded = false;
this.__saveData = new com.clubpenguin.lib.data.SaveData();
this.__songs = new Array();
this.__songsInDataSetForm = new Array();
this.__songArray = new Array();
this.__songCount = 1;
this.__songNames = new Array();
this.__emptySongs = new Array();
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, this.handleGameDataResponse, this);
};
v2.__get__songAmount = function () {
return this.__songCount;
};
v2.loadGameData = function (_chooseSongs) {
this.__chooseSongsMC = _chooseSongs;
this.__saveData.getGameData(this.__songCount);
};
v2.handleGameDataResponse = function (_event) {
clearInterval(this._sdInterval);
var v4;
var v3;
var v2;
this._sdInterval = setInterval(com.clubpenguin.util.Delegate.create(this, this.saveDataBypass), 5000);
com.clubpenguin.lib.event.EventManager.removeEventListener(com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, this.handleGameDataResponse, this);
v3 = com.clubpenguin.lib.data.compression.DataSet(_event.__get__data());
this.__songsInDataSetForm.push(v3);
v2 = v3.getString(0);
if (v2 == '-1' || v2 == null) {
this.__emptySongs.push(this.__songCount);
}
v4 = new com.clubpenguin.games.beatbox.playback.Song();
v4.buildSongFromSavedData(v3);
this.__songs.push(v4);
this.__songNames.push(v2);
++this.__songCount;
if (this.__songCount == 7) {
clearInterval(this._sdInterval);
this.__chooseSongsMC.dispatchAllSongsLoaded(this.__songs, this.__songsInDataSetForm, this.__songNames, this.__songCount - 1);
return undefined;
}
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, this.handleGameDataResponse, this);
this.__saveData.getGameData(this.__songCount);
clearInterval(this._sdInterval);
};
v2.saveDataBypass = function () {
clearInterval(this._sdInterval);
var v3;
var v4;
var v2;
com.clubpenguin.lib.event.EventManager.removeEventListener(com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, this.handleGameDataResponse, this);
v4 = new com.clubpenguin.lib.data.compression.DataSet();
this.__songsInDataSetForm.push(v4);
v2 = '-1';
if (v2 == '-1' || v2 == null) {
this.__emptySongs.push(this.__songCount);
}
v3 = new com.clubpenguin.games.beatbox.playback.Song();
v3.buildSongFromSavedData(v4);
this.__songs.push(v3);
this.__songNames.push(v2);
++this.__songCount;
if (this.__songCount == 7) {
this.__chooseSongsMC.dispatchAllSongsLoaded(this.__songs, this.__songsInDataSetForm, this.__songNames, this.__songCount - 1);
return undefined;
}
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.lib.data.event.SaveDataEvent.EVENT_GET_GAME_DATA, this.handleGameDataResponse, this);
this.__saveData.getGameData(this.__songCount);
};
v2.getAvailableSongSlots = function () {
return this.__emptySongs;
};
v2.__get__playerSongs = function () {
return this.__songs;
};
v2.setEmptySongSlot = function (songID) {
this.__emptySongs.push(songID);
};
v1.MAX_SONG_COUNT = 6;
v1.NO_DATA_LENGTH = 0;
v2.locally = false;
v1.callCount = 0;
v2.addProperty('maxSongCount', v2.__get__maxSongCount, function () {});
v2.addProperty('playerSongs', v2.__get__playerSongs, function () {});
v2.addProperty('songAmount', v2.__get__songAmount, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.MixMasterGameDataLoader.prototype, null, 1);
}
#endinitclip
}
movieClip 423 __Packages.com.disney.dlearning.games.mixmaster.DlsMixMaster {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.disney) {
_global.com.disney = new Object();
}
if (!_global.com.disney.dlearning) {
_global.com.disney.dlearning = new Object();
}
if (!_global.com.disney.dlearning.games) {
_global.com.disney.dlearning.games = new Object();
}
if (!_global.com.disney.dlearning.games.mixmaster) {
_global.com.disney.dlearning.games.mixmaster = new Object();
}
if (!_global.com.disney.dlearning.games.mixmaster.DlsMixMaster) {
var v1 = function (learnerID) {
com.disney.dlearning.managers.DLSManager.init(learnerID, 'k.api.dlsnetwork.com');
};
com.disney.dlearning.games.mixmaster.DlsMixMaster = v1;
var v2 = v1.prototype;
v2.init = function () {
var v2 = new Object();
v2.onPlaySoundStarted = com.clubpenguin.util.Delegate.create(this, this.onPlaySoundStarted);
com.clubpenguin.util.SoundControl.addEventListener(com.clubpenguin.util.SoundControl.EVENT_PLAY_SOUND_STARTED, v2);
this.selectSong();
this.startDJ3K();
};
v2.startDJ3K = function () {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('start', this.__DJ3K, this.callbackFunc, null);
};
v2.stopDJ3K = function () {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('stop', this.__DJ3K, this.callbackFunc, null);
};
v2.selectSong = function () {
var v3 = '';
switch (_global.dls_mixmaster_song) {
case 'brazil':
v3 = this.__Festival_Sound_Pack;
break;
case 'south_asian':
v3 = this.__Desibel_South_Asian_Sound_Pack;
break;
case 'default':
v3 = this.__Classic_Default_Sound_Pack;
break;
case 'drum_n_bass':
v3 = this.__Jungle_Song_Sound_Pack;
break;
case 'funk':
v3 = this.__Funky_Sound_Pack;
break;
case 'oldschool':
v3 = this.__House_Blend_Old_Skool_Sound_Pack;
break;
case 'reggae':
v3 = this.__Reggae_Sound_Pack;
}
if (v3 != '') {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('selected', v3, this.callbackFunc, null);
}
};
v2.onPlaySoundStarted = function (obj) {
this.playedSong(obj.soundName);
};
v2.playedSong = function (songName) {
var v2 = '';
switch (songName) {
case 'rackButton17':
case 'rackButton18':
case 'rackButton19':
v2 = this.__Bassline_Tape_Decks_Buttons;
break;
case 'effectRewindDeck5':
case 'effectRewindDeck3':
case 'effectRewindDeck11':
case 'effectRewindDeck1':
case 'effectRewindDeck7':
case 'effectRewindDeck2':
case 'effectRewindDeck4':
case 'effectRewindDeck6':
case 'effectRewindDeck8':
v2 = this.__Mixer_Buttons;
break;
case 'rackButton6':
case 'rackButton7':
case 'rackButton8':
case 'rackButton9':
case 'rackButton10':
case 'rackButton11':
v2 = this.__Drum_Loop_Rack_Buttons;
break;
case 'keyCLow':
case 'keyCSharp':
case 'keyD':
case 'keyDSharp':
case 'keyE':
case 'keyF':
case 'keyFSharp':
case 'keyG':
case 'keyGSharp':
case 'keyA':
case 'keyASharp':
case 'keyB':
case 'keyCHigh':
if (this._lastKeyboardKey != songName) {
this._lastKeyboardKey = songName;
v2 = this.__Keyboard_Keys;
} else {}
break;
case 'rackSlider':
v2 = this.__Music_Loop_Volume_Controls_Buttons;
break;
case 'effectRewindDeck9':
case 'effectRewindDeck10':
v2 = this.__Turntables_Buttons;
break;
case 'effectKlaxon':
case 'effectCowbell':
case 'effectCops':
case 'effectEep':
case 'effectWhistle':
v2 = this.__Right_Speaker_Buttons;
break;
case 'effectChopDmShort':
case 'effectWahDmShort':
case 'effectChopAmShort':
case 'effectRideReverse':
case 'effectRide':
case 'effectWahAm7Long':
case 'effectWahDm7Long':
case 'effectJungleBird':
v2 = this.__Top_Left_Rack_Buttons;
break;
default:
}
if (v2 != '') {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('selected', v2, this.callbackFunc, null);
}
};
v2.selectInstructions = function () {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('selected', this.__instructions, this.callbackFunc, null);
};
v2.saveAMix = function (songName) {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('selected', this.__save_a_mix, this.callbackFunc, songName);
};
v2.playSavedMix = function (songName, numSongs) {
(com.disney.dlearning.managers.DLSManager.__get__instance()).pushOpcode('selected', this.__my_saved_mixes, this.callbackFunc, songName, 'numSongs');
};
v2.callbackFunc = function (obj) {};
v2.__DJ3K = '7BCB9DC5-0513-69D6-7060-CE92C05E6A3B';
v2.__Classic_Default_Sound_Pack = 'F6C61C3C-52C7-2E10-7744-EA7EBCB4F0CB';
v2.__Jungle_Song_Sound_Pack = 'B1B0DBF6-45FE-85A9-B490-6123AF5669CD';
v2.__Funky_Sound_Pack = '08BA2C9F-D396-F68C-54AD-F785820A4C25';
v2.__Festival_Sound_Pack = '69E38B81-C57B-3D1B-0B9A-150E70F823D1';
v2.__Desibel_South_Asian_Sound_Pack = '5C3805BD-3519-ED8D-6C8D-086D246B2922';
v2.__House_Blend_Old_Skool_Sound_Pack = '714475DF-B6B2-56B3-0D80-40DCBF30E1CF';
v2.__Reggae_Sound_Pack = '981E3887-7E73-D97B-7CC7-2DD041B91B54';
v2.__Top_Left_Rack_Buttons = 'D7C75D84-A0E7-9395-6446-5291EA9A82D6';
v2.__Bassline_Tape_Decks_Buttons = '65AD9BC5-CAE2-5F51-BF88-68FD9B6CEABB';
v2.__Drum_Loop_Rack_Buttons = '13CB904D-519D-A8E5-E786-EF7A659FE5D1';
v2.__Music_Loop_Volume_Controls_Buttons = 'F309C86B-15A4-CF27-1119-3190A0D113C5';
v2.__Turntables_Buttons = '1A2C99E9-8BFD-A887-C261-1B739C78ECE3';
v2.__Mixer_Buttons = 'ACA3FAC2-0045-1A5D-1685-19E676ED1882';
v2.__Right_Speaker_Buttons = 'CFABC6C4-8BE1-62BB-C5D9-36B639D95D9A';
v2.__Keyboard_Keys = '0E84420A-C01E-A402-00B1-7224A2BD8F0E';
v2.__instructions = '3CFE4F51-82D2-DEB0-FC53-190D03C881E6';
v2.__my_saved_mixes = '4EFDFFAB-228C-BAEA-DE86-F6B81DC84D11';
v2.__save_a_mix = 'F18DA4FD-FF60-EFDE-3C20-42DBB4CEC115';
v2._lastKeyboardKey = '';
ASSetPropFlags(com.disney.dlearning.games.mixmaster.DlsMixMaster.prototype, null, 1);
}
#endinitclip
}
movieClip 424 __Packages.com.disney.dlearning.managers.DLSManager {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.disney) {
_global.com.disney = new Object();
}
if (!_global.com.disney.dlearning) {
_global.com.disney.dlearning = new Object();
}
if (!_global.com.disney.dlearning.managers) {
_global.com.disney.dlearning.managers = new Object();
}
if (!_global.com.disney.dlearning.managers.DLSManager) {
var v1 = function () {
this.__localConnection = new com.disney.dlearning.debug.DLSLocalConnectionProducer();
};
com.disney.dlearning.managers.DLSManager = v1;
var v2 = v1.prototype;
v1.init = function (learnerId, host, developerId) {
com.disney.dlearning.managers.DLSManager.__learnerID = learnerId;
if (host == null) {
com.disney.dlearning.managers.DLSManager.__host = 'k.api.dlsnetwork.com';
} else {
com.disney.dlearning.managers.DLSManager.__host = host;
}
if (learnerId == null) {
com.disney.dlearning.managers.DLSManager.__learnerID = '-1';
} else {
com.disney.dlearning.managers.DLSManager.__learnerID = learnerId;
}
if (developerId == null) {
com.disney.dlearning.managers.DLSManager.__developerID = 'ClubPenguin.v1';
} else {
com.disney.dlearning.managers.DLSManager.__developerID = learnerId;
}
};
v1.__get__instance = function () {
if (com.disney.dlearning.managers.DLSManager.__instance == null) {
com.disney.dlearning.managers.DLSManager.__instance = new com.disney.dlearning.managers.DLSManager();
}
return com.disney.dlearning.managers.DLSManager.__instance;
};
v1.__set__learnerID = function (id) {
com.disney.dlearning.managers.DLSManager.__learnerID = id;
return com.disney.dlearning.managers.DLSManager.__get__learnerID();
};
v1.__get__learnerID = function () {
return com.disney.dlearning.managers.DLSManager.__learnerID;
};
v1.__set__host = function (host) {
com.disney.dlearning.managers.DLSManager.__host = host;
return com.disney.dlearning.managers.DLSManager.__get__host();
};
v1.__get__host = function () {
return com.disney.dlearning.managers.DLSManager.__host;
};
v2.pushOpcode2 = function (opcode, guid, callback, register1) {};
v2.pushOpcode2Params = function (opcode, guid, callback, register1, register2) {
var v5 = new Date();
var v3 = Math.round(v5.getTime() / 1000);
var v4;
var v8 = this.__URLLoaderCookieId++;
if (com.disney.dlearning.managers.DLSManager.__learnerID == '') {
com.disney.dlearning.managers.DLSManager.__learnerID = '-1';
}
if (opcode == '') {
opcode = 'no_opcode_given';
}
v4 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/v1/opcode/pushOpcode/' + opcode + '/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + v3 + '/' + guid + '/' + register1 + '/' + register2 + '/';
var v6 = this.encryptURL(v4, v3.toString(), com.disney.dlearning.managers.DLSManager.__developerID) + '|' + this.encryptTime(v3.toString());
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
v2.addRequestHeader('DLSNetwork-Developer-ID', com.disney.dlearning.managers.DLSManager.__developerID);
v2.addRequestHeader('DLSNetwork-Request-Key', v6);
v2.addRequestHeader('DLSNetwork-Sequence-ID', String(this.__sequenceID++));
try {
v2.sendAndLoad(v4, v2, 'POST');
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v8;
}
throw v0;
}
return v8;
};
v2.pushOpcode = function (opcode, guid, callback, register1, register2, register3) {
var v5 = new Date();
var v4 = Math.round(v5.getTime() / 1000);
var v3;
var v8 = this.__URLLoaderCookieId++;
if (com.disney.dlearning.managers.DLSManager.__learnerID == '') {
com.disney.dlearning.managers.DLSManager.__learnerID = '-1';
}
if (opcode == '') {
opcode = 'no_opcode_given';
}
v3 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/v1/opcode/pushOpcode/' + opcode + '/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + v4 + '/' + guid + '/' + register1 + '/' + register2 + '/' + register3 + '/';
var v6 = this.encryptURL(v3, v4.toString(), com.disney.dlearning.managers.DLSManager.__developerID) + '|' + this.encryptTime(v4.toString());
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
v2.addRequestHeader('DLSNetwork-Developer-ID', com.disney.dlearning.managers.DLSManager.__developerID);
v2.addRequestHeader('DLSNetwork-Request-Key', v6);
v2.addRequestHeader('DLSNetwork-Sequence-ID', String(this.__sequenceID++));
if (com.disney.dlearning.managers.DLSManager.__learnerID == '-1') {
this.__localConnection.sendMessage('API', v3);
}
try {
v2.sendAndLoad(v3, v2, 'POST');
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v8;
}
throw v0;
}
return v8;
};
v2.pushOpcodeToHost = function (host, opcode, guid, callback, register1, register2, register3) {
var v5 = new Date();
var v4 = Math.round(v5.getTime() / 1000);
var v3;
var v8 = this.__URLLoaderCookieId++;
if (com.disney.dlearning.managers.DLSManager.__learnerID == '') {
com.disney.dlearning.managers.DLSManager.__learnerID = '-1';
}
if (opcode == '') {
opcode = 'no_opcode_given';
}
if (host == '') {
host = 'k.api.dlsnetwork.com';
}
v3 = 'http://' + host + '/v1/opcode/pushOpcode/' + opcode + '/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + v4 + '/' + guid + '/' + register1 + '/' + register2 + '/' + register3 + '/';
var v6 = this.encryptURL(v3, v4.toString(), com.disney.dlearning.managers.DLSManager.__developerID) + '|' + this.encryptTime(v4.toString());
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
v2.addRequestHeader('DLSNetwork-Developer-ID', com.disney.dlearning.managers.DLSManager.__developerID);
v2.addRequestHeader('DLSNetwork-Request-Key', v6);
v2.addRequestHeader('DLSNetwork-Sequence-ID', String(this.__sequenceID++));
if (com.disney.dlearning.managers.DLSManager.__learnerID == '-1') {
this.__localConnection.sendMessage('API', v3);
}
try {
v2.sendAndLoad(v3, v2, 'POST');
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v8;
}
throw v0;
}
return v8;
};
v2.getAvailableContent = function (callback, sortingOrder) {
var v3 = this.__URLLoaderCookieId++;
this.__URLCallbacks[v3] = callback;
var v4 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/v1/reports/getAvailableContent/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + sortingOrder + '/';
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
try {
v2.load(v4);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v3;
}
throw v0;
}
return v3;
};
v2.getLearnerScores = function (callback) {
var v2 = this.__URLLoaderCookieId++;
this.__URLCallbacks[v2] = callback;
var v4 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/v1/reports/getLearnerScores/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/';
var v3 = new LoadVars();
v3.callback = callback;
try {
v3.load(v4);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v2;
}
throw v0;
}
return v2;
};
v2.getLearnerScoreByNode = function (guid, callback) {
var v3 = this.__URLLoaderCookieId++;
this.__URLCallbacks[v3] = callback;
var v4 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/reports/getLearnerScoreByNode/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + guid + '/';
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
v2.learner = com.disney.dlearning.managers.DLSManager.__learnerID;
try {
v2.load(v4);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v3;
}
throw v0;
}
return v3;
};
v2.isContentUnlocked = function (guid, callback) {
var v3 = this.__URLLoaderCookieId++;
this.__URLCallbacks[v3] = callback;
var v4 = 'http://' + com.disney.dlearning.managers.DLSManager.__host + '/v1/content/getAvailableContent/' + com.disney.dlearning.managers.DLSManager.__learnerID + '/' + guid + '/';
var v2 = new LoadVars();
v2.callback = callback;
this.configureListeners(v2);
try {
v2.load(v4);
}
catch (v0) {
if (Error(v0) != null) {
var error = Error(v0);
return v3;
}
throw v0;
}
return v3;
};
v2.callback = function () {};
v2.configureListeners = function (target) {
target.hostThis = this;
};
v2.encryptURL = function (url, timestamp, developerId) {
var v2 = new com.disney.dlearning.security.Md5();
var v1 = url + timestamp + developerId + '_Salt';
var v3 = v2.hash(v1);
return v3;
};
v2.encryptTime = function (time) {
return time;
};
v2.__URLLoaderCookieId = 0;
v2.__URLCallbacks = new Array();
v2.__sequenceID = 0;
v1.addProperty('host', v1.__get__host, v1.__set__host);
v1.addProperty('instance', v1.__get__instance, function () {});
v1.addProperty('learnerID', v1.__get__learnerID, v1.__set__learnerID);
ASSetPropFlags(com.disney.dlearning.managers.DLSManager.prototype, null, 1);
}
#endinitclip
}
movieClip 425 __Packages.com.disney.dlearning.debug.DLSLocalConnectionProducer {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.disney) {
_global.com.disney = new Object();
}
if (!_global.com.disney.dlearning) {
_global.com.disney.dlearning = new Object();
}
if (!_global.com.disney.dlearning.debug) {
_global.com.disney.dlearning.debug = new Object();
}
if (!_global.com.disney.dlearning.debug.DLSLocalConnectionProducer) {
var v1 = function () {
super();
this.conn = new LocalConnection();
this.conn.onStatus = this.onStatus;
};
com.disney.dlearning.debug.DLSLocalConnectionProducer = v1;
com.disney.dlearning.debug.DLSLocalConnectionProducer extends Object;
var v2 = v1.prototype;
v2.sendMessage = function (type, message) {
var v2 = new Object();
v2.type = type;
v2.message = message;
var v3 = new com.disney.dlearning.serialization.JSON();
this.conn.send('DLS.CONNECTION', 'DLSlcHandler', v3.stringify(v2));
};
v2.onStatus = function (event) {
switch (event.level) {
case 'status':
break;
case 'error':
}
};
ASSetPropFlags(com.disney.dlearning.debug.DLSLocalConnectionProducer.prototype, null, 1);
}
#endinitclip
}
movieClip 426 __Packages.com.disney.dlearning.serialization.JSON {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.disney) {
_global.com.disney = new Object();
}
if (!_global.com.disney.dlearning) {
_global.com.disney.dlearning = new Object();
}
if (!_global.com.disney.dlearning.serialization) {
_global.com.disney.dlearning.serialization = new Object();
}
if (!_global.com.disney.dlearning.serialization.JSON) {
var v1 = function () {};
com.disney.dlearning.serialization.JSON = v1;
var v2 = v1.prototype;
v2.stringify = function (arg) {
var v4;
var v3;
var v7;
var v2 = '';
var v5;
switch (typeof arg) {
return 'null';
case 'object':
if (arg) {
if (arg instanceof Array) {
v3 = 0;
while (v3 < arg.length) {
v5 = this.stringify(arg[v3]);
if (v2) {
v2 += ',';
}
v2 += v5;
++v3;
}
return '[' + v2 + ']';
} else {
if (typeof arg.toString != 'undefined') {
for (v3 in arg) {
v5 = arg[v3];
if (typeof v5 != 'undefined' && typeof v5 != 'function') {
v5 = this.stringify(v5);
if (v2) {
v2 += ',';
}
v2 += this.stringify(v3) + ':' + v5;
}
}
return '{' + v2 + '}';
}
}
}
return 'null';
case 'number':
return isFinite(arg) ? String(arg) : 'null';
case 'string':
v7 = arg.length;
v2 = '"';
v3 = 0;
while (v3 < v7) {
v4 = arg.charAt(v3);
if (v4 >= ' ') {
if (v4 == '\\' || v4 == '"') {
v2 += '\\';
}
v2 += v4;
} else {
switch (v4) {
case '\b':
v2 += '\\b';
break;
case '\f':
v2 += '\\f';
break;
case '\n':
v2 += '\\n';
break;
case '\r':
v2 += '\\r';
break;
case '\t':
v2 += '\\t';
break;
default:
v4 = v4.charCodeAt();
v2 += '\\u00' + (Math.floor(v4 / 16)).toString(16) + (v4 % 16).toString(16);
}
}
v3 += 1;
}
return v2 + '"';
case 'boolean':
return String(arg);
}
return 'null';
};
v2.white = function () {
while (this.ch) {
if (this.ch <= ' ') {
this.next();
} else {
if (this.ch == '/') {
switch (this.next()) {
case '/':
for (;;) {
if (!(this.next() && this.ch != '\n' && this.ch != '\r')) break;
}
break;
case '*':
this.next();
for (;;) {
if (this.ch) {
if (this.ch == '*') {
if (this.next() == '/') {
this.next();
break;
}
} else {
this.next();
}
continue;
}
this.error('Unterminated comment');
}
break;
default:
this.error('Syntax error');
}
} else {
break;
}
}
}
};
v2.error = function (m) {
throw {'name': 'JSONError', 'message': m, 'at': this.at - 1, 'text': this.text};
};
v2.next = function () {
this.ch = this.text.charAt(this.at);
this.at += 1;
return this.ch;
};
v2.str = function () {
var v5;
var v2 = '';
var v4;
var v3;
var v6 = false;
if (this.ch == '"') {
while (this.next()) {
if (this.ch == '"') {
this.next();
return v2;
} else {
if (this.ch == '\\') {
switch (this.next()) {
case 'b':
v2 += '\b';
break;
case 'f':
v2 += '\f';
break;
case 'n':
v2 += '\n';
break;
case 'r':
v2 += '\r';
break;
case 't':
v2 += '\t';
break;
case 'u':
v3 = 0;
v5 = 0;
while (v5 < 4) {
v4 = parseInt(this.next(), 16);
if (!isFinite(v4)) {
v6 = true;
break;
}
v3 = v3 * 16 + v4;
v5 += 1;
}
if (v6) {
v6 = false;
} else {
v2 += String.fromCharCode(v3);
break;
default:
v2 += this.ch;
}
}
} else {
v2 += this.ch;
}
}
}
}
this.error('Bad string');
};
v2.arr = function () {
var v2 = [];
if (this.ch == '[') {
this.next();
this.white();
if (this.ch == ']') {
this.next();
return v2;
}
while (this.ch) {
v2.push(this.value());
this.white();
if (this.ch == ']') {
this.next();
return v2;
} else {
if (this.ch != ',') {
break;
}
}
this.next();
this.white();
}
}
this.error('Bad array');
};
v2.obj = function () {
var v3;
var v2 = {};
if (this.ch == '{') {
this.next();
this.white();
if (this.ch == '}') {
this.next();
return v2;
}
while (this.ch) {
v3 = this.str();
this.white();
if (this.ch != ':') {
break;
}
this.next();
v2[v3] = this.value();
this.white();
if (this.ch == '}') {
this.next();
return v2;
} else {
if (this.ch != ',') {
break;
}
}
this.next();
this.white();
}
}
this.error('Bad object');
};
v2.num = function () {
var v2 = '';
var v3;
if (this.ch == '-') {
v2 = '-';
this.next();
}
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
if (this.ch == '.') {
v2 += '.';
this.next();
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
}
if (this.ch == 'e' || this.ch == 'E') {
v2 += this.ch;
this.next();
if (this.ch == '-' || this.ch == '+') {
v2 += this.ch;
this.next();
}
for (;;) {
if (!(this.ch >= '0' && this.ch <= '9')) break;
v2 += this.ch;
this.next();
}
}
v3 = Number(v2);
if (!isFinite(v3)) {
this.error('Bad number');
}
return v3;
};
v2.word = function () {
switch (this.ch) {
case 't':
if (this.next() == 'r' && this.next() == 'u' && this.next() == 'e') {
this.next();
return true;
}
break;
case 'f':
if (this.next() == 'a' && this.next() == 'l' && this.next() == 's' && this.next() == 'e') {
this.next();
return false;
}
break;
case 'n':
if (this.next() == 'u' && this.next() == 'l' && this.next() == 'l') {
this.next();
return null;
}
}
this.error('Syntax error');
};
v2.value = function () {
this.white();
switch (this.ch) {
case '{':
return this.obj();
case '[':
return this.arr();
case '"':
return this.str();
case '-':
return this.num();
}
return (this.ch >= '0' && this.ch <= '9') ? this.num() : this.word();
};
v2.parse = function (_text) {
this.text = _text;
this.at = 0;
this.ch = ' ';
return this.value();
};
v2.ch = '';
v2.at = 0;
ASSetPropFlags(com.disney.dlearning.serialization.JSON.prototype, null, 1);
}
#endinitclip
}
movieClip 427 __Packages.com.disney.dlearning.security.Md5 {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.disney) {
_global.com.disney = new Object();
}
if (!_global.com.disney.dlearning) {
_global.com.disney.dlearning = new Object();
}
if (!_global.com.disney.dlearning.security) {
_global.com.disney.dlearning.security = new Object();
}
if (!_global.com.disney.dlearning.security.Md5) {
var v1 = function (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (chrsz != undefined && chrsz == 8 || chrsz == 16) {
this.chrsz = chrsz;
}
};
com.disney.dlearning.security.Md5 = v1;
var v2 = v1.prototype;
v2.hash = function (s) {
return this.hex_md5(s);
};
v2.hex_md5 = function (s) {
return this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz));
};
v2.b64_md5 = function (s) {
return this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz));
};
v2.str_md5 = function (s) {
return this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz));
};
v2.hex_hmac_md5 = function (key, data) {
return this.binl2hex(this.core_hmac_md5(key, data));
};
v2.b64_hmac_md5 = function (key, data) {
return this.binl2b64(this.core_hmac_md5(key, data));
};
v2.str_hmac_md5 = function (key, data) {
return this.binl2str(this.core_hmac_md5(key, data));
};
v2.md5_cmn = function (q, a, b, x, s, t) {
return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b);
};
v2.md5_ff = function (a, b, c, d, x, s, t) {
return this.md5_cmn(b & c | ~b & d, a, b, x, s, t);
};
v2.md5_gg = function (a, b, c, d, x, s, t) {
return this.md5_cmn(b & d | c & ~d, a, b, x, s, t);
};
v2.md5_hh = function (a, b, c, d, x, s, t) {
return this.md5_cmn(b ^ c ^ d, a, b, x, s, t);
};
v2.md5_ii = function (a, b, c, d, x, s, t) {
return this.md5_cmn(c ^ (b | ~d), a, b, x, s, t);
};
v2.core_md5 = function (x, len) {
x[len >> 5] |= 128 << len % 32;
x[(len + 64 >>> 9 << 4) + 14] = len;
var v5 = 1732584193;
var v4 = -271733879;
var v3 = -1732584194;
var v2 = 271733878;
var v6 = 0;
while (v6 < x.length) {
var v11 = v5;
var v10 = v4;
var v9 = v3;
var v8 = v2;
v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 0], 7, -680876936);
v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 1], 12, -389564586);
v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 2], 17, 606105819);
v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 3], 22, -1044525330);
v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 4], 7, -176418897);
v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 5], 12, 1200080426);
v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 6], 17, -1473231341);
v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 7], 22, -45705983);
v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 8], 7, 1770035416);
v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 9], 12, -1958414417);
v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 10], 17, -42063);
v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 11], 22, -1990404162);
v5 = this.md5_ff(v5, v4, v3, v2, x[v6 + 12], 7, 1804603682);
v2 = this.md5_ff(v2, v5, v4, v3, x[v6 + 13], 12, -40341101);
v3 = this.md5_ff(v3, v2, v5, v4, x[v6 + 14], 17, -1502002290);
v4 = this.md5_ff(v4, v3, v2, v5, x[v6 + 15], 22, 1236535329);
v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 1], 5, -165796510);
v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 6], 9, -1069501632);
v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 11], 14, 643717713);
v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 0], 20, -373897302);
v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 5], 5, -701558691);
v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 10], 9, 38016083);
v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 15], 14, -660478335);
v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 4], 20, -405537848);
v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 9], 5, 568446438);
v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 14], 9, -1019803690);
v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 3], 14, -187363961);
v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 8], 20, 1163531501);
v5 = this.md5_gg(v5, v4, v3, v2, x[v6 + 13], 5, -1444681467);
v2 = this.md5_gg(v2, v5, v4, v3, x[v6 + 2], 9, -51403784);
v3 = this.md5_gg(v3, v2, v5, v4, x[v6 + 7], 14, 1735328473);
v4 = this.md5_gg(v4, v3, v2, v5, x[v6 + 12], 20, -1926607734);
v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 5], 4, -378558);
v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 8], 11, -2022574463);
v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 11], 16, 1839030562);
v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 14], 23, -35309556);
v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 1], 4, -1530992060);
v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 4], 11, 1272893353);
v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 7], 16, -155497632);
v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 10], 23, -1094730640);
v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 13], 4, 681279174);
v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 0], 11, -358537222);
v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 3], 16, -722521979);
v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 6], 23, 76029189);
v5 = this.md5_hh(v5, v4, v3, v2, x[v6 + 9], 4, -640364487);
v2 = this.md5_hh(v2, v5, v4, v3, x[v6 + 12], 11, -421815835);
v3 = this.md5_hh(v3, v2, v5, v4, x[v6 + 15], 16, 530742520);
v4 = this.md5_hh(v4, v3, v2, v5, x[v6 + 2], 23, -995338651);
v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 0], 6, -198630844);
v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 7], 10, 1126891415);
v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 14], 15, -1416354905);
v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 5], 21, -57434055);
v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 12], 6, 1700485571);
v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 3], 10, -1894986606);
v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 10], 15, -1051523);
v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 1], 21, -2054922799);
v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 8], 6, 1873313359);
v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 15], 10, -30611744);
v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 6], 15, -1560198380);
v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 13], 21, 1309151649);
v5 = this.md5_ii(v5, v4, v3, v2, x[v6 + 4], 6, -145523070);
v2 = this.md5_ii(v2, v5, v4, v3, x[v6 + 11], 10, -1120210379);
v3 = this.md5_ii(v3, v2, v5, v4, x[v6 + 2], 15, 718787259);
v4 = this.md5_ii(v4, v3, v2, v5, x[v6 + 9], 21, -343485551);
v5 = this.safe_add(v5, v11);
v4 = this.safe_add(v4, v10);
v3 = this.safe_add(v3, v9);
v2 = this.safe_add(v2, v8);
v6 += 16;
}
var v13 = new Array(v5, v4, v3, v2);
return v13;
};
v2.core_hmac_md5 = function (key, data) {
var v3 = new Array(this.str2binl(key));
if (v3.length > 16) {
v3 = this.core_md5(v3, key.length * this.chrsz);
}
var v4 = new Array(16);
var v5 = new Array(16);
var v2 = 0;
while (v2 < 16) {
v4[v2] = v3[v2] ^ 909522486;
v5[v2] = v3[v2] ^ 1549556828;
++v2;
}
var v6 = new Array(this.core_md5(v4.concat(this.str2binl(data)), 512 + data.length * this.chrsz));
return this.core_md5(v5.concat(v6), 640);
};
v2.safe_add = function (x, y) {
var v1 = new Number((x & 65535) + (y & 65535));
var v2 = new Number((x >> 16) + (y >> 16) + (v1 >> 16));
return v2 << 16 | v1 & 65535;
};
v2.bit_rol = function (num, cnt) {
return num << cnt | num >>> 32 - cnt;
};
v2.str2binl = function (str) {
var v4 = new Array();
var v5 = (1 << this.chrsz) - 1;
var v2 = 0;
while (v2 < str.length * this.chrsz) {
v4[v2 >> 5] |= (str.charCodeAt(v2 / this.chrsz) & v5) << v2 % 32;
v2 += this.chrsz;
}
return v4;
};
v2.binl2str = function (bin) {
var v4 = new String('');
var v5 = (1 << this.chrsz) - 1;
var v2 = 0;
while (v2 < bin.length * 32) {
v4 += String.fromCharCode(bin[v2 >> 5] >>> v2 % 32 & v5);
v2 += this.chrsz;
}
return v4;
};
v2.binl2hex = function (binarray) {
var v3 = '0123456789abcdef';
var v4 = new String('');
var v1 = 0;
while (v1 < binarray.length * 4) {
v4 += v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 + 4 & 15) + v3.charAt(binarray[v1 >> 2] >> (v1 % 4) * 8 & 15);
++v1;
}
return v4;
};
v2.binl2b64 = function (binarray) {
var v7 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var v5 = new String('');
var v3 = 0;
while (v3 < binarray.length * 4) {
var v6 = (binarray[v3 >> 2] >> 8 * (v3 % 4) & 255) << 16 | (binarray[v3 + 1 >> 2] >> 8 * ((v3 + 1) % 4) & 255) << 8 | binarray[v3 + 2 >> 2] >> 8 * ((v3 + 2) % 4) & 255;
var v2 = 0;
while (v2 < 4) {
if (v3 * 8 + v2 * 6 > binarray.length * 32) {
v5 += this.b64pad;
} else {
v5 += v7.charAt(v6 >> 6 * (3 - v2) & 63);
}
++v2;
}
v3 += 3;
}
return v5;
};
v2.b64pad = new String('');
v2.chrsz = new Number(8);
ASSetPropFlags(com.disney.dlearning.security.Md5.prototype, null, 1);
}
#endinitclip
}
movieClip 428 __Packages.com.clubpenguin.util.SoundControl {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.SoundControl) {
var v1 = function (movieClip, volumeLevel) {
com.clubpenguin.util.SoundControl.debugTrace('new SoundControl object in movieclip ' + movieClip);
this.sounds = new Object();
this.soundData = movieClip.createEmptyMovieClip('soundData', movieClip.getNextHighestDepth());
this.overallVolume = (volumeLevel == undefined) ? 100 : volumeLevel;
com.clubpenguin.util.SoundControl.debugTrace('soundData added to depth: ' + this.soundData.getDepth() + ' - overall volume is ' + this.overallVolume);
};
com.clubpenguin.util.SoundControl = v1;
var v2 = v1.prototype;
v2.handleSequenceEnd = function ($sequenceName) {
com.clubpenguin.util.SoundControl.debugTrace('sequence ' + $sequenceName + ' has ended - callback function called!');
var v1 = new Object();
v1.target = null;
v1.type = com.clubpenguin.util.SoundControl.EVENT_SEQUENCE_ENDS;
v1.sequenceName = $sequenceName;
com.clubpenguin.util.SoundControl.eventSource.dispatchEvent(v1);
};
v2.handleDelayedLoad = function ($sequenceNumber) {
com.clubpenguin.util.SoundControl.debugTrace('loading phase ' + $sequenceNumber + ' has ended - callback function called!');
var v1 = new Object();
v1.target = null;
v1.type = com.clubpenguin.util.SoundControl.EVENT_DELAYED_LOAD;
v1.sequenceNumber = $sequenceNumber;
com.clubpenguin.util.SoundControl.eventSource.dispatchEvent(v1);
};
v2.handlePlayStarted = function ($linkageName) {
com.clubpenguin.util.SoundControl.debugTrace('play sound ' + $linkageName + ' has attempted to start - callback function called!');
var v1 = new Object();
v1.target = null;
v1.type = com.clubpenguin.util.SoundControl.EVENT_PLAY_SOUND_STARTED;
v1.soundName = $linkageName;
com.clubpenguin.util.SoundControl.eventSource.dispatchEvent(v1);
};
v1.addEventListener = function ($event, $listener) {
com.clubpenguin.util.SoundControl.debugTrace('addEventListener for event ' + $event);
if (com.clubpenguin.util.SoundControl.eventSource == undefined) {
com.clubpenguin.util.SoundControl.debugTrace('addEventListener called on an undefined eventSource - initialise the source!');
com.clubpenguin.util.SoundControl.eventSource = new Object();
mx.events.EventDispatcher.initialize(com.clubpenguin.util.SoundControl.eventSource);
}
com.clubpenguin.util.SoundControl.eventSource.addEventListener($event, $listener);
};
v1.removeEventListener = function ($event, $listener) {
com.clubpenguin.util.SoundControl.debugTrace('removeEventListener for event ' + $event);
com.clubpenguin.util.SoundControl.eventSource.removeEventListener($event, $listener);
};
v2.playSound = function (linkageName, soundInstance, soundVolume, offset, loops, allowMultiple, startNow, isSequence, sequenceArray, sequenceIndex, sequenceName) {
this.handlePlayStarted(linkageName);
if (startNow == undefined) {
startNow = true;
}
if (soundVolume == undefined) {
soundVolume = 100;
}
if (offset == undefined) {
offset = 0;
}
if (loops == undefined) {
loops = 1;
}
com.clubpenguin.util.SoundControl.debugTrace('play ' + soundInstance + ' from library: ' + linkageName + ' (vol: ' + soundVolume + ' offset:' + offset + ', loop:' + loops + ')');
if ((allowMultiple == undefined || !allowMultiple) && this.soundData[soundInstance] != undefined) {
com.clubpenguin.util.SoundControl.debugTrace('a sound with this instance name already exists!', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
return undefined;
}
this.soundData.createEmptyMovieClip(soundInstance, this.soundData.getNextHighestDepth());
this.sounds[soundInstance] = new Sound(this.soundData[soundInstance]);
this.sounds[soundInstance].attachSound(linkageName);
if (startNow) {
this.sounds[soundInstance].start(offset, loops);
}
this.soundData[soundInstance].soundInstance = soundInstance;
this.soundData[soundInstance].parentClip = this;
this.sounds[soundInstance].soundInstance = soundInstance;
this.sounds[soundInstance].parentClip = this;
if (isSequence) {
this.sounds[soundInstance].sequenceVolume = soundVolume;
this.sounds[soundInstance].sequenceName = sequenceName;
if (sequenceIndex == 0) {
this.sounds[soundInstance].currentLoopIndex = 0;
this.sounds[soundInstance].sequenceArray = sequenceArray;
this.sounds[soundInstance].lastPosition = 0;
this.soundData[soundInstance].onEnterFrame = function () {
var v3 = this.parentClip.sounds[this.soundInstance];
if (v3.position < v3.lastPosition) {
this.parentClip.debugTrace('current track is ' + v3.currentLoopIndex + '. loop to next track in sequence');
this.parentClip.setSoundVolume(this.parentClip.sequenceLinkage[v3.currentLoopIndex].name, 0);
this.parentClip.setSoundVolume(this.parentClip.sequenceLinkage[v3.currentLoopIndex + 1].name, v3.sequenceVolume);
++v3.currentLoopIndex;
if (v3.currentLoopIndex >= this.parentClip.sequenceLinkage.length) {
this.parentClip.debugTrace('this was the last track in the sequence!');
v3.currentLoopIndex = 0;
this.parentClip.handleSequenceEnd(v3.sequenceName);
}
if (v3.currentLoopIndex < this.parentClip.uniqueSoundCount / com.clubpenguin.util.SoundControl.CONCURRENT_SOUND_START) {
this.parentClip.handleDelayedLoad(v3.currentLoopIndex);
var v4 = v3.currentLoopIndex * com.clubpenguin.util.SoundControl.CONCURRENT_SOUND_START;
var v2 = 0;
while (v2 < com.clubpenguin.util.SoundControl.CONCURRENT_SOUND_START) {
this.parentClip.sounds[v3.sequenceName + '_' + (v4 + v2)].start(0, 1000);
this.parentClip.debugTrace('started sound \'' + v3.sequenceName + '_' + (v4 + v2) + '\'');
++v2;
}
}
}
v3.lastPosition = v3.position;
};
}
} else {
this.sounds[soundInstance].setVolume(soundVolume * (this.overallVolume / 100));
this.sounds[soundInstance].soundVolume = soundVolume;
this.sounds[soundInstance].onSoundComplete = function () {
this.parentClip.debugTrace('sound ' + this.soundInstance + ' has finished');
this.parentClip.stopSound(this.soundInstance);
};
}
};
v2.stopSound = function (instanceName) {
com.clubpenguin.util.SoundControl.debugTrace('stop sound \'' + instanceName + '\'');
this.sounds[instanceName].stop();
this.soundData[instanceName].removeMovieClip();
delete this.sounds[instanceName];
};
v2.playSequence = function (sequenceArray, sequenceName, sequenceVolume, allowMultiple) {
com.clubpenguin.util.SoundControl.debugTrace('play sequence \'' + sequenceName + '\' using array:\n' + sequenceArray);
this.handlePlayStarted(sequenceName);
if (sequenceVolume == undefined) {
sequenceVolume = 100;
}
this.sequenceLinkage = new Array();
this.uniqueSoundCount = 0;
var v4 = 0;
while (v4 < sequenceArray.length) {
var v3;
for (var v7 in this.sequenceLinkage) {
if (sequenceArray[v4] == this.sequenceLinkage[v7].linkage) {
v3 = this.sequenceLinkage[v7].name;
break;
}
}
if (v3 == undefined) {
this.sequenceLinkage[v4] = new Object();
this.sequenceLinkage[v4].linkage = sequenceArray[v4];
this.sequenceLinkage[v4].name = sequenceName + '_' + this.uniqueSoundCount;
++this.uniqueSoundCount;
this.playSound(this.sequenceLinkage[v4].linkage, this.sequenceLinkage[v4].name, sequenceVolume, 0, 1000, allowMultiple, false, true, sequenceArray, v4, sequenceName);
this.setSoundVolume(this.sequenceLinkage[v4].name, (v4 == 0) ? sequenceVolume : 0);
} else {
this.sequenceLinkage[v4] = new Object();
this.sequenceLinkage[v4].linkage = sequenceArray[v4];
this.sequenceLinkage[v4].name = v3;
}
++v4;
}
v4 = 0;
while (v4 < com.clubpenguin.util.SoundControl.CONCURRENT_SOUND_START) {
this.sounds[sequenceName + '_' + v4].start(0, 1000);
com.clubpenguin.util.SoundControl.debugTrace('started sound \'' + sequenceName + '_' + v4 + '\'');
++v4;
}
};
v2.stopSequence = function (sequenceName) {
com.clubpenguin.util.SoundControl.debugTrace('stop sequence ' + sequenceName);
var v3 = sequenceName + '_' + 0;
var v4 = this.sounds[v3].sequenceArray;
var v2 = 0;
while (v2 < v4.length) {
v3 = sequenceName + '_' + v2;
this.stopSound(v3);
++v2;
}
};
v2.setOverallVolume = function (newVolume) {
com.clubpenguin.util.SoundControl.debugTrace('set overall volume to ' + newVolume);
var v2 = newVolume / 100;
this.overallVolume = newVolume;
for (var v3 in this.sounds) {
this.sounds[v3].setVolume(this.sounds[v3].soundVolume * v2);
}
};
v2.setSoundVolume = function (soundInstance, newVolume) {
com.clubpenguin.util.SoundControl.debugTrace('set sound \'' + soundInstance + '\' volume to ' + newVolume + ' (adjusted: ' + newVolume * this.overallVolume / 100 + ')');
this.sounds[soundInstance].setVolume(newVolume * this.overallVolume / 100);
this.sounds[soundInstance].volume = newVolume;
this.sounds[soundInstance].soundVolume = newVolume;
};
v2.setSequenceVolume = function (instance, newVolume) {
com.clubpenguin.util.SoundControl.debugTrace('set sequence \'' + instance + '\' volume to ' + newVolume);
var v5 = this.sounds[instance + '_0'].sequenceArray;
var v6 = this.overallVolume / 100;
var v2 = 0;
while (v2 < v5.length) {
if (this.sounds[instance + '_' + v2].soundVolume != 0) {
this.sounds[instance + '_' + v2].setVolume(newVolume * v6);
this.sounds[instance + '_' + v2].soundVolume = newVolume;
}
this.sounds[instance + '_' + v2].volume = newVolume;
++v2;
}
};
v2.getDuration = function (soundInstance) {
if (this.sounds[soundInstance] == undefined) {
com.clubpenguin.util.SoundControl.debugTrace('sound ' + soundInstance + ' does not exist getting duration', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
}
return this.sounds[soundInstance].duration;
};
v2.getPosition = function (soundInstance) {
if (this.sounds[soundInstance] == undefined) {
com.clubpenguin.util.SoundControl.debugTrace('sound ' + soundInstance + ' does not exist getting position', com.clubpenguin.util.Reporting.DEBUGLEVEL_WARNING);
}
return this.sounds[soundInstance].position;
};
v2.getOverallVolume = function () {
return this.overallVolume;
};
v1.debugTrace = function (message, priority) {
if (priority == undefined) {
priority = com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE;
}
if (com.clubpenguin.util.Reporting.DEBUG_SOUNDS) {
com.clubpenguin.util.Reporting.debugTrace('(SoundControl) ' + message, priority);
}
};
v1.CONCURRENT_SOUND_START = 5;
v1.EVENT_SEQUENCE_ENDS = 'onSequenceEnd';
v1.EVENT_DELAYED_LOAD = 'onDelayedLoad';
v1.EVENT_PLAY_SOUND_STARTED = 'onPlaySoundStarted';
v2.uniqueSoundCount = 0;
ASSetPropFlags(com.clubpenguin.util.SoundControl.prototype, null, 1);
}
#endinitclip
}
movieClip 429 __Packages.com.clubpenguin.util.SoundControlBeatbox {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.util) {
_global.com.clubpenguin.util = new Object();
}
if (!_global.com.clubpenguin.util.SoundControlBeatbox) {
var v1 = function (movieClip, volumeLevel) {
super(movieClip, this.overallVolume);
this.beatboxReady = new Array();
};
com.clubpenguin.util.SoundControlBeatbox = v1;
com.clubpenguin.util.SoundControlBeatbox extends com.clubpenguin.util.SoundControl;
var v2 = v1.prototype;
v2.playSound = function (linkageName, soundInstance, soundVolume, offset, loops, allowMultiple, startNow, isSequence, sequenceArray, sequenceIndex, sequenceName, isBeatbox) {
super.playSound(linkageName, soundInstance, soundVolume, offset, loops, allowMultiple, startNow, isSequence, sequenceArray, sequenceIndex, sequenceName);
if (isBeatbox == undefined) {
isBeatbox = false;
}
if (isBeatbox && !isSequence) {
this.sounds[soundInstance].soundVolume = 0;
this.sounds[soundInstance].beatboxVolume = soundVolume;
this.sounds[soundInstance].beatboxName = sequenceName;
if (sequenceIndex == 0) {
this.sounds[soundInstance].currentLoopIndex = -1;
this.sounds[soundInstance].beatboxArray = sequenceArray;
this.sounds[soundInstance].lastPosition = 0;
}
}
};
v2.performDelayedLoad = function ($soundInstance) {
this.debugTrace('play queued beatbox tracks! time: ' + getTimer());
++this.sounds[$soundInstance].currentLoopIndex;
if (this.sounds[$soundInstance].currentLoopIndex < this.sounds[$soundInstance].beatboxArray.length / this.CONCURRENT_SOUND_START) {
this.handleDelayedLoad(this.sounds[$soundInstance].currentLoopIndex);
var v4 = this.sounds[$soundInstance].currentLoopIndex * this.CONCURRENT_SOUND_START;
var v2 = 0;
while (v2 < this.CONCURRENT_SOUND_START) {
this.beatboxReady[this.sounds[$soundInstance].beatboxName][v4 + v2] = true;
this.debugTrace('sound \'' + this.sounds[$soundInstance].beatboxName + '_' + (v4 + v2) + '\' is ready');
++v2;
}
} else {
clearInterval(this.soundLoadDelay);
}
};
v2.loadBeatbox = function (beatboxArray, beatboxName, beatboxVolume, allowMultiple) {
this.debugTrace('load beatbox \'' + beatboxName + '\' using array:\n' + beatboxArray);
if (beatboxVolume == undefined) {
beatboxVolume = 100;
}
this.beatboxReady[beatboxName] = new Array();
var v3 = 0;
while (v3 < beatboxArray.length) {
this.playSound(beatboxArray[v3], beatboxName + '_' + v3, beatboxVolume, 0, 100000, allowMultiple, false, false, beatboxArray, v3, beatboxName, true);
this.setSoundVolume(beatboxName + '_' + v3, 0);
this.beatboxReady[beatboxName][v3] = false;
++v3;
}
v3 = 0;
while (v3 < beatboxArray.length) {
this.sounds[beatboxName + '_' + v3].start(0, 10000);
++v3;
}
clearInterval(this.soundLoadDelay);
this.soundLoadDelay = setInterval(this, 'performDelayedLoad', 100, beatboxName + '_0');
};
v2.stopBeatbox = function (beatboxName) {
this.debugTrace('stop beatbox sequence ' + beatboxName);
var v3 = beatboxName + '_' + 0;
var v4 = this.sounds[v3].beatboxArray;
var v2 = 0;
while (v2 < v4.length) {
v3 = beatboxName + '_' + v2;
this.stopSound(v3);
++v2;
}
};
v2.setBeatboxVolume = function (instance, newVolume) {
this.debugTrace('set beatbox \'' + instance + '\' volume to ' + newVolume);
var v5 = this.sounds[instance + '_0'].beatboxArray;
var v6 = this.overallVolume / 100;
var v2 = 0;
while (v2 < v5.length) {
if (this.sounds[instance + '_' + v2].soundVolume != 0) {
this.sounds[instance + '_' + v2].setVolume(newVolume * v6);
this.sounds[instance + '_' + v2].soundVolume = newVolume;
}
this.sounds[instance + '_' + v2].volume = newVolume;
this.sounds[instance + '_' + v2].beatboxVolume = newVolume;
++v2;
}
};
v2.muteBeatboxSound = function (beatboxName, soundID) {
this.setSoundVolume(beatboxName + '_' + soundID, 0);
};
v2.unmuteBeatboxSound = function (beatboxName, soundID) {
if (this.beatboxReady[beatboxName][soundID] == true) {
var v2 = beatboxName + '_' + soundID;
this.setSoundVolume(v2, this.sounds[v2].beatboxVolume);
}
return this.beatboxReady[beatboxName][soundID];
};
v2.isBeatboxMuted = function (beatboxName, soundID) {
return this.sounds[beatboxName + '_' + soundID].soundVolume == 0;
};
v2.debugTrace = function (message, priority) {
if (priority == undefined) {
priority = com.clubpenguin.util.Reporting.DEBUGLEVEL_MESSAGE;
}
if (com.clubpenguin.util.Reporting.DEBUG_SOUNDS) {
com.clubpenguin.util.Reporting.debugTrace('(SoundControlBeatbox) ' + message, priority);
}
};
v2.CONCURRENT_SOUND_START = 5;
ASSetPropFlags(com.clubpenguin.util.SoundControlBeatbox.prototype, null, 1);
}
#endinitclip
}
movieClip 430 __Packages.com.clubpenguin.games.beatbox.event.DialogueEvent {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.event) {
_global.com.clubpenguin.games.beatbox.event = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.event.DialogueEvent) {
var v1 = function (_source, _type, _data) {
super(_source, _type, _data);
};
com.clubpenguin.games.beatbox.event.DialogueEvent = v1;
com.clubpenguin.games.beatbox.event.DialogueEvent extends com.clubpenguin.lib.event.Event;
var v2 = v1.prototype;
v1.ACCEPT_EVENT = 'ACCEPT_EVENT';
v1.CLOSE_EVENT = 'CLOSE_EVENT';
v1.CONFIRM_SAVE_EVENT = 'CONFIRM_SAVE_EVENT';
v1.SONG_PLAYBACK_EVENT = 'SONG_PLAYBACK_EVENT';
v1.SEND_SAVE_DATA_EVENT = 'SEND_SAVE_DATA_EVENT';
v1.SHOW_NEXT_DIALOGUE = 'SHOW_NEXT_DIALOGUE';
v1.SONG_DELETE = 'SONG_DELETE';
v1.SHOW_CHOOSE_SONG = 'SHOW_CHOOSE_SONG';
v1.DELETE_CONFIRM = 'DELETE_CONFIRM';
v1.PLAYBACK_NEW_SONG = 'PLAYBACK_NEW_SONG';
v1.GO_TO_IGLOO = 'GO_TO_IGLOO';
v1.BUILD_SONG_DATA = 'BUILD_SONG_DATA';
v1.STOP_SONG = 'STOP_SONG';
v1.PLAYBACK_CONFIRM = 'PLAYBACK_CONFIRM';
v1.DELETE_RELEASED = 'DELETE_RELEASED';
v1.DELETE_RESULT = 'DELETE_RESULT';
ASSetPropFlags(com.clubpenguin.games.beatbox.event.DialogueEvent.prototype, null, 1);
}
#endinitclip
}
movieClip 431 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {
this.retrieveData();
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_DELETE, this.handleDeleteButtonReleased, this);
this.btnLeft.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleLeftButtonRelease);
this.btnRight.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleRightButtonRelease);
this.songList.save1.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save1');
this.songList.save2.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save2');
this.songList.save3.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save3');
this.songList.save4.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save4');
this.songList.save5.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save5');
this.songList.save6.deleteSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteSelected, 'save6');
this.choose_mix_to_delete.text = com.clubpenguin.util.LocaleText.getText('choose_mix_to_delete');
};
v2.retrieveData = function () {
this.__menuHost.getListInfo();
};
v2.populateListItems = function (songs, _listItems) {
this.__listItemHolder = new Array();
this.songList.holder.init(0, -2500, -80);
this.__listItemPosition = 0;
this.__listItems = _listItems;
var v5;
while (this.__listItemHolder.length > 0) {
v5 = com.clubpenguin.games.beatbox.menus.MenuListItem(this.__listItemHolder.shift());
v5.removeItem();
}
var v3 = 0;
while (v3 < _listItems.length) {
var v2;
v2 = new com.clubpenguin.games.beatbox.menus.MenuListItem();
v2.init(v3);
v2.attach(this.songList.holder.savedMusicHolder);
v2.setPosition(this.__listItemPosition);
v2.populateSongInfo(_listItems[v3].__trackName);
this.__listItemPosition += this.SPACER;
this.__listItemHolder.push(v2);
++v3;
}
};
v2.handleDeleteSelected = function (save) {
this.songList[save].gotoAndStop('confirmDelete');
};
v2.handleDeleteButtonReleased = function (_event) {
com.clubpenguin.lib.event.EventManager.removeEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_DELETE, this.handleDeleteButtonReleased, this);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_CONFIRM, {'id': (_event.__get__data()).id}));
};
v2.__get__listHolder = function () {
return this.__listItemHolder;
};
v2.handleRightButtonRelease = function () {
this.songList.holder.moveRight();
};
v2.handleLeftButtonRelease = function () {
this.songList.holder.moveLeft();
};
v2.handleSongPlaybackComplete = function () {
var v2 = 0;
while (v2 < this.__listItemHolder.length) {
if (this.__listItemHolder[v2].__isPlaying == true) {
this.__listItemHolder[v2].showTrackInfo();
this.__listItemHolder[v2].hideTrackPlaying();
}
++v2;
}
};
v2.__get__contentTest = function () {
return this.btnClose != null;
};
v2.SPACER = 115;
v2.PLAY_BUTTON_RELEASED = 'PLAY_BUTTON_RELEASE';
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
v2.addProperty('listHolder', v2.__get__listHolder, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueDeleteMix.prototype, null, 1);
}
#endinitclip
}
movieClip 432 __Packages.com.clubpenguin.games.beatbox.menus.MenuListItem {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.MenuListItem) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.MenuListItem = v1;
com.clubpenguin.games.beatbox.menus.MenuListItem extends MovieClip;
var v2 = v1.prototype;
_global.com.clubpenguin.games.beatbox.menus.MenuListItem implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.getUniqueName = function () {
return this._name;
};
v2.init = function (_id) {
this.__id = _id;
this.__isPlaying = false;
this.__isAnotherSongPlaying = false;
};
v2.attach = function (_container) {
this.__mc = _container.attachMovie('menuListItem', 'menuListItem' + this.__id, _container.getNextHighestDepth());
this.__mc.trackEmpty._visible = false;
this.__mc.trackPlaying._visible = false;
this.__mc.trackDelete._visible = false;
this.__mc.trackInfo.btnPlay.onRelease = com.clubpenguin.util.Delegate.create(this, this.handlePlayButtonRelease);
this.__mc.trackInfo.btnDelete.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteButtonRelease);
this.__mc.trackPlaying.stopBtn.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleStopRelease);
this.__mc.trackDelete.btnDeleteYes.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleConfirmDelete);
this.__mc.trackDelete.btnDeleteNo.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCancelDelete);
};
v2.setPosition = function (_index) {
this.__mc._x = _index;
};
v2.populateSongInfo = function (songName) {
this.__trackName = songName;
if (this.__trackName == '-1' || this.__trackName == null || this.__trackName == '') {
this.hideTrackInfo();
this.showTrackEmpty();
return undefined;
}
this.__mc.trackInfo.songName.text = this.__trackName;
this.__mc.trackPlaying.songName.text = this.__trackName;
this.__mc.trackDelete.songName.text = this.__trackName + '?';
};
v2.handlePlayButtonRelease = function () {
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_CONFIRM, this.handlePlaybackResponse, this);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_PLAYBACK_EVENT, {'id': Number(this.__id)}));
};
v2.handleDeleteButtonRelease = function () {
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RESULT, this.handleDeleteResponse, this);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RELEASED));
};
v2.handleDeleteResponse = function (_event) {
com.clubpenguin.lib.event.EventManager.removeEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RESULT, this.handleDeleteResponse, this);
if ((_event.__get__data())._result == true) {
com.greensock.TweenLite.to(this.__mc.trackInfo, 1, {'_alpha': 0, 'onComplete': com.clubpenguin.util.Delegate.create(this, this.handleDeleteFadeout)});
} else {
return undefined;
}
};
v2.handleCancelDelete = function () {
this.hideTrackDelete();
this.showTrackInfo();
};
v2.handlePlaybackResponse = function (_event) {
com.clubpenguin.lib.event.EventManager.removeEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_CONFIRM, this.handlePlaybackResponse, this);
if ((_event.__get__data())._result == true) {
this.showTrackPlaying();
this.hideTrackInfo();
} else {
return undefined;
}
};
v2.handleConfirmDelete = function () {
this.showTrackEmpty();
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_DELETE, {'id': Number(this.__id)}));
};
v2.handleDeleteFadeout = function () {
this.showTrackDelete();
};
v2.removeItem = function () {
this.__mc.removeMovieClip();
};
v2.hideTrackInfo = function () {
this.__mc.trackInfo._visible = false;
};
v2.showTrackInfo = function () {
this.__mc.trackInfo._alpha = 100;
this.__mc.trackInfo._visible = true;
};
v2.hideTrackEmpty = function () {
this.__mc.trackEmpty._visible = false;
};
v2.showTrackEmpty = function () {
this.hideTrackDelete();
this.hideTrackInfo();
this.hideTrackPlaying();
this.__mc.trackEmpty._visible = true;
this.__mc.trackEmpty.empty_text.text = com.clubpenguin.util.LocaleText.getText('empty_text');
};
v2.hideTrackPlaying = function () {
this.__isPlaying = false;
this.__mc.trackPlaying._visible = false;
};
v2.showTrackPlaying = function () {
this.__isPlaying = true;
this.__mc.trackPlaying._visible = true;
};
v2.hideTrackDelete = function () {
this.__mc.trackDelete._visible = false;
};
v2.handleStopRelease = function () {
this.hideTrackPlaying();
this.showTrackInfo();
this.__isPlaying = false;
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.STOP_SONG));
};
v2.showTrackDelete = function () {
this.__mc.trackDelete._visible = true;
this.__mc.trackDelete.confirm_delete.text = com.clubpenguin.util.LocaleText.getText('confirm_delete');
this.__mc.trackDelete.delete_yes.text = com.clubpenguin.util.LocaleText.getText('delete_yes');
this.__mc.trackDelete.delete_no.text = com.clubpenguin.util.LocaleText.getText('delete_no');
};
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.MenuListItem.prototype, null, 1);
}
#endinitclip
}
movieClip 433 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {
this.btnDeleteMix.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleDeleteMix);
this.btnCancel.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCancelRelease);
this.saved_slots_full.text = com.clubpenguin.util.LocaleText.getText('saved_slots_full');
this.delete_mix.text = com.clubpenguin.util.LocaleText.getText('delete_mix');
this.cancel.text = com.clubpenguin.util.LocaleText.getText('cancel');
};
v2.__get__contentTest = function () {
return this.btnCancel != null;
};
v2.handleDeleteMix = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_NEXT_DIALOGUE, {'_nextDialogue': com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_DELETE_MIX}));
};
v2.handleCancelRelease = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.CLOSE_EVENT));
};
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixesFull.prototype, null, 1);
}
#endinitclip
}
movieClip 434 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {
this.btnOkay.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleOkayRelease);
this.btnGoToIgloo.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleGoToIgloo);
this.setSongName();
this.now_play.text = com.clubpenguin.util.LocaleText.getText('now_play');
this.in_igloo.text = com.clubpenguin.util.LocaleText.getText('in_igloo');
this.create_new_mix.text = com.clubpenguin.util.LocaleText.getText('create_new_mix');
this.go_to_igloo.text = com.clubpenguin.util.LocaleText.getText('go_to_igloo');
};
v2.setSongName = function () {
this.songName.text = this.__menuHost.getCurrentSongName();
};
v2.handleOkayRelease = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_CHOOSE_SONG));
};
v2.handleGoToIgloo = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.GO_TO_IGLOO));
};
v2.__get__contentTest = function () {
return this.btnOkay != null;
};
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueMixSaved.prototype, null, 1);
}
#endinitclip
}
movieClip 435 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {
this.djclient = new com.clubpenguin.games.beatbox.util.DJ3KNetClient();
this.djclient.init();
this.btnSaveMix.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleSaveRelease);
this.btnCancel.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCancelRelease);
this.name_mix.text = com.clubpenguin.util.LocaleText.getText('name_mix');
this.save.text = com.clubpenguin.util.LocaleText.getText('save');
this.cancel.text = com.clubpenguin.util.LocaleText.getText('cancel');
};
v2.__get__contentTest = function () {
return this.btnSaveMix != null;
};
v2.hide = function () {
this.djclient.destroy();
super.hide();
};
v2.handleSaveRelease = function () {
if (this.nameSong.name.text == '') {
return undefined;
}
this.__songName = this.nameSong.name.text;
this.djclient.checkTrackName(this.__songName, com.clubpenguin.util.Delegate.create(this, this.onCheckNameResponse));
};
v2.onCheckNameResponse = function (_response) {
var v3 = _global.getCurrentInterface();
var v5 = _response[1];
if (_response == undefined) {
var v6 = v3.getLocalizedString('w.app.error.message.nameunavailable');
v3.showPrompt('warn', v6, undefined, com.clubpenguin.util.Delegate.create(this, this.promptClosed));
} else {
if (v5 == this.__songName) {
_global.dlsMixMaster.saveAMix(this.__songName);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SEND_SAVE_DATA_EVENT, {'_songName': this.__songName}));
}
}
};
v2.promptClosed = function () {
var v2 = _global.getCurrentInterface();
v2.stopQuickKeys();
};
v2.songIsValid = function () {};
v2.handleCancelRelease = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.CLOSE_EVENT));
};
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueNameMix.prototype, null, 1);
}
#endinitclip
}
movieClip 436 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueOopsMessage.prototype, null, 1);
}
#endinitclip
}
movieClip 437 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {};
v2.__get__contentTest = function () {
return true;
};
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueSelectMix.prototype, null, 1);
}
#endinitclip
}
movieClip 438 __Packages.com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue) {
_global.com.clubpenguin.games.beatbox.menus.dialogue = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave = v1;
com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave extends com.clubpenguin.games.beatbox.menus.dialogue.Dialogue;
var v2 = v1.prototype;
v2.init = function () {
this.__shell = _global.getCurrentShell();
this.__interface = _global.getCurrentInterface();
this.__songIsPlaying = false;
this.btnPlayback.playSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handlePlayback);
this.btnSaveMix.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleSaveRelease);
this.btnCancel.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleCancelRelease);
this.your_new_mix.text = com.clubpenguin.util.LocaleText.getText('your_new_mix');
this.save.text = com.clubpenguin.util.LocaleText.getText('save');
this.cancel.text = com.clubpenguin.util.LocaleText.getText('cancel');
this.attachPlaybackButton();
};
v2.attachPlaybackButton = function () {};
v2.__get__contentTest = function () {
return this.btnSaveMix != null;
};
v2.handleSaveRelease = function () {
if (!this.__shell.isMyPlayerMember()) {
this.__interface.showContent('oops_game_dj3k_save');
return undefined;
} else {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.SHOW_NEXT_DIALOGUE, {'_nextDialogue': com.clubpenguin.games.beatbox.menus.MenuSystem.DIALOGUE_NAME_MIX}));
}
};
v2.handleCancelRelease = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.CLOSE_EVENT));
};
v2.handlePlayback = function () {
this.btnPlayback.gotoAndStop('playing');
this.btnPlayback.stopSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handlePlaybackStop);
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_NEW_SONG));
};
v2.handleSongPlaybackComplete = function () {
this.btnPlayback.gotoAndStop('stopped');
this.btnPlayback.playSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handlePlayback);
};
v2.handlePlaybackStop = function () {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.STOP_SONG));
this.btnPlayback.gotoAndStop('stopped');
this.btnPlayback.playSong.onRelease = com.clubpenguin.util.Delegate.create(this, this.handlePlayback);
};
v2.handleMessage = function (_message) {
if (_message == 'songComplete') {
this.btnPlayback.gotoAndStop('stopped');
this.attachPlaybackButton();
this.__songIsPlaying = false;
}
};
v2.addProperty('contentTest', v2.__get__contentTest, function () {});
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.dialogue.DialogueSave.prototype, null, 1);
}
#endinitclip
}
movieClip 439 __Packages.com.clubpenguin.games.beatbox.menus.MenuListRenderer {
#initclip
if (!_global.com) {
_global.com = new Object();
}
if (!_global.com.clubpenguin) {
_global.com.clubpenguin = new Object();
}
if (!_global.com.clubpenguin.games) {
_global.com.clubpenguin.games = new Object();
}
if (!_global.com.clubpenguin.games.beatbox) {
_global.com.clubpenguin.games.beatbox = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus) {
_global.com.clubpenguin.games.beatbox.menus = new Object();
}
if (!_global.com.clubpenguin.games.beatbox.menus.MenuListRenderer) {
var v1 = function () {
super();
};
com.clubpenguin.games.beatbox.menus.MenuListRenderer = v1;
com.clubpenguin.games.beatbox.menus.MenuListRenderer extends MovieClip;
var v2 = v1.prototype;
_global.com.clubpenguin.games.beatbox.menus.MenuListRenderer implements _global.com.clubpenguin.lib.event.IEventDispatcher;
v2.init = function () {
this.__currentSongPlaying = -1;
this.__listItemPosition = 0;
this.__menuListItemArray = new Array();
this.__emptyListItemHolder = new Array();
this.savedMusicHolder = this.songListMC.savedMusicHolder;
this.savedMusicHolder.init(45, -315, -63);
this.songListMC.rightButton.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleRightButtonRelease);
this.songListMC.leftButton.onRelease = com.clubpenguin.util.Delegate.create(this, this.handleLeftButtonRelease);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_PLAYBACK_EVENT, this.handlePlayButtonReleased, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.STOP_SONG, this.handleStopSong, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.SONG_DELETE, this.handleDeleteConfirm, this);
com.clubpenguin.lib.event.EventManager.addEventListener(com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RELEASED, this.handleDeleteButtonReleased, this);
};
v2.populateList = function (_songs, _songNames, _songCount) {
this.__songs = _songs;
this.__songNames = _songNames;
this.__songCount = _songCount;
var v4;
while (this.__menuListItemArray.length > 0) {
v4 = com.clubpenguin.games.beatbox.menus.MenuListItem(this.__menuListItemArray.shift());
v4.removeItem();
}
while (this.__emptyListItemHolder.length > 0) {
v4 = com.clubpenguin.games.beatbox.menus.MenuListItem(this.__emptyListItemHolder.shift());
v4.removeItem();
}
this.__listItemPosition = 0;
var v2 = 0;
while (v2 < _songCount) {
var v3;
v3 = new com.clubpenguin.games.beatbox.menus.MenuListItem();
v3.init(v2);
if (_songNames[v2] == '-1' || _songNames[v2] == null || _songNames[v2] == '') {
this.__emptyListItemHolder.push(v3);
} else {
v3.attach(this.savedMusicHolder);
v3.setPosition(this.__listItemPosition);
v3.populateSongInfo(_songNames[v2]);
this.__listItemPosition += this.SPACER;
this.__menuListItemArray.push(v3);
}
++v2;
}
v2 = 0;
while (v2 < this.__emptyListItemHolder.length) {
this.__emptyListItemHolder[v2].attach(this.savedMusicHolder);
this.__emptyListItemHolder[v2].setPosition(this.__listItemPosition);
this.__emptyListItemHolder[v2].populateSongInfo('-1');
this.__listItemPosition += this.SPACER;
this.__menuListItemArray.push(this.__emptyListItemHolder[v2]);
++v2;
}
};
v2.updateSongInfo = function (_songs, _songNames) {
this.__songs = _songs;
this.__songNames = _songNames;
this.populateList(this.__songs, this.__songNames, this.__songCount);
};
v2.handlePlayButtonReleased = function (_event) {
if (this.__currentSongPlaying == -1) {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_CONFIRM, {'_result': true}));
this.__currentSongPlaying = (_event.__get__data()).id;
this._parent.playSongFromData((_event.__get__data()).id);
} else {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.PLAYBACK_CONFIRM, {'_result': false}));
}
};
v2.getListItems = function () {
return this.__menuListItemArray;
};
v2.songComplete = function () {
this.__menuListItemArray[this.__currentSongPlaying].showTrackInfo();
this.__menuListItemArray[this.__currentSongPlaying].hideTrackPlaying();
this.__currentSongPlaying = -1;
};
v2.handleDeleteConfirm = function (_event) {
this.__songs.splice((_event.__get__data()).id, 1);
this.__songNames[(_event.__get__data()).id] = '';
var v2 = (_event.__get__data()).id + 1;
this._parent.deleteSongByID(v2);
this.populateList(this.__songs, this.__songNames, this.__songCount);
};
v2.handleDeleteButtonReleased = function (_event) {
if (this.__currentSongPlaying == -1) {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RESULT, {'_result': true}));
} else {
com.clubpenguin.lib.event.EventManager.dispatchEvent(new com.clubpenguin.games.beatbox.event.DialogueEvent(this, com.clubpenguin.games.beatbox.event.DialogueEvent.DELETE_RESULT, {'_result': false}));
}
};
v2.handleStopSong = function () {
this._parent.stopCurrentSong();
this.__currentSongPlaying = -1;
};
v2.refreshMenu = function () {
this.populateList(this.__songs, this.__songNames, this.__songCount);
};
v2.handleRightButtonRelease = function () {
this.savedMusicHolder.moveRight();
};
v2.handleLeftButtonRelease = function () {
this.savedMusicHolder.moveLeft();
};
v2.getUniqueName = function () {
return this._name;
};
v2.SPACER = 115;
v2.PLAY_BUTTON_RELEASED = 'PLAY_BUTTON_RELEASE';
ASSetPropFlags(com.clubpenguin.games.beatbox.menus.MenuListRenderer.prototype, null, 1);
}
#endinitclip
}