Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Muffet62_fla
- {
- import flash.display.MovieClip;
- import flash.ui.ContextMenu;
- import flash.events.ContextMenuEvent;
- import flash.net.navigateToURL;
- import flash.net.URLRequest;
- import flash.events.Event;
- import flash.events.MouseEvent;
- import flash.text.TextField;
- import flash.media.Sound;
- import flash.media.SoundChannel;
- import flash.media.SoundMixer;
- import flash.events.KeyboardEvent;
- import flash.media.SoundTransform;
- import flash.ui.ContextMenuItem;
- public dynamic class MainTimeline extends MovieClip
- {
- public var black:MovieClip;
- public var eggMenu:MovieClip;
- public var texts:MovieClip;
- public var thePreLoader:MovieClip;
- public var s:MovieClip;
- public var reloader:MovieClip;
- public var ea1:MovieClip;
- public var nigel:MovieClip;
- public var ea2:MovieClip;
- public var ea3:MovieClip;
- public var ea4:MovieClip;
- public var totalBytes:Number;
- public var loadedBytes:Number;
- public var my_menu:ContextMenu;
- public var my_thing;
- public var Egg:EasterEggCodeEngine;
- public var eggGoing:Boolean;
- public var started:int;
- public var pausePosition:int;
- public var endings;
- public var previousText;
- public var enteredEggText:String;
- public var eggPromptShowing:Boolean;
- public var eggText:TextField;
- public var shygirlSounds:Boolean;
- public var music:Boolean;
- public var track:Boolean;
- public var squish:Boolean;
- public var cumTrigger:Boolean;
- public var secondCumTrigger:Boolean;
- public var bgms:Sound;
- public var bgmChannel:SoundChannel;
- public var allSounds:Array;
- public var s1:Sound;
- public var s2:Sound;
- public var s3:Sound;
- public var s4:Sound;
- public var s5:Sound;
- public var regularText;
- public var shuffledRegularText:Array;
- public var randomPos:Number;
- public var shuffledRegularTextCounter;
- public var loopsWithoutTextCounter;
- public var i:int;
- public var cumText;
- public function MainTimeline()
- {
- super();
- addFrameScript(0,this.frame1,1,this.frame2);
- }
- public function openLink(param1:ContextMenuEvent) : void
- {
- navigateToURL(new URLRequest("http://meaconscientia.tumblr.com/"));
- }
- public function loaderFrame(param1:Event) : *
- {
- trace("loading");
- this.loadedBytes = stage.loaderInfo.bytesLoaded;
- if(Math.round(this.loadedBytes / this.totalBytes * 100) < 100)
- {
- this.thePreLoader.gotoAndStop(Math.round(this.loadedBytes / this.totalBytes * 100));
- }
- else if(Math.round(this.loadedBytes / this.totalBytes * 100) == 100)
- {
- if(this.thePreLoader.currentFrame < 100)
- {
- this.thePreLoader.gotoAndPlay(100);
- }
- else if(this.thePreLoader.currentFrame == 135)
- {
- if(this.thePreLoader.isPlaying)
- {
- this.thePreLoader.stop();
- }
- if(this.thePreLoader.getChildByName("playButton") != null)
- {
- trace("Adding play");
- if(!this.thePreLoader.getChildByName("playButton").hasEventListener(MouseEvent.CLICK))
- {
- this.thePreLoader.getChildByName("playButton").addEventListener(MouseEvent.CLICK,this.playButtonClick);
- }
- if(!this.thePreLoader.getChildByName("u").hasEventListener(MouseEvent.CLICK))
- {
- this.thePreLoader.getChildByName("u").addEventListener(MouseEvent.CLICK,this.und);
- }
- if(!this.thePreLoader.getChildByName("b").hasEventListener(MouseEvent.CLICK))
- {
- this.thePreLoader.getChildByName("b").addEventListener(MouseEvent.CLICK,this.boo);
- }
- }
- }
- }
- }
- public function playButtonClick(param1:MouseEvent) : *
- {
- param1.currentTarget.removeEventListener(MouseEvent.CLICK,this.playButtonClick);
- this.removeEventListener(Event.ENTER_FRAME,this.loaderFrame);
- this.thePreLoader.addEventListener(Event.ENTER_FRAME,this.PLL);
- this.thePreLoader.play();
- }
- public function und(param1:MouseEvent) : *
- {
- navigateToURL(new URLRequest("http://store.steampowered.com/app/391540/"),"_blank");
- }
- public function boo(param1:MouseEvent) : *
- {
- navigateToURL(new URLRequest("https://www.patreon.com/NotBoogie"),"_blank");
- }
- public function PLL(param1:Event) : *
- {
- if(param1.target.currentFrame == param1.target.totalFrames)
- {
- param1.target.stop();
- this.gotoAndPlay(2);
- param1.target.removeEventListener(Event.ENTER_FRAME,this.PLL);
- }
- }
- public function randomSort(param1:*, param2:*) : Number
- {
- if(Math.random() < 0.5)
- {
- return -1;
- }
- return 1;
- }
- public function resetButtonClick(param1:MouseEvent) : *
- {
- SoundMixer.stopAll();
- this.cumTrigger = false;
- if(this.music == false)
- {
- this.music = true;
- this.bgmChannel = this.bgms.play(this.pausePosition,100);
- }
- this.reloader.getChildByName("resetButton").removeEventListener(MouseEvent.CLICK,this.resetButtonClick);
- this.reloader.gotoAndStop(1);
- gotoAndPlay(2);
- }
- public function eggController(param1:Event) : *
- {
- if(this.eggMenu.currentFrame == 20)
- {
- this.eggMenu.stop();
- }
- else if(this.eggMenu.currentFrame == 80)
- {
- this.eggPromptShowing = false;
- this.eggMenu.gotoAndStop(1);
- this.enteredEggText = "";
- this.eggText.text = this.enteredEggText;
- this.eggMenu.removeEventListener(Event.ENTER_FRAME,this.eggController);
- }
- }
- public function checkText(... rest) : Boolean
- {
- var _loc2_:* = undefined;
- var _loc3_:* = undefined;
- for each(_loc2_ in rest)
- {
- trace(_loc2_);
- for each(_loc3_ in _loc2_)
- {
- trace(_loc3_);
- if(this.enteredEggText.toUpperCase().indexOf(_loc3_.toUpperCase()) >= 0)
- {
- trace("FOUND");
- return true;
- }
- }
- }
- return false;
- }
- public function keyDownListener(param1:KeyboardEvent) : *
- {
- if(this.eggPromptShowing == false)
- {
- if(param1.keyCode != 32)
- {
- this.eggMenu.play();
- this.eggPromptShowing = true;
- this.eggMenu.addEventListener(Event.ENTER_FRAME,this.eggController);
- }
- }
- else
- {
- trace(this.eggMenu.g.eggTextField.text);
- trace(this.eggText.text);
- if(param1.charCode == 8)
- {
- if(this.eggText.text.length > 0)
- {
- this.enteredEggText = this.enteredEggText.substring(0,this.enteredEggText.length - 1);
- this.eggText.text = this.enteredEggText;
- }
- }
- else if(param1.charCode == 13)
- {
- trace("Entered");
- if(this.enteredEggText.toUpperCase().indexOf("BOOGIE") >= 0 || this.enteredEggText.toUpperCase().indexOf("STOMACH") >= 0 || this.enteredEggText.toUpperCase().indexOf("GUT") >= 0 || this.enteredEggText.toUpperCase().indexOf("BELLY") >= 0 || this.enteredEggText.toUpperCase().indexOf("VORE") >= 0 || this.enteredEggText.toUpperCase().indexOf("LEGS") >= 0 || this.enteredEggText.toUpperCase().indexOf("BULGE") >= 0 || this.enteredEggText.toUpperCase().indexOf("LATEX") >= 0 || this.enteredEggText.toUpperCase().indexOf("MUSIC") >= 0 || this.enteredEggText.toUpperCase().indexOf("VOICE") >= 0 || this.enteredEggText.toUpperCase().indexOf("SIZE") >= 0 || this.enteredEggText.toUpperCase().indexOf("SHORT") >= 0 || this.enteredEggText.toUpperCase().indexOf("DANCING") >= 0 || this.enteredEggText.toUpperCase().indexOf("TOBY") >= 0 || this.enteredEggText.toUpperCase().indexOf("NIGEL") >= 0 || this.enteredEggText.toUpperCase().indexOf("THORNBERRY") >= 0)
- {
- this.eggPromptShowing = false;
- this.eggText.text = "";
- this.eggMenu.gotoAndStop(1);
- this.reloader.getChildByName("resetButton").removeEventListener(MouseEvent.CLICK,this.resetButtonClick);
- this.reloader.gotoAndStop(1);
- this.texts.gotoAndStop(1);
- this.pausePosition = this.bgmChannel.position;
- this.bgmChannel.stop();
- SoundMixer.stopAll();
- this.eggGoing = true;
- gotoAndPlay(156);
- this.music = false;
- }
- else
- {
- if(this.checkText(["FUCK","SHIT","PISS","ASS","CUNT","DICK","COCK"]))
- {
- this.eggText.text = "THIS IS A CHILDREN\'S SHOW ASSHOLE";
- }
- else if(this.checkText(["MIDNA","TRISTANA"]))
- {
- navigateToURL(new URLRequest("https://youtu.be/1_xCx9sVYmU?t=4m7s"),"_blank");
- }
- else if(this.checkText(["MELOME"]))
- {
- navigateToURL(new URLRequest("https://youtu.be/NLJYdkJpViQ?t=9s"),"_blank");
- }
- else if(this.enteredEggText.length == 0)
- {
- this.eggText.text = "Speechless eh? I can hardly say I\'m surprised";
- }
- else if(this.checkText(["FREAKAZOID","UNDYNE"]))
- {
- navigateToURL(new URLRequest("https://www.youtube.com/watch?v=K5DH7XY8Tho"),"_blank");
- }
- else if(this.checkText(["PUPSPIDER","MUFFET","SPIDER","MULTIPLE","CHUCK NORRIS"]))
- {
- navigateToURL(new URLRequest("https://www.youtube.com/watch?v=O-qloBShqCo"),"_blank");
- }
- else if(this.checkText(["SONG","DRAGONFORCE"]))
- {
- navigateToURL(new URLRequest("https://soundcloud.com/wendyfag/through-the-core-and-ruins"),"_blank");
- }
- else if(this.checkText(["TEM"]))
- {
- navigateToURL(new URLRequest("http://www.themostamazingwebsiteontheinternet.com/"),"_blank");
- }
- else if(this.checkText(["SONIC","SANIC"]))
- {
- navigateToURL(new URLRequest("https://www.youtube.com/watch?v=PrLSgac3WmM"),"_blank");
- }
- else
- {
- this.eggText.text = "YOU GET A GOLD STAR!";
- this.eggMenu.play();
- }
- if(this.checkText(["FUCK YOU"]))
- {
- this.eggText.text = "AYY FUG YOU 2 BUDDY";
- }
- this.eggMenu.play();
- }
- }
- else
- {
- this.enteredEggText = this.enteredEggText + String.fromCharCode(param1.charCode);
- this.eggText.text = this.enteredEggText;
- trace("aaa");
- }
- }
- if(this.eggPromptShowing == false)
- {
- if(param1.keyCode == 49)
- {
- if(this.music == true)
- {
- this.music = false;
- this.pausePosition = this.bgmChannel.position;
- this.bgmChannel.stop();
- }
- else
- {
- this.music = true;
- this.bgmChannel = this.bgms.play(this.pausePosition,100);
- }
- }
- else if(param1.keyCode == 32)
- {
- if(this.cumTrigger == false)
- {
- this.cumTrigger = true;
- }
- else
- {
- this.secondCumTrigger = true;
- }
- }
- }
- trace(param1.keyCode.toString());
- }
- public function frameCheck(param1:Event) : *
- {
- var surrender:Function = null;
- var e:Event = param1;
- var playRandomSound:Function = function():*
- {
- var _loc1_:* = Math.round(Math.random());
- if(_loc1_ == 0)
- {
- _loc1_ = -1;
- }
- var _loc2_:* = (Math.random() * 40 + 60) / 100;
- var _loc3_:SoundTransform = new SoundTransform(_loc2_,_loc1_ * Math.random());
- var _loc4_:SoundChannel = allSounds[Math.round(Math.random() * (allSounds.length - 1))].play(0,1,_loc3_);
- };
- surrender = function(param1:MouseEvent):*
- {
- SoundMixer.stopAll();
- s.gotoAndStop(1);
- gotoAndPlay(556);
- };
- if(this.black.alpha > 0)
- {
- this.black.alpha = this.black.alpha - 0.02;
- }
- if(this.eggGoing == false)
- {
- if(this.currentFrame == 9 || this.currentFrame == 26 || this.currentFrame == 43 || this.currentFrame == 60 || this.currentFrame == 71 || this.currentFrame == 82)
- {
- if(this.squish == true)
- {
- playRandomSound();
- }
- }
- if(this.currentFrame == 36)
- {
- if(this.cumTrigger == false)
- {
- gotoAndPlay(2);
- }
- else
- {
- gotoAndPlay(37);
- }
- }
- else if(this.currentFrame == 41)
- {
- if(this.cumTrigger == true)
- {
- this.texts.gotoAndPlay(516);
- }
- }
- else if(this.currentFrame == 124)
- {
- gotoAndPlay(99);
- }
- else if(this.currentFrame == 354)
- {
- this.secondCumTrigger = false;
- gotoAndPlay(179);
- }
- else if(this.currentFrame == 59)
- {
- this.music = false;
- this.pausePosition = this.bgmChannel.position;
- this.bgmChannel.stop();
- }
- else if(this.currentFrame == 30)
- {
- if(this.texts.currentFrame == 1)
- {
- if(Math.floor(Math.random() * 5) == 1 || this.loopsWithoutTextCounter > 5)
- {
- if(this.shuffledRegularTextCounter > this.shuffledRegularText.length)
- {
- this.shuffledRegularTextCounter = 0;
- }
- trace(this.shuffledRegularText);
- trace("shuffledRegularTextCounter: " + this.shuffledRegularTextCounter + " | " + this.shuffledRegularText[this.shuffledRegularTextCounter]);
- this.texts.gotoAndPlay(this.shuffledRegularText[this.shuffledRegularTextCounter]);
- this.shuffledRegularTextCounter = this.shuffledRegularTextCounter + 1;
- this.loopsWithoutTextCounter = 0;
- }
- else
- {
- this.loopsWithoutTextCounter = this.loopsWithoutTextCounter + 1;
- }
- }
- }
- else if(this.currentFrame == 110)
- {
- if(this.texts.currentFrame == 1)
- {
- if(Math.floor(Math.random() * 10) == 1)
- {
- this.texts.gotoAndPlay(this.cumText[Math.floor(Math.random() * this.cumText.length)]);
- }
- }
- }
- else if(this.currentFrame == 95)
- {
- if(this.reloader.getChildByName("resetButton") != null)
- {
- trace("reset exists");
- trace("Adding reset");
- if(!this.reloader.getChildByName("resetButton").hasEventListener(MouseEvent.CLICK))
- {
- this.reloader.getChildByName("resetButton").addEventListener(MouseEvent.CLICK,this.resetButtonClick);
- this.reloader.play();
- }
- }
- }
- }
- else if(this.currentFrame == 555)
- {
- stop();
- if(this.s.currentFrame == 1)
- {
- this.s.play();
- }
- else if(this.s.currentFrame == 15)
- {
- this.s.stop();
- }
- if(!this.s.getChildByName("surrend").hasEventListener(MouseEvent.CLICK))
- {
- this.s.getChildByName("surrend").addEventListener(MouseEvent.CLICK,surrender);
- }
- }
- else if(this.currentFrame == 1125)
- {
- this.eggGoing = false;
- gotoAndPlay(2);
- this.s.gotoAndStop(1);
- SoundMixer.stopAll();
- this.cumTrigger = false;
- if(this.music == false)
- {
- this.music = true;
- this.bgmChannel = this.bgms.play(this.pausePosition,100);
- }
- navigateToURL(new URLRequest("https://www.youtube.com/watch?v=eUYeBaCoseE"),"_blank");
- }
- }
- public function textcheck(param1:Event) : *
- {
- if(this.isAtEndFrame(this.texts.currentFrame))
- {
- this.texts.gotoAndStop(1);
- }
- }
- public function isAtEndFrame(param1:int) : Boolean
- {
- var _loc2_:* = 0;
- while(_loc2_ < this.endings.length)
- {
- if(param1 == this.endings[_loc2_])
- {
- return true;
- }
- _loc2_ = _loc2_ + 1;
- }
- return false;
- }
- function frame1() : *
- {
- if(!this.hasEventListener("loaderFrame"))
- {
- this.totalBytes = stage.loaderInfo.bytesTotal;
- this.addEventListener(Event.ENTER_FRAME,this.loaderFrame);
- trace("Setting up preloader");
- this.stop();
- this.thePreLoader.stop();
- this.my_menu = new ContextMenu();
- this.my_menu.hideBuiltInItems();
- this.my_thing = new ContextMenuItem("Happy Halloween!");
- this.my_menu.customItems.push(this.my_thing);
- this.my_thing.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,this.openLink);
- contextMenu = this.my_menu;
- }
- }
- function frame2() : *
- {
- this.eggGoing = false;
- this.endings = [74,149,280,374,456,515,579,669,726,810,878,962,1032,1086,1144,1220,1325,1395,1484,1565,1660,1735,1815,1894];
- this.previousText = 0;
- if(this.started == 0)
- {
- this.enteredEggText = "";
- this.eggPromptShowing = false;
- this.eggText = this.eggMenu.g.eggTextField;
- this.eggMenu.stop();
- this.Egg = new EasterEggCodeEngine("LEGS");
- this.started = 1;
- this.texts.stop();
- this.reloader.stop();
- this.s.stop();
- this.texts.addEventListener(Event.ENTER_FRAME,this.textcheck);
- this.shygirlSounds = true;
- this.music = true;
- this.track = true;
- this.squish = true;
- this.cumTrigger = false;
- this.secondCumTrigger = false;
- trace("AAAAAAAAAA");
- this.bgms = new bgm();
- this.bgmChannel = this.bgms.play(0,100);
- this.s1 = new M1();
- this.s2 = new M2();
- this.s3 = new M3();
- this.s4 = new M4();
- this.s5 = new M5();
- this.allSounds = [this.s1,this.s2,this.s3,this.s4,this.s5];
- this.regularText = [75,150,281,375,581,670,727,811,879,963,1033,1222,1566,1661,1736,1816];
- this.shuffledRegularText = new Array(this.regularText.length);
- this.randomPos = 0;
- this.shuffledRegularTextCounter = 0;
- this.loopsWithoutTextCounter = 0;
- this.i = 0;
- while(this.i < this.shuffledRegularText.length)
- {
- this.randomPos = int(Math.random() * this.regularText.length);
- this.shuffledRegularText[this.i] = this.regularText.splice(this.randomPos,1)[0];
- this.i++;
- }
- this.cumText = [2,457,1087,1146,1327,1397,1485];
- stage.addEventListener(KeyboardEvent.KEY_DOWN,this.keyDownListener);
- stage.addEventListener(Event.ENTER_FRAME,this.frameCheck);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement