STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229593
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/77310121?noj=FRM77310121-21DC" width="1" height="1"></div>

642044_cyoa-5c.swf

This is the info page for
Flash #204092

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 17 CYOA_MusicBox { frame 1 { stop(); } } frame 1 { stop(); } movieClip 21 { } // unknown tag 88 length 125 movieClip 30 { } // unknown tag 88 length 69 // unknown tag 88 length 63 movieClip 36 { } movieClip 37 { } movieClip 40 { } button 44 { on (press) { _root.play(); } } movieClip 45 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; eval(bar)._xscale = PercentLoaded; if (PercentLoaded != 100) { } else { gotoAndStop('loaded'); } } frame 2 { gotoAndPlay(1); } frame 3 { eval(bar)._xscale = PercentLoaded; _parent.loadedText._x = _parent.loadText._x; _parent.loadText._x = 3000; } } movieClip 47 { } movieClip 405 __Packages.SwainAudioPlayer { #initclip if (!_global.SwainAudioPlayer) { var v1 = function () {}; _global.SwainAudioPlayer = v1; var v2 = v1.prototype; v1.init = function () { SwainAudioPlayer.stopTrack(SwainAudioPlayer.musicTrack1); SwainAudioPlayer.stopTrack(SwainAudioPlayer.musicTrack2); _root.createEmptyMovieClip('musicTrack1', _root.getNextHighestDepth()); _root.createEmptyMovieClip('musicTrack2', _root.getNextHighestDepth()); SwainAudioPlayer.musicTrack1 = _root.musicTrack1; SwainAudioPlayer.musicTrack2 = _root.musicTrack2; SwainAudioPlayer.currentTrack = SwainAudioPlayer.musicTrack1; SwainAudioPlayer.musicOn = true; stopAllSounds(); _root.createEmptyMovieClip('soundManager', _root.getNextHighestDepth()); SwainAudioPlayer.soundManager = _root.soundManager; SwainAudioPlayer.soundManager.onEnterFrame = SwainAudioPlayer.soundTick; SwainAudioPlayer.soundTypeArray = new Array(); SwainAudioPlayer.allSounds = new Array(); SwainAudioPlayer.allSoundsMCs = new Array(); }; v1.playTrack = function (inTrack) { if (SwainAudioPlayer.musicTrack1.myTrack == SwainAudioPlayer.soundLibrary(inTrack)) { if (SwainAudioPlayer.currentTrack == SwainAudioPlayer.musicTrack2) { SwainAudioPlayer.currentTrack = SwainAudioPlayer.musicTrack1; } } else { if (SwainAudioPlayer.musicTrack2.myTrack == SwainAudioPlayer.soundLibrary(inTrack)) { if (SwainAudioPlayer.currentTrack == SwainAudioPlayer.musicTrack1) { SwainAudioPlayer.currentTrack = SwainAudioPlayer.musicTrack2; } } else { if (SwainAudioPlayer.musicTrack1 == undefined && SwainAudioPlayer.musicTrack2 == undefined || SwainAudioPlayer.currentTrack == SwainAudioPlayer.musicTrack2) { SwainAudioPlayer.currentTrack = SwainAudioPlayer.musicTrack1; } else { SwainAudioPlayer.currentTrack = SwainAudioPlayer.musicTrack2; } SwainAudioPlayer.stopTrack(SwainAudioPlayer.currentTrack); var tempTrack = SwainAudioPlayer.currentTrack; tempTrack.onEnterFrame = function () { SwainAudioPlayer.trackTick(tempTrack); }; SwainAudioPlayer.currentTrack.myTrack = SwainAudioPlayer.soundLibrary(inTrack); SwainAudioPlayer.currentTrack.mySound = new Sound(SwainAudioPlayer.currentTrack); SwainAudioPlayer.currentTrack.mySound.attachSound(SwainAudioPlayer.currentTrack.myTrack); SwainAudioPlayer.currentTrack.mySound.start(0, 999999); SwainAudioPlayer.setTrackVolume(inTrack); if (!SwainAudioPlayer.musicOn) { SwainAudioPlayer.currentTrack.mySound.setVolume(0); } else { if (SwainAudioPlayer.musicTrack2.mySound == undefined || SwainAudioPlayer.musicTrack1.mySound == undefined) { SwainAudioPlayer.currentTrack.mySound.setVolume(100 * SwainAudioPlayer.volumeMusic); } else { SwainAudioPlayer.currentTrack.mySound.setVolume(0); } } } } }; v1.stopTrack = function (inTrackObj) { inTrackObj.mySound.stop(inTrackObj.myTrack); inTrackObj.mySound = undefined; inTrackObj.myTrack = undefined; inTrackObj.onEnterFrame = null; }; v1.trackTick = function (inTrackObj) { if (!SwainAudioPlayer.musicOn) { inTrackObj.mySound.setVolume(0); } else { if (inTrackObj != SwainAudioPlayer.currentTrack) { inTrackObj.mySound.setVolume(inTrackObj.mySound.getVolume() - 5); if (inTrackObj.mySound.getVolume() <= 0) { SwainAudioPlayer.stopTrack(inTrackObj); } } else { if (inTrackObj.mySound.getVolume() < 100 * SwainAudioPlayer.volumeMusic) { inTrackObj.mySound.setVolume(inTrackObj.mySound.getVolume() + 5); } if (inTrackObj.mySound.getVolume() > 100 * SwainAudioPlayer.volumeMusic) { inTrackObj.mySound.setVolume(100 * SwainAudioPlayer.volumeMusic); } } } }; v1.fadeAllTracks = function () { SwainAudioPlayer.currentTrack = undefined; }; v1.stopAllTracks = function () { SwainAudioPlayer.currentTrack = undefined; SwainAudioPlayer.stopTrack(SwainAudioPlayer.musicTrack1); SwainAudioPlayer.stopTrack(SwainAudioPlayer.musicTrack2); }; v1.muteMusic = function (inOn) { SwainAudioPlayer.musicOn = inOn; if (inOn) { SwainAudioPlayer.currentTrack.mySound.setVolume(100 * SwainAudioPlayer.volumeMusic); } else { SwainAudioPlayer.currentTrack.mySound.setVolume(0); } }; v1.soundTick = function () { if (SwainAudioPlayer.soundTypeArray.length > 0) { SwainAudioPlayer.soundTypeArray = new Array(); } }; v1.playSound = function (inSound, inPan) { if (!SwainAudioPlayer.soundOn) { return undefined; } var v1 = 0; while (v1 < SwainAudioPlayer.soundTypeArray.length) { if (SwainAudioPlayer.soundTypeArray[v1] == inSound) { return false; } ++v1; } SwainAudioPlayer.soundTypeArray.push(inSound); var v3 = SwainAudioPlayer.soundManager.createEmptyMovieClip('soundMC' + SwainMath.randomNumber(0, 99999), SwainAudioPlayer.soundManager.getNextHighestDepth()); v3.newSound = new Sound(v3); v3.mySound = inSound; var newSound = v3.newSound; SwainAudioPlayer.allSounds.push(newSound); SwainAudioPlayer.allSoundsMCs.push(v3); newSound.attachSound(SwainAudioPlayer.soundLibrary(inSound)); newSound.setPan(inPan); newSound.setVolume((SwainAudioPlayer.returnVolume(inSound) - Math.abs(inPan * 0.5)) * SwainAudioPlayer.volumeSound); newSound.start(); newSound.onSoundComplete = function () { var v1 = 0; while (v1 < SwainAudioPlayer.allSounds.length) { if (newSound == SwainAudioPlayer.allSounds[v1]) { SwainAudioPlayer.allSoundsMCs[v1].removeMovieClip(); SwainAudioPlayer.allSoundsMCs.splice(v1, 1); SwainAudioPlayer.allSounds.splice(v1, 1); delete newSound; break; } ++v1; } }; }; v1.stopSound = function (inSound) { var v1 = 0; while (v1 < SwainAudioPlayer.allSounds.length) { if (SwainAudioPlayer.allSoundsMCs[v1].mySound == inSound) { SwainAudioPlayer.allSounds[v1].stop(); delete SwainAudioPlayer.allSounds[v1]; SwainAudioPlayer.allSoundsMCs[v1].removeMovieClip(); SwainAudioPlayer.allSoundsMCs.splice(v1, 1); SwainAudioPlayer.allSounds.splice(v1, 1); break; } ++v1; } }; v1.stopAllSounds = function () { while (SwainAudioPlayer.allSoundsMCs.length > 0) { SwainAudioPlayer.allSoundsMCs[0].removeMovieClip(); SwainAudioPlayer.allSoundsMCs.splice(0, 1); } while (SwainAudioPlayer.allSounds.length > 0) { SwainAudioPlayer.allSounds[0].stop(); SwainAudioPlayer.allSounds.splice(0, 1); } }; v1.muteSound = function (inOn) { SwainAudioPlayer.soundOn = inOn; }; v1.soundLibrary = function (inName) { var v1; if (inName == 'test1') { return inName; } v1 = 'S_'; if (inName == 'beep') { v1 += 'Beep1'; } if (inName == 'beep2') { v1 += 'Beep2'; } if (inName == 'click') { v1 += 'Click'; } if (inName == 'click2') { v1 += 'Click2'; } if (inName == 'bell') { v1 += 'Bell1'; } if (inName == 'page') { v1 += 'Page' + SwainMath.randomNumber(1, 4); } if (inName == 'trackmenu') { v1 += 'Track_0'; } if (inName == 'track1') { v1 += 'Track_1'; } if (inName == 'track2') { v1 += 'Track_2'; } if (inName == 'track3') { v1 += 'Track_3'; } if (inName == 'track4') { v1 += 'Track_4'; } if (inName == 'track5') { v1 += 'Track_5'; } if (inName == 'track6') { v1 += 'Track_1'; } return v1; }; v1.returnVolume = function (inName) { var v1 = 100; if (inName == 'page') { v1 *= 0.85; } if (inName == 'beep') { v1 *= 0.4; } if (inName == 'beep2') { v1 *= 0.5; } if (inName == 'click') { v1 *= 0.4; } if (inName == 'click2') { v1 *= 0.5; } if (inName == 'bell') { v1 *= 0.7; } return v1; }; v1.setTrackVolume = function (inTrack) { if (inTrack == '') { SwainAudioPlayer.volumeMusic = 0.4; } else { SwainAudioPlayer.volumeMusic = 0.4; } }; v1.musicOn = true; v1.soundOn = true; v1.volumeSound = 0.75; v1.volumeMusic = 0.5; ASSetPropFlags(_global.SwainAudioPlayer.prototype, null, 1); } #endinitclip } movieClip 406 __Packages.SwainMath { #initclip if (!_global.SwainMath) { var v1 = function () {}; _global.SwainMath = v1; var v2 = v1.prototype; v1.calculate_rotation = function (source_x, source_y, target_x, target_y) { SwainMath.Xd = target_x - source_x; SwainMath.Yd = target_y - source_y; SwainMath.radAngle = Math.atan2(SwainMath.Yd, SwainMath.Xd); SwainMath.rotation_result = int(SwainMath.radAngle * 360 / 6.283185307179586 + 90); if (SwainMath.rotation_result > 180) { SwainMath.rotation_result = -180 + (SwainMath.rotation_result - 180); } return SwainMath.rotation_result; }; v1.move_me = function (this_mc, this_rotation, this_speed) { if (this_rotation > 180) { this_mc._y += this_speed * Math.cos(0.0174532925199433 * this_rotation); this_mc._x -= this_speed * Math.sin(0.0174532925199433 * this_rotation); } else { this_mc._y -= this_speed * Math.cos(0.0174532925199433 * this_rotation); this_mc._x += this_speed * Math.sin(0.0174532925199433 * this_rotation); } }; v1.move_me2 = function (this_axis, this_rotation, this_speed) { if (this_rotation > 180) { if (this_axis == 'y') { return this_speed * Math.cos(0.0174532925199433 * this_rotation); } if (this_axis == 'x') { return -(this_speed * Math.sin(0.0174532925199433 * this_rotation)); } } else { if (this_axis == 'y') { return -(this_speed * Math.cos(0.0174532925199433 * this_rotation)); } if (this_axis == 'x') { return this_speed * Math.sin(0.0174532925199433 * this_rotation); } } }; v1.get_position = function (startX, startY, this_rotation, this_distance, this_axis) { if (this_axis == 'x') { if (this_rotation > 180) { return startX - this_distance * Math.sin(0.0174532925199433 * this_rotation); } else { return startX + this_distance * Math.sin(0.0174532925199433 * this_rotation); } } if (this_axis == 'y') { if (this_rotation > 180) { return startY + this_distance * Math.cos(0.0174532925199433 * this_rotation); } else { return startY - this_distance * Math.cos(0.0174532925199433 * this_rotation); } } }; v1.get_position_grid = function (startX, startY, destX, destY, inSpeed, inAxis) { if (startX == destX) { if (inAxis == 'x') { return destX; } if (inAxis == 'y') { return destY; } } var v1 = Math.abs(destY - startY) / Math.abs(destX - startX); if (inAxis == 'x') { if (v1 < 1) { v1 = 1; } else { v1 = 1 / v1; } if (startX > destX) { inSpeed *= -1; } startX += inSpeed * v1; if (startX > destX && inSpeed > 0 || startX < destX && inSpeed < 0) { startX = destX; } return startX; } if (inAxis == 'y') { if (v1 > 1) { v1 = 1; } if (startY > destY) { inSpeed *= -1; } startY += inSpeed * v1; if (startY > destY && inSpeed > 0 || startY < destY && inSpeed < 0) { startY = destY; } return startY; } }; v1.get_distance = function (mc_1, mc_2) { SwainMath.point_this.x = mc_1._x; SwainMath.point_this.y = mc_1._y; SwainMath.point_target.x = mc_2._x; SwainMath.point_target.y = mc_2._y; SwainMath.this_distance = flash.geom.Point.distance(SwainMath.point_this, SwainMath.point_target); return SwainMath.this_distance; }; v1.get_distance2 = function (mc_1_x, mc_1_y, mc_2_x, mc_2_y) { SwainMath.point_this.x = mc_1_x; SwainMath.point_this.y = mc_1_y; SwainMath.point_target.x = mc_2_x; SwainMath.point_target.y = mc_2_y; SwainMath.this_distance = flash.geom.Point.distance(SwainMath.point_this, SwainMath.point_target); return SwainMath.this_distance; }; v1.randomNumber = function (min, max) { var v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; }; v1.getAxisDistance = function (inStart, inEnd) { var v1 = inStart - inEnd; if (inStart < inEnd) { v1 *= -1; } return v1; }; v1.getRotDistance = function (inRot1, inRot2) { var v1; if (inRot1 < inRot2 - 180) { inRot1 += 360; } if (inRot1 > inRot2 + 180) { inRot1 -= 360; } v1 = inRot1 - inRot2; if (v1 < 0) { v1 *= -1; } return v1; }; v1.shulffleArray = function (inArray) { var v3 = new Array(); var v1 = inArray.concat(); var v2; while (v1.length > 0) { v2 = SwainMath.randomNumber(0, v1.length - 1); v3.push(v1[v2]); v1.splice(v2, 1); } return v3; }; v1.randomElement = function (inArray) { return inArray[SwainMath.randomNumber(0, inArray.length - 1)]; }; v1.removeElement = function (inElement, inArray) { var v1 = 0; while (v1 < inArray.length) { if (inElement == inArray[v1]) { inArray.splice(v1, 1); break; } ++v1; } }; v1.returnNumberCommas = function (inNum) { var v1 = String(inNum); var v2 = new String(); var v3 = 0; while (v3 <= (String(inNum)).length) { if (v1.length > 3) { v2 = ',' + v1.substr(-3, 3) + v2; v1 = v1.substr(0, v1.length - 3); } else { v2 = v1 + v2; break; } v3 += 3; } return v2; }; v1.point_this = new flash.geom.Point(0, 0); v1.point_target = new flash.geom.Point(0, 0); v1.this_distance = new Number(); v1.Xd = new Number(); v1.Yd = new Number(); v1.radAngle = new Number(); v1.rotation_result = new Number(); ASSetPropFlags(_global.SwainMath.prototype, null, 1); } #endinitclip } movieClip 407 __Packages.GameSaver { #initclip if (!_global.GameSaver) { var v1 = function () {}; _global.GameSaver = v1; var v2 = v1.prototype; v1.saveProgress = function () { var v1 = SharedObject.getLocal(GameSaver.saveName); v1.clear(); v1.data.haveSaved = true; v1.data.playerName = StoryReader.playerName; v1.data.myEndings = StoryReader.myEndings.concat(); }; v1.loadProgress = function () { var v2 = SharedObject.getLocal(GameSaver.saveName); _root.playerName = v2.data.playerName; StoryReader.playerName = _root.playerName; StoryReader.myEndings = v2.data.myEndings.concat(); }; v1.saveName = 'CYOA1'; ASSetPropFlags(_global.GameSaver.prototype, null, 1); } #endinitclip } movieClip 408 __Packages.StoryReader { #initclip if (!_global.StoryReader) { var v1 = function () {}; _global.StoryReader = v1; var v2 = v1.prototype; v1.newGame = function () { StoryReader.playerName = _root.playerName; StoryReader.totalEndings = EndingReader.returnEndingCount(); StoryReader.formatEndings(); GameSaver.saveProgress(); StoryReader.playerEndings = StoryReader.returnMyEarnedEndings(); StoryReader.myPathArray = new Array(); StoryReader.myPathCurrent = -1; StoryReader.readPage(1); StoryReader.applyPage(); }; v1.readPage = function (inPage) { --inPage; StoryReader.thisParagraph = 0; StoryReader.thisBody = new Array(); StoryReader.thisChar = new Array(); StoryReader.thisEmote = new Array(); StoryReader.thisBG = new Array(); StoryReader.thisMusic = new Array(); StoryReader.choicePages = new Array(); StoryReader.choiceTitles = new Array(); StoryReader.choiceCritical = new Array(); StoryReader.thisPage = _root.myXML.firstChild.childNodes[inPage].attributes.pagenum; StoryReader.thisTitle = _root.myXML.firstChild.childNodes[inPage].childNodes[0].firstChild.nodeValue; var v3 = 0; while (v3 < _root.myXML.firstChild.childNodes[inPage].childNodes.length) { if (_root.myXML.firstChild.childNodes[inPage].childNodes[v3].nodeName == 'paragraph') { StoryReader.thisBody.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].firstChild.nodeValue); StoryReader.thisChar.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.mychar); StoryReader.thisEmote.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.myemote); StoryReader.thisBG.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.mybg); StoryReader.thisEnding = Number(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.myending); StoryReader.thisMusic.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.mymusic); EndingReader.reachEnding(StoryReader.thisEnding); } if (_root.myXML.firstChild.childNodes[inPage].childNodes[v3].nodeName == 'choice') { StoryReader.choicePages.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.goto); StoryReader.choiceTitles.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].firstChild.nodeValue); StoryReader.choiceCritical.push(_root.myXML.firstChild.childNodes[inPage].childNodes[v3].attributes.critical); } if (_root.myXML.firstChild.childNodes[inPage].childNodes[v3].nodeName == 'ending') { } ++v3; } v3 = 0; while (v3 < StoryReader.thisBody.length) { StoryReader.thisBody[v3] = StoryReader.nameFilter(StoryReader.thisBody[v3]); ++v3; } if (StoryReader.myPathCurrent == StoryReader.myPathArray.length - 1 && StoryReader.thisPage != StoryReader.myPathArray[StoryReader.myPathCurrent]) { StoryReader.myPathArray.push(StoryReader.thisPage); StoryReader.myPathCurrent = StoryReader.myPathArray.length - 1; } trace('Path: ' + StoryReader.myPathCurrent + ' and contains pages ' + StoryReader.myPathArray + ' (' + (StoryReader.myPathArray.length - 1) + ')'); }; v1.applyPage = function () { _root.myTextTitle.text = StoryReader.thisTitle; _root.myTextBody.text = StoryReader.thisBody[StoryReader.thisParagraph]; _root.myTextChar.text = StoryReader.thisChar[StoryReader.thisParagraph]; _root.myCharAvatar.gotoAndStop(StoryReader.thisChar[StoryReader.thisParagraph] + '_' + StoryReader.thisEmote[StoryReader.thisParagraph]); _root.charNone._visible = StoryReader.thisChar[StoryReader.thisParagraph] == ''; _root.myTextPage.text = 'Page ' + StoryReader.thisPage; StoryReader.playerEndings = StoryReader.returnMyEarnedEndings(); _root.myTextEndings.text = 'Endings: ' + String(StoryReader.playerEndings) + '/' + StoryReader.totalEndings; StoryReader.clearChoiceButtons(); if (StoryReader.thisParagraph == StoryReader.thisBody.length - 1) { StoryReader.createChoiceButtons(); } else { _root.buttonNext.gotoAndStop(1); } if (StoryReader.myPathCurrent == 0) { _root.buttonBack.gotoAndStop(2); _root.buttonBackScene.gotoAndStop(2); } else { _root.buttonBack.gotoAndStop(1); _root.buttonBackScene.gotoAndStop(1); } if (StoryReader.myPathCurrent == StoryReader.myPathArray.length - 1) { if (StoryReader.thisParagraph == StoryReader.thisBody.length - 1) { _root.buttonNext.gotoAndStop(2); } _root.buttonNextScene.gotoAndStop(2); } else { _root.buttonNext.gotoAndStop(1); _root.buttonNextScene.gotoAndStop(1); } if (StoryReader.thisMusic[StoryReader.thisParagraph] != '' && StoryReader.thisMusic[StoryReader.thisParagraph] != undefined) { SwainAudioPlayer.playTrack(StoryReader.thisMusic[StoryReader.thisParagraph]); } if (!_root.gameLoaded) { _root.myTextTitle.text = 'Error Loading Story!'; _root.myTextBody.text = 'Could not read story XML at www.we-are-1.net. Check your internet connection and try again. Thanks! :)'; _root.myTextChar.text = ''; _root.charNone._visible = false; _root.myTextPage.text = ''; _root.myTextEndings.text = 'Endings: 0/0'; } }; v1.nextParagraph = function (inAdvance) { StoryReader.thisParagraph += inAdvance; var v1 = false; if (StoryReader.thisParagraph < 0) { StoryReader.nextScene(-1); } if (StoryReader.thisParagraph > StoryReader.thisBody.length - 1) { StoryReader.thisParagraph = StoryReader.thisBody.length - 1; StoryReader.nextScene(1); } if (!v1) { StoryReader.applyPage(); } }; v1.nextScene = function (inAdvance) { StoryReader.myPathCurrent += inAdvance; StoryReader.readPage(StoryReader.myPathArray[StoryReader.myPathCurrent]); if (inAdvance < 0) { StoryReader.thisParagraph = StoryReader.thisBody.length - 1; } StoryReader.applyPage(); }; v1.clipPathArray = function () { StoryReader.myPathArray.splice(StoryReader.myPathCurrent + 1, StoryReader.myPathArray.length); }; v1.nameFilter = function (inText) { while (inText.indexOf('<NAME>') != -1) { var v2 = inText.indexOf('<NAME>'); inText = inText.slice(0, v2) + StoryReader.playerName + inText.slice(v2 + 6, inText.length); } return inText; }; v1.createChoiceButtons = function () { var v2; var v4; var v7; var v6 = _root.myTextBody._y + 30 + _root.myTextBody.bottomScroll * 18; var v8 = _root.myTextBody._x + _root.myTextBody._width / 2; StoryReader.allChoiceBars = new Array(); StoryReader.allChoiceButtons = new Array(); var v3 = 0; while (v3 < StoryReader.choiceTitles.length) { v7 = 'choice_button'; if (StoryReader.choiceCritical[v3] == 'true') { v7 += '_2'; } v2 = _root.attachMovie(v7, 'choice' + String(v3), _root.getNextHighestDepth()); v4 = v2.myChoice; v2.myPage = Number(StoryReader.choicePages[v3]); v4.text = StoryReader.choiceTitles[v3]; v4._height = (v4.bottomScroll - 1) * 18 + 26; v2._x = v8; v2._y = v6; v6 += v4._height + 10; v2.onPress = _root.pressChoiceButton; v2.onRollOver = _root.rollOverChoiceButton; v2.onRollOut = _root.rollOutChoiceButton; v2.onEnterFrame = _root.tickChoiceButton; if (StoryReader.choiceCritical[v3] == 'true') { v2.throbTimer = new Number(); } v2.myGlowTimer = new Number(); v2.myGlowAdd = false; StoryReader.allChoiceButtons.push(v2); if (v3 < StoryReader.choiceTitles.length - 1) { var v5 = _root.attachMovie('choice_bar', 'bar' + String(v3), _root.getNextHighestDepth()); v5._x = v8; v5._y = v6 - 5; StoryReader.allChoiceBars.push(v5); } ++v3; } if (StoryReader.thisEnding) { v2 = _root.attachMovie('end_tag', 'endTag', _root.getNextHighestDepth()); v2.myEnd.text = 'Ending #' + StoryReader.thisEnding + ''; v2._x = v8; v2._y = v6; } }; v1.clearChoiceButtons = function () { while (StoryReader.allChoiceButtons.length > 0) { StoryReader.allChoiceButtons[0].removeMovieClip(); StoryReader.allChoiceButtons.splice(0, 1); } while (StoryReader.allChoiceBars.length > 0) { StoryReader.allChoiceBars[0].removeMovieClip(); StoryReader.allChoiceBars.splice(0, 1); } _root.endTag.removeMovieClip(); }; v1.formatEndings = function () { if (StoryReader.myEndings == undefined || StoryReader.myEndings.length != StoryReader.totalEndings) { StoryReader.myEndings = new Array(); var v1 = 0; while (v1 < StoryReader.totalEndings) { StoryReader.myEndings.push(false); ++v1; } trace('Endings missing, new array length: ' + StoryReader.myEndings.length); } else { trace('Endings read, total length: ' + StoryReader.myEndings.length); } }; v1.returnMyEarnedEndings = function () { var v3 = new Number(); var v2 = 0; while (v2 < StoryReader.myEndings.length) { if (StoryReader.myEndings[v2]) { ++v3; } ++v2; } trace('Of all endings, you have unlocked ' + v3); _root.kongregate.stats.submit('Endings', v3); return v3; }; v1.thisPage = new Number(); v1.thisParagraph = new Number(); v1.thisTitle = new String(); v1.thisBody = new Array(); v1.myPathArray = new Array(); v1.myPathCurrent = new Number(); v1.thisChar = new Array(); v1.thisEmote = new Array(); v1.thisBG = new Array(); v1.thisEnding = new Number(); v1.thisMusic = new Array(); v1.allChoiceButtons = new Array(); v1.allChoiceBars = new Array(); v1.choiceTitles = new Array(); v1.choicePages = new Array(); v1.choiceCritical = new Array(); v1.playerName = new String(); v1.totalEndings = new Number(); v1.playerEndings = new Number(); v1.myEndings = new Array(); ASSetPropFlags(_global.StoryReader.prototype, null, 1); } #endinitclip } movieClip 409 __Packages.EndingReader { #initclip if (!_global.EndingReader) { var v1 = function () {}; _global.EndingReader = v1; var v2 = v1.prototype; v1.returnEnding = function (inEnding) { --inEnding; var v2 = 0; while (v2 < _root.myXML.childNodes[1].childNodes[inEnding].childNodes.length) { if (_root.myXML.childNodes[1].childNodes[inEnding].childNodes[v2].nodeName == 'title') { EndingReader.endTitle = _root.myXML.childNodes[1].childNodes[inEnding].childNodes[v2].firstChild.nodeValue; } if (_root.myXML.childNodes[1].childNodes[inEnding].childNodes[v2].nodeName == 'description') { EndingReader.endBody = _root.myXML.childNodes[1].childNodes[inEnding].childNodes[v2].firstChild.nodeValue; } ++v2; } return [EndingReader.endTitle, EndingReader.endBody]; }; v1.returnEndingCount = function () { return _root.myXML.childNodes[1].childNodes.length; }; v1.reachEnding = function (inEnd) { if (inEnd) { StoryReader.myEndings[inEnd - 1] = true; GameSaver.saveProgress(); } }; v1.populateEndingPanels = function (inPage) { var v9 = 350; var v8 = 100; var v7 = 4; EndingReader.myEndingsUnlocked = new Array(); EndingReader.myEndingPanels = new Array(); EndingReader.endingsPage = inPage; var v2 = 0; while (v2 < StoryReader.myEndings.length) { if (StoryReader.myEndings[v2]) { EndingReader.myEndingsUnlocked.push(v2 + 1); } ++v2; } var v5; v2 = 0; while (v2 < v7) { v5 = EndingReader.endingsPage * v7 + v2; if (EndingReader.myEndingsUnlocked[v5] != undefined) { var v3 = _root.endContainer.attachMovie('endings_panel', 'endPanel' + String(v2), _root.getNextHighestDepth()); var v6 = EndingReader.returnEnding(EndingReader.myEndingsUnlocked[v5]); v3._x = v9; v3._y = v8; v8 += 90; v3.titleTEXT.text = v6[0]; v3.bodyTEXT.text = v6[1]; EndingReader.myEndingPanels.push(v3); if (v2 < v7 - 1 && EndingReader.myEndingsUnlocked[v5 + 1] != undefined) { var v4 = _root.attachMovie('endings_bar', 'bar' + String(v2), _root.getNextHighestDepth()); v4._x = 40; v4._y = v8 - 10; EndingReader.myEndingPanels.push(v4); } } ++v2; } if (EndingReader.endingsPage == 0) { _root.buttonBack.gotoAndStop(2); } else { _root.buttonBack.gotoAndStop(1); } if ((EndingReader.endingsPage + 1) * v7 >= EndingReader.myEndingsUnlocked.length) { _root.buttonNext.gotoAndStop(2); } else { _root.buttonNext.gotoAndStop(1); } GameSaver.loadProgress(); _root.endingsFoundTEXT.text = StoryReader.returnMyEarnedEndings(); _root.endingsTotalTEXT.text = EndingReader.returnEndingCount(); }; v1.clearEndingPanels = function () { while (EndingReader.myEndingPanels.length > 0) { EndingReader.myEndingPanels[0].removeMovieClip(); EndingReader.myEndingPanels.splice(0, 1); } }; v1.pressNext = function (inPageTurn) { EndingReader.clearEndingPanels(); EndingReader.populateEndingPanels(EndingReader.endingsPage + inPageTurn); }; ASSetPropFlags(_global.EndingReader.prototype, null, 1); } #endinitclip } frame 4 { SwainAudioPlayer.init(); } movieClip 51 choice_button { } movieClip 53 choice_bar { } movieClip 56 endings_panel { } movieClip 58 endings_bar { } movieClip 60 end_tag { } movieClip 62 choice_button_2 { } movieClip 106 { frame 1 { stop(); } } frame 9 { stop(); var playerName; GameSaver.loadProgress(); if (playerName == undefined) { playerName = 'Player'; } var gameLock = true; var gameLoaded = false; var kongregate = _global.kongregate; kongregate.services.connect(); var myXML = new XML(); myXML.ignoreWhite = true; myXML.load('http://www.we-are-1.net/TestFile.XML'); myXML.onLoad = function (loaded) { gameLoaded = loaded; clear; gameLock = false; }; SwainAudioPlayer.playTrack('trackmenu'); } movieClip 110 { } movieClip 111 { } movieClip 114 { } movieClip 116 { } movieClip 119 { } movieClip 123 { } movieClip 124 { } // unknown tag 88 length 220 movieClip 133 { frame 1 { stop(); } } movieClip 136 { frame 1 { stop(); } } movieClip 139 { frame 1 { stop(); } } button 141 { on (rollOver) { _root.button_new.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { _root.button_new.gotoAndStop(1); } on (press) { if (!gameLock) { _root.gotoAndStop('name'); SwainAudioPlayer.playSound('click', 0); SwainAudioPlayer.playSound('bell', 0); } } } button 142 { on (rollOver) { _root.button_endings.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { _root.button_endings.gotoAndStop(1); } on (press) { if (!gameLock) { _root.gotoAndStop('endings'); SwainAudioPlayer.playSound('click', 0); } } } button 143 { on (rollOver) { _root.button_moregames.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { _root.button_moregames.gotoAndStop(1); } on (press) { SwainAudioPlayer.playSound('click', 0); getURL('http://www.kongregate.com/games/greg/thousand-dollar-soul-321811', '_blank'); } } movieClip 146 { frame 1 { stop(); } } button 147 { on (rollOver) { _root.button_bio.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { _root.button_bio.gotoAndStop(1); } on (press) { SwainAudioPlayer.playSound('click', 0); getURL('http://www.we-are-1.net', '_blank'); } } movieClip 153 { } // unknown tag 88 length 132 // unknown tag 88 length 146 button 164 { on (press) { getURL('http://halcyonicfalconx.bandcamp.com/', '_blank'); } } button 167 { on (press) { getURL('http://dvgmusic.bandcamp.com/', '_blank'); } } movieClip 174 { frame 1 { stop(); } } movieClip 177 { frame 1 { stop(); } } button 178 { on (rollOver) { _root.button_credits.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { _root.button_credits.gotoAndStop(1); } on (press) { SwainAudioPlayer.playSound('click', 0); if (_root.menuCredits._currentframe == 1) { _root.menuCredits.gotoAndStop(2); } else { _root.menuCredits.gotoAndStop(1); } } } movieClip 194 { frame 6 { if (SwainMath.randomNumber(0, 14) > 0) { gotoAndPlay('reset'); } else { if (SwainMath.randomNumber(0, 2) == 0) { } else { gotoAndPlay(1); } } } frame 11 { gotoAndPlay(1); } } movieClip 198 { frame 17 { stop(); } } movieClip 201 { frame 23 { stop(); } } movieClip 203 { frame 7 { if (SwainMath.randomNumber(0, 15) > 0) { gotoAndPlay('reset'); } else { gotoAndPlay(1); } } } movieClip 208 { } movieClip 213 { } movieClip 221 { frame 1 { stop(); } } button 230 { on (rollOver) { button_done.gotoAndStop(3); SwainAudioPlayer.playSound('beep', 0); } on (rollOut) { button_done.gotoAndStop(1); } on (press) { _root.playerName = playerNameTEXT.text; SwainAudioPlayer.playSound('click', 0); nextFrame(); play(); } } movieClip 241 { } button 247 { on (release) { gotoAndPlay('poetSkip'); SwainAudioPlayer.playSound('click', 0); } } movieClip 266 { frame 25 { playerNameTEXT.text = _root.playerName; } frame 27 { playerNameTEXT.text = _root.playerName; } frame 28 { playerNameTEXT.text = _root.playerName; } frame 29 { playerNameTEXT.text = _root.playerName; } frame 30 { playerNameTEXT.text = _root.playerName; } frame 31 { playerNameTEXT.text = _root.playerName; } frame 32 { stop(); Selection.setFocus(playerNameTEXT); Selection.setSelection(playerNameTEXT.text.length, playerNameTEXT.text.length); playerNameTEXT.text = _root.playerName; } frame 33 { playerName3TEXT.text = _root.playerName; playerName2TEXT.text = playerName3TEXT.text; } frame 94 { _root.gotoAndStop('story'); } frame 1212 { _root.gotoAndStop('story'); } } frame 27 { function pressChoiceButton() { StoryReader.clipPathArray(); StoryReader.readPage(this.myPage); StoryReader.applyPage(); SwainAudioPlayer.playSound('page', 0); } function tickChoiceButton() { if (this.throbTimer != undefined) { if (this.throbAdd == undefined) { this.throbAdd = true; } if (this.throbAdd) { ++this.throbTimer; this.throbAdd = this.throbTimer < 15; } else { --this.throbTimer; this.throbAdd = this.throbTimer <= 0; } if (!this.myGlowAdd) { this.myGlowTimer = 11.33333333333333 * this.throbTimer; } } if (this.myGlowAdd) { this.myGlowTimer += 45; } else { if (this.throbTimer == undefined || this.myGlowTimer > 11.33333333333333 * this.throbTimer + 45) { this.myGlowTimer -= 45; } } if (this.myGlowTimer < 0) { this.myGlowTimer = 0; } if (this.myGlowTimer > 170) { this.myGlowTimer = 170; } var v2 = {'rb': this.myGlowTimer, 'gb': this.myGlowTimer, 'bb': this.myGlowTimer}; var v3 = new Color(this); v3.setTransform(v2); } function rollOverChoiceButton() { this.myGlowAdd = true; SwainAudioPlayer.playSound('beep2', 0); } function rollOutChoiceButton() { this.myGlowAdd = false; } StoryReader.newGame(); } movieClip 268 { } movieClip 269 { } movieClip 273 { } movieClip 277 { frame 1 { stop(); } } movieClip 283 { } movieClip 285 { } movieClip 290 { } movieClip 294 { } movieClip 298 { } movieClip 299 { frame 1 { gotoAndStop(1); } } movieClip 304 { } movieClip 308 { } movieClip 310 { } movieClip 314 { } movieClip 318 { } movieClip 320 { } movieClip 321 { } // unknown tag 88 length 67 movieClip 330 { } movieClip 334 { } // unknown tag 88 length 95 button 346 { on (press) { StoryReader.nextParagraph(-1); SwainAudioPlayer.playSound('click2', 0); SwainAudioPlayer.playSound('page', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } } movieClip 348 { frame 1 { stop(); } } button 352 { on (press) { StoryReader.nextParagraph(1); SwainAudioPlayer.playSound('click2', 0); SwainAudioPlayer.playSound('page', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } } movieClip 354 { frame 1 { stop(); } } button 359 { on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } on (press) { SwainAudioPlayer.playSound('click', 0); StoryReader.clearChoiceButtons(); gotoAndStop('menu'); } } button 364 { on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } on (press) { SwainAudioPlayer.muteSound(!SwainAudioPlayer.soundOn); SwainAudioPlayer.playSound('click', 0); SwainAudioPlayer.muteMusic(!SwainAudioPlayer.musicOn); } } button 367 { on (press) { StoryReader.nextScene(-1); SwainAudioPlayer.playSound('click2', 0); SwainAudioPlayer.playSound('page', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } } movieClip 369 { frame 1 { stop(); } } button 372 { on (press) { StoryReader.nextScene(1); SwainAudioPlayer.playSound('click2', 0); SwainAudioPlayer.playSound('page', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } } movieClip 374 { frame 1 { stop(); } } frame 37 { EndingReader.populateEndingPanels(0); } movieClip 376 { } movieClip 379 { } movieClip 380 { } button 388 { on (press) { EndingReader.pressNext(-1); SwainAudioPlayer.playSound('click2', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep2', 0); } } movieClip 390 { frame 1 { stop(); } } button 393 { on (press) { EndingReader.pressNext(1); SwainAudioPlayer.playSound('click2', 0); } on (rollOver) { SwainAudioPlayer.playSound('beep2', 0); } } movieClip 395 { frame 1 { stop(); } } button 400 { on (press) { EndingReader.clearEndingPanels(); SwainAudioPlayer.playSound('click', 0); gotoAndStop('menu'); } on (rollOver) { SwainAudioPlayer.playSound('beep', 0); } } movieClip 403 { } movieClip 404 { }




http://swfchan.com/41/204092/info.shtml
Created: 10/10 -2018 21:09:54 Last modified: 10/10 -2018 21:09:54 Server time: 21/12 -2024 17:50:55