Combined Code
frame 1 {
function fnVoid() {}
Mouse.hide();
myCursor.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
_global.sound = new udt.tools.SoundTool(this);
_global.bgsound = new udt.tools.SoundTool(this);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(new ContextMenuItem('This Flash does not support right click', fnVoid, false, true, true));
_root.menu = myMenu;
}
movieClip 34 {
}
movieClip 36 {
}
movieClip 37 {
}
movieClip 39 {
}
movieClip 41 {
}
movieClip 42 {
}
movieClip 46 {
}
movieClip 48 {
frame 640 {
_parent.gotoAndPlay(20);
}
}
movieClip 51 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 62 {
}
movieClip 64 {
}
movieClip 71 {
}
movieClip 72 {
}
movieClip 73 {
}
movieClip 76 {
}
// unknown tag 88 length 84
movieClip 84 {
}
movieClip 89 {
}
movieClip 94 {
}
movieClip 97 {
}
movieClip 102 {
}
movieClip 103 {
}
movieClip 108 {
frame 1 {
stop();
}
frame 1 {
go_btn.onPress = function () {
gotoAndPlay(_currentframe);
};
go_btn._visible = false;
}
frame 40 {
stopAllSounds();
bgsound.fnBGSound('HKO_KittySurvival_ActionVamp_v1.mp3', true);
}
frame 100 {
sound.fnBGSound('TINA_01.wav');
}
frame 100 {
intro = 1;
stop();
}
frame 100 {
go_btn._visible = true;
}
frame 110 {
sound.fnBGSound('CALEB_01.wav');
}
frame 110 {
intro = 2;
stop();
prev_btn.onPress = function () {
gotoAndPlay('intro' + (intro - 1));
};
}
frame 120 {
sound.fnBGSound('LUNK_01.wav');
}
frame 120 {
intro = 3;
stop();
}
frame 150 {
sound.fnBGSound('JED_01.wav');
}
frame 150 {
intro = 4;
stop();
}
frame 160 {
sound.fnBGSound('JED_02.wav');
}
frame 160 {
intro = 5;
stop();
}
frame 170 {
sound.fnBGSound('LUNK_02a.wav');
}
frame 170 {
intro = 6;
stop();
}
frame 181 {
sound.fnBGSound('JED_03.wav');
}
frame 181 {
intro = 7;
stop();
}
frame 181 {
go_btn.onPress = function () {
gotoAndPlay(_currentframe);
};
}
frame 191 {
sound.fnBGSound('JED_04.wav');
}
frame 191 {
intro = 8;
}
frame 191 {
next_btn.onPress = function () {
next_btn._visible = false;
_parent.gotoAndPlay(10);
};
stop();
}
}
movieClip 111 {
}
movieClip 115 {
}
// unknown tag 88 length 92
movieClip 143 {
}
movieClip 145 {
}
movieClip 147 {
}
movieClip 153 {
}
movieClip 154 {
}
movieClip 162 {
}
movieClip 165 {
}
movieClip 170 {
}
movieClip 172 {
}
movieClip 173 {
}
movieClip 174 {
}
movieClip 183 {
}
movieClip 200 {
}
movieClip 205 {
}
movieClip 208 {
}
movieClip 212 {
}
movieClip 215 {
}
movieClip 218 {
}
movieClip 221 {
}
movieClip 224 {
}
movieClip 225 {
}
movieClip 251 {
}
movieClip 254 {
}
movieClip 257 {
}
movieClip 260 {
}
movieClip 279 {
frame 9 {
gotoAndPlay(2);
}
}
movieClip 296 {
frame 8 {
gotoAndPlay(2);
}
}
movieClip 313 {
frame 9 {
gotoAndPlay(2);
}
}
movieClip 332 {
frame 9 {
gotoAndPlay(2);
}
}
movieClip 351 {
frame 9 {
gotoAndPlay(2);
}
}
movieClip 352 {
}
movieClip 355 {
}
movieClip 357 {
}
movieClip 370 {
}
movieClip 372 {
}
movieClip 377 {
}
movieClip 378 {
}
movieClip 382 {
}
movieClip 386 {
}
movieClip 390 {
}
movieClip 394 {
}
movieClip 397 {
}
movieClip 398 {
}
movieClip 399 {
}
movieClip 402 {
}
movieClip 404 {
}
movieClip 406 {
}
movieClip 408 {
}
movieClip 410 {
}
movieClip 412 {
}
movieClip 413 {
}
movieClip 414 {
}
movieClip 416 {
}
movieClip 420 {
}
movieClip 424 {
frame 1 {
stopAllSounds();
bgsound.fnBGSound('HKO_InGameTutorialMusic_v1.mp3', true);
}
frame 18 {
sound.fnBGSound('1.HelloYouAreHere.wav');
}
frame 28 {
next_btn.onPress = function () {
play();
};
}
frame 28 {
stop();
}
frame 29 {
sound.fnBGSound('2.YourFirstChallenge.wav');
}
frame 29 {
next_btn.onPress = function () {
play();
};
}
frame 39 {
prev_btn.onPress = function () {
gotoAndPlay('ch1_0a');
};
}
frame 39 {
stop();
}
frame 40 {
sound.fnBGSound('3.ThisFriendIsTheUI.wav');
}
frame 40 {
next_btn.onPress = function () {
++_root.section;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn.onPress = function () {
gotoAndPlay('ch1_0b');
};
}
frame 60 {
stop();
}
frame 61 {
sound.fnBGSound('4.JustBecauseYoure.wav');
}
frame 61 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
gotoAndPlay('ch1_0c');
};
}
frame 79 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 79 {
stop();
}
frame 80 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 2;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 90 {
hidden_b_3.onPress = function () {
this._parent.gotoAndPlay('ch1_4');
};
}
frame 100 {
prev_btn._visible = true;
}
frame 100 {
stop();
}
frame 101 {
sound.fnBGSound('5.OnTheChannel.wav');
}
frame 101 {
prev_btn.onPress = function () {
_root.section = 2;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 110 {
i = 1;
while (i <= 6) {
this['hidden_b_4_' + i].onRollOver = function () {
_root.section = 10;
this._parent.next_btn._visible = true;
this._parent.gotoAndPlay('ch1_' + (4 + int(this._name.substring(11))));
};
++i;
}
i = 1;
while (i <= 6) {
this['hidden_b_4_' + i].onRollOut = function () {
this._parent.gotoAndPlay('ch1_10x');
};
++i;
}
}
frame 119 {
}
frame 119 {
stop();
}
frame 125 {
stop();
}
frame 131 {
stop();
}
frame 137 {
stop();
}
frame 143 {
stop();
}
frame 149 {
stop();
}
frame 156 {
stop();
}
frame 163 {
stop();
}
frame 164 {
sound.fnBGSound('7.ToYourRightAreIcons.wav');
}
frame 164 {
next_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 4;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 174 {
i = 1;
while (i <= 12) {
this['hidden_b_11_' + i].onRollOver = function () {
_root.section = 23;
this._parent.next_btn._visible = true;
this._parent.gotoAndPlay('ch1_' + (11 + int(this._name.substring(12))));
};
++i;
}
i = 1;
while (i <= 12) {
this['hidden_b_11_' + i].onRollOut = function () {
this._parent.gotoAndPlay('ch1_23x');
};
++i;
}
}
frame 183 {
}
frame 183 {
stop();
}
frame 190 {
stop();
}
frame 197 {
stop();
}
frame 204 {
stop();
}
frame 211 {
stop();
}
frame 218 {
stop();
}
frame 225 {
stop();
}
frame 232 {
stop();
}
frame 239 {
stop();
}
frame 246 {
stop();
}
frame 253 {
stop();
}
frame 260 {
stop();
}
frame 267 {
stop();
}
frame 275 {
stop();
}
frame 276 {
sound.fnBGSound('9.EveryAdventurerWorth.wav');
}
frame 276 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 11;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 286 {
hidden_b_24.onPress = function () {
this._parent.gotoAndPlay('ch1_25');
};
}
frame 295 {
prev_btn._visible = true;
}
frame 295 {
stop();
}
frame 296 {
sound.fnBGSound('10.OnTheAreaMapYouCan.wav');
}
frame 296 {
_root.section = 25;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 24;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 324 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 324 {
stop();
}
frame 325 {
sound.fnBGSound('11.ClickOnTheWorldIcon.wav');
}
frame 325 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 25;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 335 {
hidden_b_26.onPress = function () {
this._parent.gotoAndPlay('ch1_27');
};
}
frame 344 {
prev_btn._visible = true;
}
frame 344 {
stop();
}
frame 345 {
sound.fnBGSound('12.ThisIsTheWorldMap.wav');
}
frame 345 {
_root.section = 27;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 26;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
map.arrow_up.onRollOver = function () {
this.onEnterFrame = function () {
if (this._parent.mapx._y + 10 <= 524) {
this._parent.mapx._y += 10;
}
};
};
map.arrow_up.onRollOut = function () {
delete this.onEnterFrame;
};
map.arrow_down.onRollOver = function () {
this.onEnterFrame = function () {
if (this._parent.mapx._y - 10 >= -524) {
this._parent.mapx._y -= 10;
}
};
};
map.arrow_down.onRollOut = function () {
delete this.onEnterFrame;
};
map.arrow_left.onRollOver = function () {
this.onEnterFrame = function () {
if (this._parent.mapx._x + 10 <= 698) {
this._parent.mapx._x += 10;
}
};
};
map.arrow_left.onRollOut = function () {
delete this.onEnterFrame;
};
map.arrow_right.onRollOver = function () {
this.onEnterFrame = function () {
if (this._parent.mapx._x - 10 >= -698) {
this._parent.mapx._x -= 10;
}
};
};
map.arrow_right.onRollOut = function () {
delete this.onEnterFrame;
};
}
frame 364 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 364 {
stop();
}
frame 365 {
sound.fnBGSound('13.TheToolBarOnTheUpper.wav');
}
frame 365 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 27;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 374 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 374 {
stop();
}
frame 375 {
sound.fnStopBGSound();
}
frame 375 {
tpx = avatar._x;
tpy = avatar._y;
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 28;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
avatar.gotoAndStop(1);
walkable_area.onRelease = function () {
tpx = _xmouse;
tpy = _ymouse;
am = '1';
st = '0';
};
avatar.onEnterFrame = function () {
tx = tpx - avatar._x;
ty = tpy - avatar._y;
an = Math.atan2(ty, tx) * 180 / 3.14;
di = Math.sqrt(tx * tx + ty * ty);
hitx = avatar._x - clickHere._x;
hity = avatar._y - clickHere._y;
di2 = Math.sqrt(hitx * hitx + hity * hity);
if (di2 < 15) {
delete this.onEnterFrame;
gotoAndPlay('ch1_30');
}
if (am == '1' && di > 5) {
avatar._x += Math.cos(an * 0.01744444444444445) * 4.95;
avatar._y += Math.sin(an * 0.01744444444444445) * 4.95;
if (an >= -112.5 && an < -67.5) {
avatar.gotoAndStop(7);
avatar.avatarx.play();
}
if (an >= -67.5 && an < -22.5) {
avatar.gotoAndStop(5);
avatar.avatarx.play();
}
if (an >= -22.5 && an < 22.5) {
avatar.gotoAndStop(9);
avatar.avatarx.play();
}
if (an >= 22.5 && an < 67.5) {
avatar.gotoAndStop(3);
avatar.avatarx.play();
}
if (an >= 67.5 && an < 112.5) {
avatar.gotoAndStop(6);
avatar.avatarx.play();
}
if (an >= 112.5 && an < 157.5) {
avatar.gotoAndStop(2);
avatar.avatarx.play();
}
if (an >= -180 && an < -157.5 || an >= 157.5 && an <= 180) {
avatar.gotoAndStop(8);
avatar.avatarx.play();
}
if (an >= -157.5 && an < -112.5) {
avatar.gotoAndStop(4);
avatar.avatarx.play();
}
} else {
am = '0';
avatar.avatarx.gotoAndStop(1);
}
};
}
frame 395 {
sound.fnBGSound('14.YouWontGetFarAlong.wav');
}
frame 409 {
prev_btn._visible = true;
}
frame 409 {
stop();
}
frame 410 {
sound.fnBGSound('15.YouWillNeedToBeNear.wav');
}
frame 410 {
_root.section = 30;
prev_btn._visible = false;
next_btn.onPress = function () {
++_root.section;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn.onPress = function () {
_root.section = 29;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 429 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 429 {
stop();
}
frame 430 {
sound.fnBGSound('16.HmmLooksLikeNPCName.wav');
}
frame 430 {
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 30;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
next_btn.onPress = function () {
play();
};
}
frame 448 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 448 {
stop();
}
frame 449 {
next_btn.onPress = function () {
_root.section = 33;
++_root.section;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn.onPress = function () {
_root.section = 30;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 459 {
stop();
}
frame 460 {
sound.fnBGSound('17.TheNPCWillNowTalkTo.wav');
}
frame 460 {
next_btn.onPress = function () {
++_root.section;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn.onPress = function () {
_root.section = 31;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 479 {
stop();
}
frame 480 {
sound.fnBGSound('18.OnceYouHaveFinished.wav');
}
frame 480 {
next_btn._visible = false;
prev_btn._visible = false;
next_btn.onPress = function () {
_root.section = 37;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn.onPress = function () {
_root.section = 34;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 499 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 499 {
stop();
}
frame 500 {
sound.fnBGSound('19.NPCsWillTalkToYou.wav');
}
frame 500 {
_root.section = 37;
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 35;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
next_btn.onPress = function () {
_root.section = 38;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 519 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 519 {
stop();
}
frame 520 {
sound.fnBGSound('20.SanrioLandIsPeppered.wav');
}
frame 520 {
_root.section = 38;
next_btn._visible = false;
prev_btn._visible = false;
prev_btn.onPress = function () {
_root.section = 37;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
next_btn.onPress = function () {
_root.section = 39;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
}
frame 528 {
next_btn._visible = true;
prev_btn._visible = true;
}
frame 528 {
stop();
}
frame 529 {
sound.fnBGSound('21.NowThatYouveMastered.wav');
}
frame 529 {
_root.section = 39;
prev_btn.onPress = function () {
_root.section = 38;
gotoAndPlay('ch' + _root.ch + '_' + _root.section);
};
prev_btn._visible = false;
}
frame 560 {
finish_btn.onPress = function () {
loadMovie('', _root.swf);
_root.swf_to_load = 'HKO' + _root.myVer + 'tutorial_Ch2.swf';
_root.gotoAndPlay('startLoading');
};
prev_btn._visible = true;
hko_btn.onPress = function () {
getURL('http://www.hellokittyonline.com', '_blank');
};
}
frame 560 {
stop();
}
}
movieClip 425 {
frame 1 {
if (_root._currentframe != 1) {
stop();
} else {
gotoAndStop(2);
}
}
frame 41 {
sound.fnStopBGSound();
}
frame 80 {
_root.ch = 1;
_root.section = 1;
stop();
}
frame 88 {
stop();
}
}
movieClip 428 {
}
movieClip 429 __Packages.udt.tools.SoundTool {
#initclip
if (!_global.udt) {
_global.udt = new Object();
}
if (!_global.udt.tools) {
_global.udt.tools = new Object();
}
if (!_global.udt.tools.SoundTool) {
var v1 = function (target) {
this._target = target;
this.vBGSound = new Sound(target);
};
udt.tools.SoundTool = v1;
var v2 = v1.prototype;
v2.fnBGSound = function (pSoundID, loopMusic, pVolume) {
this.vBGSound.stop(this.vBGSoundID);
this.vBGSoundID = pSoundID;
if (this.vBGSoundOn) {
if (pVolume != undefined) {
this.vBGVolume = pVolume;
}
this.vBGSound = new Sound(this._target);
this.vBGSound.attachSound(pSoundID);
if (loopMusic) {
this.vBGSound.start(0, 9999);
} else {
this.vBGSound.start(0, 0);
}
this.vBGSound.setVolume(this.vBGVolume);
}
};
v2.fnStopBGSound = function () {
this.vBGSound.stop(this.vBGSoundID);
};
v2.vBGSoundOn = true;
v2.vBGSoundID = '';
v2.vBGVolume = 100;
ASSetPropFlags(udt.tools.SoundTool.prototype, null, 1);
}
#endinitclip
}