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

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

Virtual Blond Bartender.swf

This is the info page for
Flash #211307

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


Text
CHECK OUT THE
VIRTUAL BARTENDER
STORE!

CHECK OUT THE
VIRTUAL BARTENDER
STORE!

TAKE HER HOME RIGHT
NOW!
(Mini posters fit easily into a
briefcase)

TAKE HER HOME RIGHT
NOW!
(Mini posters fit easily into a
briefcase)

BUY STUFF. YOU MUST
(Attack of the Blondes posters on sale
now!)

BUY STUFF. YOU MUST
(Attack of the Blondes posters on sale
now!)

SPEND ALL YOUR TIME
WITH
OUR VIRTUAL
BARTENDER

SPEND ALL YOUR TIME
WITH
OUR VIRTUAL
BARTENDER

PLACE YOUR ORDER


ActionScript [AS1/AS2]

Frame 1
function init() { videoInt = setInterval(this, "trackVideo", 200, false); playMovie(movieQueue); var _local3 = {}; _local3.onSearch = function (resObj) { trace("received: " + resObj.searchResult[0]); if (resObj.searchResult[0] == "censor") { parentRef.movieQueue.push(new Array("censor")); } else if ((resObj.searchResult[0] == "") || (resObj.searchResult[0] == undefined)) { parentRef.movieQueue.push(new Array("unrecognized")); } else { var _local1 = 0; while (_local1 < resObj.searchResult.length) { if (parentRef.movieQueue.length < 1) { parentRef.movieQueue.push(resObj.searchResult[_local1]); trace("pushing: " + resObj.searchResult[0]); } else { parentRef.movieQueue.splice(parentRef.movieQueue.length - 1, parentRef.movieQueue.length); parentRef.movieQueue[0] = resObj.searchResult[_local1]; } _local1++; } trace(parentRef.movieQueue); } if (parentRef.movieQueue.length >= 4) { parentRef.movieQueue = new Array(); } trace("movie queue: " + parentRef.movieQueue); parentRef.playMovie(parentRef.movieQueue); }; tammy.addEventListener("onSearch", _local3); } function initTimer() { initTime++; trace("timer"); if (initTime > 1) { init(); clearInterval(myInt); } } function playMovie(queue) { if ((videoStatus == "stopped") || (is_idle)) { videoStatus = "playing"; is_idle = false; trace(""); trace("CURRENT SEQUENCE: " + queue[0][0]); trace(""); if (((queue[0] == null) || (queue[0] == undefined)) || (queue[0].length == 0)) { trace("playing idle"); return(playIdleSequence()); } if ((queue[0][0].substr(queue[0][0].length - 3, queue[0][0].length) != "flv") && (queue[0][0] != "censor")) { netStream.play(myAddress + "idle/shrug.flv"); } else if ((queue[0][0] != null) && (queue[0][0] != "censor")) { netStream.play(queue[0][0]); } else if (queue[0][0] == "censor") { netStream.play(myAddress + "censor/wagFinger.flv"); } netStream.setBufferTime(1); queue[0].splice(0, 1); if (queue[0][0] == undefined) { queue.splice(0, 1); } return(undefined); } } function trackVideo(idle) { if (videoStatus == "stopped") { playMovie(movieQueue); } } function buffetCheck(movieName) { netStream.play(movieName); } function playIdleSequence() { is_idle = true; switch (idleCount) { case 0 : var _local2 = Math.round(Math.random() * 2); trace(_local2); if (_local2 == 0) { netStream.play(myAddress + "enter/enterRight.flv"); _root.movie.text = myAddress + "enter/enterRight.flv"; } if (_local2 == 1) { netStream.play(myAddress + "enter/enterLeftCamera.flv"); _root.movie.text = myAddress + "enter/enterLeftCamera.flv"; } if (_local2 == 2) { netStream.play(myAddress + "enter/enterLeft.flv"); _root.movie.text = myAddress + "enter/enterLeft.flv"; } idleCount = 1; break; case 1 : trace("playing drum fingers"); netStream.play(myAddress + "idle/drumFingers.flv"); _root.movie.text = myAddress + "idle/drumFingers.flv"; _local2 = Math.round(Math.random() * 5); idleCount = ((_local2 == 0) ? 1 : (_local2)); break; case 2 : trace("playing drum fingers"); netStream.play(myAddress + "idle/patientlySmiles.flv"); _root.movie.text = myAddress + "idle/patientlySmiles.flv"; _local2 = Math.round(Math.random() * 5); idleCount = ((_local2 == 0) ? 1 : (_local2)); break; case 3 : netStream.play(myAddress + "idle/checkWatch.flv"); _root.movie.text = myAddress + "idle/checkWatch.flv"; idleCount = 1; break; case 4 : netStream.play(myAddress + "idle/checkWatch.flv"); _root.movie.text = myAddress + "idle/checkWatch.flv"; idleCount = 1; break; case 5 : netStream.play(myAddress + "idle/ImpatientlyWaiting.flv"); _root.movie.text = myAddress + "idle/ImpatientlyWaiting.flv"; idleCount = 1; } } var myAddress = _root._url.split("virtual_blond_bartender.swf").join(""); _global.tammy = new com.D3.NLPBot.Main(myAddress + "bot_01_v01a.xml", myAddress + "bot_01_v01a_acts.xml"); var firstTimeActive = true; var is_idle = false; var videoStatus = "stopped"; var movieQueue = new Array(); var idleCount = 0; var initTime = 0; var sequenceCount; var parentRef = this; var netConn = new NetConnection(); netConn.connect(null); var netStream = new NetStream(netConn); netStream.setBufferTime(1); _root.vTammy.attachVideo(netStream); netStream.onStatus = function (infoObject) { if (infoObject.code == "NetStream.Play.Stop") { videoStatus = "stopped"; } }; var botListener = {}; botListener.onBotReady = function (success) { if (success) { parentRef.init(); } }; tammy.addEventListener("onBotReady", botListener); var textFieldListner = {}; textFieldListner.onSetFocus = function (oldFocus, newFocus) { if (newFocus == _root.original) { if (firstTimeActive) { firstTimeActive = false; _root.original.text = ""; } } }; Selection.addListener(textFieldListner); var keyListener = {}; keyListener.parent = this; keyListener.onKeyDown = function () { if (Key.isDown(13)) { if (Selection.getFocus() == "_level0.original") { tammy.search(_root.original.text); _root.original.text = ""; } } }; Key.addListener(keyListener);
Symbol 9 MovieClip [text4] Frame 22
stop();
Symbol 13 MovieClip [text3] Frame 22
stop();
Symbol 17 MovieClip [text2] Frame 22
stop();
Symbol 22 MovieClip [text1] Frame 22
stop();
Symbol 29 Button
on (release) { tammy.search(_root.original.text); _root.original.text = ""; Selection.setFocus("_level0.original"); }
Symbol 34 MovieClip [__Packages.com.D3.NLPBot.Main] Frame 0
class com.D3.NLPBot.Main { var lex, actionListener, lexiconListener, actionList, searchBot; function Main (lexiconLocation, actionLoc) { mx.events.EventDispatcher.initialize(this); lex = new com.D3.NLPBot.LexiconManager(lexiconLocation); actionListener = {}; lexiconListener = {}; actionList = new com.D3.NLPBot.ActionCollection(actionLoc); init(); } function init() { var parent = this; lexiconListener.onLexiconLoaded = function (lexiconObj) { parent.lexicon = lexiconObj.lexicon; parent.actionListener.onActionListLoaded = function (obj) { parent.actionList.removeEventListener("onActionListLoaded", parent.actionListener); parent.actions = obj.actions; parent.searchBot = new com.D3.NLPBot.Search(parent.lexicon, parent.actions); var _local2 = {target:this, type:"onBotReady"}; _local2.success = true; parent.dispatchEvent(_local2); }; parent.actionList.addEventListener("onActionListLoaded", parent.actionListener); parent.actionList.openActionList(); }; lex.addEventListener("onLexiconLoaded", lexiconListener); lex.openLexicon(); } function search(query) { var _local4 = ""; var _local2 = {}; _local2.parent = this; _local2.onSearchResult = function (resObj) { this.parent.searchBot.removeEventListener("onSearchResult", this); var _local2 = {target:this, type:"onSearch"}; _local2.searchResult = resObj.searchResult; this.parent.dispatchEvent(_local2); }; searchBot.addEventListener("onSearchResult", _local2); searchBot.searchQuery(query, 0); } var wordCount = 0; var dispatchEvent = new Function(); var addEventListener = new Function(); var removeEventListener = new Function(); }
Symbol 35 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 36 MovieClip [__Packages.com.D3.NLPBot.LexiconManager] Frame 0
class com.D3.NLPBot.LexiconManager { var lexicon, lexiconLocation, lexiconXML, xmlParser, lexiconListener; function LexiconManager (lexiconLoc) { mx.events.EventDispatcher.initialize(this); lexicon = {}; lexiconLocation = lexiconLoc; lexiconXML = new XML(); xmlParser = new com.D3.utils.XMLHandler(); } function openLexicon() { var parent = this; lexiconXML.ignoreWhite = true; lexiconXML.onLoad = function (success) { parent.parseLexicon(this); }; lexiconXML.load(lexiconLocation); } function parseLexicon(lexiconXML) { var receiveCount = 0; lexiconListener = {}; var parent = this; lexiconListener.onXMLNodeSearch = function (searchObj) { switch (searchObj.node.nodeName) { case "noun" : parent.lexicon.noun = new Array(); var _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.noun[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.noun[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "pronoun" : parent.lexicon.pronoun = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.pronoun[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.pronoun[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "verb" : parent.lexicon.verb = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.verb[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.verb[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "adverb" : parent.lexicon.adverb = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.adverb[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.adverb[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "preposition" : parent.lexicon.preposition = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.preposition[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.preposition[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "interjection" : parent.lexicon.interjection = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.interjection[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.interjection[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "conjunction" : parent.lexicon.conjunction = new Array(); _local5 = 0; while (_local5 < searchObj.node.childNodes.length) { parent.lexicon.conjunction[searchObj.node.childNodes[_local5].nodeName] = new Array(); if (searchObj.node.childNodes[_local5].attributes.s != undefined) { var _local3 = searchObj.node.childNodes[_local5].attributes.s.split(","); var _local4 = 0; while (_local4 < _local3.length) { parent.lexicon.conjunction[searchObj.node.childNodes[_local5].nodeName][_local4] = _local3[_local4]; _local4++; } } _local5++; } break; case "glueList" : parent.lexicon.glueList = searchObj.node.childNodes[0].attributes.s.split(","); break; case "ignoreList" : parent.lexicon.ignoreList = searchObj.node.childNodes[0].attributes.s.split(","); break; case "censorList" : parent.lexicon.censorList = searchObj.node.childNodes[0].attributes.s.split(","); break; case "endNode" : receiveCount++; if (receiveCount != 9) { break; } var _local6 = {target:this, type:"onLexiconLoaded"}; _local6.lexicon = parent.lexicon; parent.dispatchEvent(_local6); } }; xmlParser.addEventListener("onXMLNodeSearch", lexiconListener); xmlParser.findXMLNode(lexiconXML, "noun"); xmlParser.findXMLNode(lexiconXML, "pronoun"); xmlParser.findXMLNode(lexiconXML, "verb"); xmlParser.findXMLNode(lexiconXML, "adverb"); xmlParser.findXMLNode(lexiconXML, "preposition"); xmlParser.findXMLNode(lexiconXML, "interjection"); xmlParser.findXMLNode(lexiconXML, "conjunction"); xmlParser.findXMLNode(lexiconXML, "glueList"); xmlParser.findXMLNode(lexiconXML, "ignoreList"); xmlParser.findXMLNode(lexiconXML, "censorList"); } function getLexicon() { return(lexicon); } var dispatchEvent = new Function(); var addEventListener = new Function(); var removeEventListener = new Function(); }
Symbol 37 MovieClip [__Packages.com.D3.utils.XMLHandler] Frame 0
class com.D3.utils.XMLHandler { function XMLHandler () { mx.events.EventDispatcher.initialize(this); trace("XMLHandler created"); } function findXMLNode(XMLFile, XMLnodeName) { while (XMLFile.nodeType == 1) { if (XMLFile.nodeName == XMLnodeName) { var _local3 = {target:this, type:"onXMLNodeSearch"}; _local3.node = XMLFile; dispatchEvent(_local3); } else { if (XMLFile.firstChild.nodeType == 1) { return(findXMLNode(XMLFile.firstChild, XMLnodeName)); } if (XMLFile.parentNode.nextSibling.nodeType == 1) { return(findXMLNode(XMLFile.parentNode.nextSibling, XMLnodeName)); } } XMLFile = XMLFile.nextSibling; } var _local3 = {target:this, type:"onXMLNodeSearch"}; var _local5 = new XML("<endNode></endNode>"); _local5.nodeName = "endNode"; _local3.node = _local5; dispatchEvent(_local3); } function findXMLNodeByAttribute(XMLFile, XMLnodeName, XMLAttribute, XMLAttributeValue) { while (XMLFile.nodeType == 1) { if (XMLFile.nodeName == XMLnodeName) { if (XMLFile.attributes[XMLAttribute] == XMLAttributeValue) { var _local3 = {target:this, type:"onXMLNodeAttributeSearch"}; _local3.node = XMLFile; _local3.searchAttribute = XMLAttributeValue; dispatchEvent(_local3); } } else if (XMLFile.firstChild.nodeType == 1) { findXMLNodeByAttribute(XMLFile.firstChild, XMLnodeName, XMLAttribute, XMLAttributeValue); } XMLFile = XMLFile.nextSibling; } } function returnAsType(typeToReturn) { } function toString() { return("XMLFetcher component version 0.8"); } var dispatchEvent = new Function(); var addEventListener = new Function(); var removeEventListener = new Function(); }
Symbol 38 MovieClip [__Packages.com.D3.NLPBot.ActionCollection] Frame 0
class com.D3.NLPBot.ActionCollection { var clipLocation, clipList, clipXML, xmlParser; function ActionCollection (clipLoc) { mx.events.EventDispatcher.initialize(this); clipLocation = clipLoc; clipList = new Array(); clipXML = new XML(); xmlParser = new com.D3.utils.XMLHandler(); } function openActionList() { var parent = this; clipXML.ignoreWhite = true; clipXML.onLoad = function (success) { return(parent.parseActionList(this)); }; clipXML.load(clipLocation); } function parseActionList(XMLObj) { var _local5 = {}; var parent = this; _local5.onXMLNodeSearch = function (obj) { var _local4 = obj.node.childNodes; var _local2 = 0; while (_local2 < _local4.length) { parent.clipList[_local2] = new Array(); parent.clipList[_local2].object = _local4[_local2].firstChild.firstChild.attributes.value; parent.clipList[_local2].action = _local4[_local2].firstChild.firstChild.nextSibling.attributes.value; parent.clipList[_local2].location = _local4[_local2].firstChild.firstChild.nextSibling.nextSibling.attributes.value; parent.clipList[_local2].relation = _local4[_local2].firstChild.firstChild.nextSibling.nextSibling.nextSibling.attributes.value; parent.clipList[_local2].directory = _local4[_local2].firstChild.nextSibling.attributes.value; parent.clipList[_local2].names = new Array(); parent.clipList[_local2].followup = new Array(); var _local3 = 0; while (_local3 < _local4[_local2].firstChild.nextSibling.nextSibling.childNodes.length) { parent.clipList[_local2].names[_local3] = _local4[_local2].firstChild.nextSibling.nextSibling.childNodes[_local3].attributes.value; parent.clipList[_local2].followup[_local3] = _local4[_local2].firstChild.nextSibling.nextSibling.childNodes[_local3].attributes.followup; _local3++; } _local2++; } var _local5 = {target:this, type:"onActionListLoaded"}; _local5.actions = parent.clipList; parent.dispatchEvent(_local5); }; xmlParser.addEventListener("onXMLNodeSearch", _local5); xmlParser.findXMLNode(XMLObj, "botActions"); } var dispatchEvent = new Function(); var addEventListener = new Function(); var removeEventListener = new Function(); }
Symbol 39 MovieClip [__Packages.com.D3.NLPBot.Search] Frame 0
class com.D3.NLPBot.Search { var memory, lexiconReference, clipReference, conjunctionCount, assumption, selectRandom, wordJump, extractedArray, words, phraseStructure, actionQueue, returnArray, searchCategories, broadcastActionPool; function Search (lexicon, clips) { mx.events.EventDispatcher.initialize(this); memory = new com.D3.NLPBot.Memory(); lexiconReference = lexicon; clipReference = clips; conjunctionCount = 0; assumption = "verb"; selectRandom = false; wordJump = 1; } function getTerminalSymbols(query) { if (query != "hockey night at beer.com") { trace("here's what you typed: " + query); var _local3 = 0; query = query.toLowerCase(); if (extractedArray == undefined) { extractedArray = new Array(); } while (_local3 <= query.length) { if ((((query.charCodeAt(_local3) > 122) || (query.charCodeAt(_local3) < 97)) && (query.charCodeAt(_local3) != 46)) || (_local3 == query.length)) { if (((query.charCodeAt(0) >= 97) && (query.charCodeAt(0) <= 122)) || (query.charCodeAt(_local3) == 46)) { var _local4 = query.substr(0, _local3 - 0); if (!checkForIgnoreWords(_local4)) { if (checkForCensoredWords(_local4)) { var _local5 = {target:this, type:"onSearchResult"}; var _local6 = new Array("censor"); _local5.searchResult = _local6; dispatchEvent(_local5); return(null); } if (_local4.length > 1) { extractedArray.push(_local4); } if (_local3 == query.length) { var _local7 = searchForGlues(extractedArray); delete extractedArray; return(_local7); } } } if (query.charAt(_local3) != undefined) { return(getTerminalSymbols(query.substr(_local3 + 1, query.length - _local3))); } } _local3++; } } else { var _local5 = {target:this, type:"onSearchResult"}; var _local6 = new Array(new Array("fight/hockeyFight.flv", "enter/enterRight.flv")); _local5.searchResult = _local6; return(dispatchEvent(_local5)); } } function searchQuery(sentence, index) { wordJump = 1; if (words == undefined) { words = getTerminalSymbols(sentence); } if (phraseStructure == undefined) { phraseStructure = new Array(); } if (actionQueue == undefined) { actionQueue = new Array(); } if (((words != null) && (words != undefined)) && (words != "")) { var _local2 = lexiconSearch(words[index], assumption); var _local3 = lexiconSearch(words[index + 1], assumption); } else { return(undefined); } if (_local2[0] == "verb") { if (_local3[0] == "verb") { phraseStructure.object = _local2[1]; phraseStructure.action = _local3[1]; } else { phraseStructure.action = _local2[1]; } assumption = "noun"; } else if (_local2[0] == "adverb") { phraseStructure.object = _local2[1]; assumption = "verb"; } else if (_local2[0] == "noun") { phraseStructure.object = _local2[1]; assumption = "verb"; } else if (_local2[0] == "pronoun") { phraseStructure.relation = _local2[1]; assumption = "verb"; } else if (_local2[0] == "preposition") { assumption = "noun"; if ((_local3[0] == "pronoun") || (_local3[0] == "noun")) { if (_local2[1] == "relation") { phraseStructure.relation = _local3[1]; } else { phraseStructure.location = _local3[1]; } wordJump = 2; } } else if (_local2[0] == "interjection") { phraseStructure.action = _local2[1]; } else if (_local2[0] == "conjunction") { actionQueue.push(phraseStructure); if (words[index] == "or") { selectRandom = true; } delete phraseStructure; conjunctionCount++; } if ((index >= (words.length - 1)) || (conjunctionCount == 2)) { assumption = "verb"; actionQueue.push(phraseStructure); conjunctionCount = 0; var _local5 = actionQueue; delete phraseStructure; delete words; delete actionQueue; return(searchClips(_local5, selectRandom)); } return(searchQuery(sentence, index + wordJump)); } function lexiconSearch(node, assumption) { var _local3 = assumption; var _local7 = 0; if (returnArray == undefined) { returnArray = new Array(); } if ((searchCategories == undefined) || (searchCategories.length == 0)) { searchCategories = new Array(); for (var _local6 in lexiconReference) { if (((_local6 != "ignoreList") && (_local6 != "glueList")) && (_local6 != "censorList")) { searchCategories.push(_local6); } } } while (searchCategories.length > 0) { for (var _local6 in lexiconReference[_local3]) { if (lexiconReference[_local3][_local6].length > 0) { if ((node == _local6) || (node.substr(0, node.length - 1) == _local6)) { returnArray[0] = _local3; returnArray[1] = _local6; } else { var _local4 = 0; while (_local4 < lexiconReference[_local3][_local6].length) { if ((node == lexiconReference[_local3][_local6][_local4]) || ((node.substr(0, node.length - 1) == lexiconReference[_local3][_local6][_local4]) && (node.substr(node.length - 1, node.length) == "s"))) { returnArray[0] = _local3; returnArray[1] = _local6; } _local4++; } } continue; } if ((node == _local6) || ((node.substr(0, node.length - 1) == _local6) && (node.substr(node.length - 1, node.length) == "s"))) { returnArray[0] = _local3; returnArray[1] = _local6; } } if (returnArray[0] != undefined) { var _local5 = returnArray; delete returnArray; delete searchCategories; return(_local5); } var _local4 = 0; while (_local4 < searchCategories.length) { if (searchCategories[_local4] == _local3) { searchCategories.splice(_local4, 1); if (searchCategories[0] != undefined) { _local3 = searchCategories[0]; } } _local4++; } _local7++; } } function searchClips(queue, ran) { var _local5 = 0; var _local11 = clipReference.length; var _local3 = 0; var _local4; if (broadcastActionPool == undefined) { broadcastActionPool = new Array(); } if (ran) { _local4 = new Array(); _local4.push(queue[Math.round(Math.random() * (queue.length - 1))]); } else { _local4 = queue; } var _local2 = 0; while (_local2 < _local4.length) { var _local7 = new Array(); var _local10 = 1; trace("---------------------------"); trace("current: " + _local2); trace("object: " + _local4[_local2].object); trace("action: " + _local4[_local2].action); trace("relation:" + _local4[_local2].relation); trace("location: " + _local4[_local2].location); trace("---------------------------"); while (_local5 < _local11) { if ((_local4[_local2].object == clipReference[_local5].object) && (_local4[_local2].object != undefined)) { _local3 = _local3 + 55; _local10++; } if ((_local4[_local2].action == clipReference[_local5].action) && (_local4[_local2].action != undefined)) { if (((_local4[_local2].action == "give") || (_local4[_local2].action == "make")) || (_local4[_local2].action == "perform")) { _local3 = _local3 + 5; } else { _local3 = _local3 + 30; } _local10++; } if ((_local4[_local2].relation == clipReference[_local5].relation) && (_local4[_local2].relation != undefined)) { _local3 = _local3 + 5; _local10++; } if ((_local4[_local2].location == clipReference[_local5].location) && (_local4[_local2].location != undefined)) { _local3 = _local3 + 10; _local10++; } if ((_local3 >= 30) && (_local3 < 100)) { _local7.push(new Array(clipReference[_local5], _local3)); } else if (_local3 == 100) { var _local9 = memory.memorySearch(_local4[_local2]); var _local6; if (_local9 >= clipReference[_local5].names.length) { memory.clearMemoryBlock(clipReference[_local5]); var _local8 = clipReference[_local5].names[0]; _local6 = clipReference[_local5].followup[0]; } else { var _local8 = clipReference[_local5].names[_local9]; _local6 = clipReference[_local5].followup[_local9]; } _local3 = 0; if (_local6 != undefined) { broadcastActionPool.push(new Array(_local8, _local6)); } else { broadcastActionPool.push(new Array(_local8)); } break; } _local10 = 0; _local5++; _local3 = 0; } _local5 = 0; if (_local7.length > 0) { _local7 = sortClipByValue(_local7); var _local9 = memory.memorySearch(_local7[0][0]); if (_local9 >= _local7[0][0].names.length) { memory.clearMemoryBlock(_local7[0][0]); var _local8 = _local7[0][0].names[0]; var _local6 = _local7[0][0].followup[0]; } else { var _local8 = _local7[0][0].names[_local9]; var _local6 = _local7[0][0].followup[_local9]; } trace("followup value: " + _local6); if (_local6 != undefined) { broadcastActionPool.push(new Array(_local8, _local6)); } else { trace("NO FOLLOWUP FOUND"); broadcastActionPool.push(new Array(_local8)); } } _local2++; } var _local13 = broadcastActionPool; delete broadcastActionPool; var _local12 = {target:this, type:"onSearchResult"}; _local12.searchResult = _local13; return(dispatchEvent(_local12)); } function sortClipByValue(clipArray) { var _local6 = false; var _local2 = clipArray; var _local3 = _local2.length; while (_local3 > 0) { var _local1 = _local3; _local1 = 0; while (_local1 < _local3) { if (_local2[_local1][1] > _local2[_local1 - 1][1]) { var _local4 = _local2[_local1 - 1]; _local2[_local1 - 1] = _local2[_local1]; _local2[_local1] = _local4; } _local1++; } _local3--; } var _local5 = 0; while (_local5 < _local2.length) { _local5++; } return(_local2); } function searchForGlues(terminals) { var _local2 = 0; var _local4 = 0; while (_local2 < terminals.length) { while (_local4 < lexiconReference.glueList.length) { if ((((terminals[_local2] + " ") + terminals[_local2 + 1]) == lexiconReference.glueList[_local4]) || (((terminals[_local2] + " ") + terminals[_local2 + 1]).substr(0, ((terminals[_local2] + " ") + terminals[_local2 + 1]).length - 1) == lexiconReference.glueList[_local4])) { terminals.splice(_local2, 2, lexiconReference.glueList[_local4]); } _local4++; } _local4 = 0; _local2++; } return(terminals); } function checkForIgnoreWords(word) { var _local2 = 0; while ((_local2++) < lexiconReference.ignoreList.length) { if (word == lexiconReference.ignoreList[_local2]) { return(true); } } return(false); } function checkForCensoredWords(word) { var _local2 = 0; while ((_local2++) < lexiconReference.censorList.length) { if (word == lexiconReference.censorList[_local2]) { return(true); } } return(false); } var dispatchEvent = new Function(); var addEventListener = new Function(); var removeEventListener = new Function(); }
Symbol 40 MovieClip [__Packages.com.D3.NLPBot.Memory] Frame 0
class com.D3.NLPBot.Memory { var memoryBlocks; function Memory () { memoryBlocks = new Array(); } function memorySearch(keywordBreakdown) { var _local2 = 0; while (_local2 < memoryBlocks.length) { trace((((((("CURRENT BLOCK: " + memoryBlocks[_local2].object) + "|") + memoryBlocks[_local2].action) + "|") + memoryBlocks[_local2].relation) + "|") + memoryBlocks[_local2].location); if ((((memoryBlocks[_local2].object == keywordBreakdown.object) && (memoryBlocks[_local2].action == keywordBreakdown.action)) && (memoryBlocks[_local2].relation == keywordBreakdown.relation)) && (memoryBlocks[_local2].location == keywordBreakdown.location)) { memoryBlocks[_local2].count++; return(memoryBlocks[_local2].count); } _local2++; } var _local4 = memoryBlocks.length; memoryBlocks[_local4] = new Array(); memoryBlocks[_local4].object = keywordBreakdown.object; memoryBlocks[_local4].action = keywordBreakdown.action; memoryBlocks[_local4].relation = keywordBreakdown.relation; memoryBlocks[_local4].location = keywordBreakdown.location; memoryBlocks[_local4].count = 0; return(0); } function clearMemoryBlock(pattern) { var _local2 = 0; while (_local2 < memoryBlocks.length) { if ((((memoryBlocks[_local2].object == pattern.object) && (memoryBlocks[_local2].action == pattern.action)) && (memoryBlocks[_local2].relation == pattern.relation)) && (memoryBlocks[_local2].location == pattern.location)) { memoryBlocks.splice(_local2, 1); } _local2++; } } }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:9 13 17 22
Symbol 3 FontUsed by:4 5 10 11 14 15 19 20
Symbol 4 TextUses:3Used by:8
Symbol 5 TextUses:3Used by:8
Symbol 6 BitmapUsed by:7
Symbol 7 GraphicUses:6Used by:8
Symbol 8 MovieClipUses:4 5 7Used by:9
Symbol 9 MovieClip [text4]Uses:2 8
Symbol 10 TextUses:3Used by:12
Symbol 11 TextUses:3Used by:12
Symbol 12 MovieClipUses:10 11Used by:13
Symbol 13 MovieClip [text3]Uses:2 12
Symbol 14 TextUses:3Used by:16
Symbol 15 TextUses:3Used by:16
Symbol 16 MovieClipUses:14 15Used by:17
Symbol 17 MovieClip [text2]Uses:2 16
Symbol 18 GraphicUsed by:21
Symbol 19 TextUses:3Used by:21
Symbol 20 TextUses:3Used by:21
Symbol 21 MovieClipUses:18 19 20Used by:22
Symbol 22 MovieClip [text1]Uses:2 21
Symbol 23 BitmapUsed by:25
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:23 24Used by:Timeline
Symbol 26 FontUsed by:27
Symbol 27 EditableTextUses:26Used by:Timeline
Symbol 28 GraphicUsed by:29
Symbol 29 ButtonUses:28Used by:Timeline
Symbol 30 GraphicUsed by:Timeline
Symbol 31 VideoUsed by:Timeline
Symbol 32 GraphicUsed by:33
Symbol 33 MovieClipUses:32Used by:Timeline
Symbol 34 MovieClip [__Packages.com.D3.NLPBot.Main]
Symbol 35 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 36 MovieClip [__Packages.com.D3.NLPBot.LexiconManager]
Symbol 37 MovieClip [__Packages.com.D3.utils.XMLHandler]
Symbol 38 MovieClip [__Packages.com.D3.NLPBot.ActionCollection]
Symbol 39 MovieClip [__Packages.com.D3.NLPBot.Search]
Symbol 40 MovieClip [__Packages.com.D3.NLPBot.Memory]

Instance Names

"original"Frame 1Symbol 27 EditableText
"vTammy"Frame 1Symbol 31 Video
"jpgHolder"Frame 1Symbol 33 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 9 as "text4"
ExportAssets (56)Timeline Frame 1Symbol 13 as "text3"
ExportAssets (56)Timeline Frame 1Symbol 17 as "text2"
ExportAssets (56)Timeline Frame 1Symbol 22 as "text1"
ExportAssets (56)Timeline Frame 1Symbol 34 as "__Packages.com.D3.NLPBot.Main"
ExportAssets (56)Timeline Frame 1Symbol 35 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 36 as "__Packages.com.D3.NLPBot.LexiconManager"
ExportAssets (56)Timeline Frame 1Symbol 37 as "__Packages.com.D3.utils.XMLHandler"
ExportAssets (56)Timeline Frame 1Symbol 38 as "__Packages.com.D3.NLPBot.ActionCollection"
ExportAssets (56)Timeline Frame 1Symbol 39 as "__Packages.com.D3.NLPBot.Search"
ExportAssets (56)Timeline Frame 1Symbol 40 as "__Packages.com.D3.NLPBot.Memory"




http://swfchan.com/43/211307/info.shtml
Created: 8/10 -2018 00:59:07 Last modified: 8/10 -2018 00:59:07 Server time: 14/11 -2024 23:40:54