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

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

WordSearch.swf

This is the info page for
Flash #254590

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


Text
PLAY
AGAIN

PLAY
AGAIN

N

I

A

G

Y

L

P

Pauly's Playhouse.com - All Rights Reserved - Paul Limmer Copyright 2008

Loading...

Loading...

o

t

e

m

c

l

W

Welcome to

Begin

Begin

Begin

PLAY

PLAY

PLAY

Search for the words listed on the right.
To select a word, cLick on the first letter
of the word, hold down and drag to the last
letter of the word and release.
Words can appear vertically, horizontally
diagonally and backwards!

Search for the words listed on the right.
To select a word, cLick on the first letter
of the word, hold down and drag to the last
letter of the word and release.
Words can appear vertically, horizontally
diagonally and backwards!

Instructions:

Instructions:

GAME OVER

GAME OVER

ActionScript [AS3]

Section 1
//BasicButton (BasicButton) package { import flash.display.*; public dynamic class BasicButton extends SimpleButton { } }//package
Section 2
//Sound1 (Sound1) package { import flash.media.*; public dynamic class Sound1 extends Sound { } }//package
Section 3
//WordSearch (WordSearch) package { import flash.events.*; import flash.geom.*; import flash.display.*; import flash.media.*; import flash.text.*; public class WordSearch extends MovieClip { public var progressText:TextField; private var usedWords:Array; private var dragMode:String; public var startButton:SimpleButton; private var letterSprites:Sprite; private var gameSprite:Sprite; public var beginButton:SimpleButton; private var startPoint; private var endPoint:Point; public var progressText1:TextField; private var grid:Array; private var outlineSprite:Sprite; private var numFound:int; private var wordsSprite:Sprite; private var wordList:Array; var theSound1:Sound1; public var playAgainButton:BasicButton; private var oldOutlineSprite:Sprite; static const outlineSize:Number = 28; static const letterFormat:TextFormat = new TextFormat("Yikes!", 31, 0xFF00, true, false, false, null, null, TextFormatAlign.CENTER); static const spacing:Number = 31; static const offset:Point = new Point(27, 21); static const puzzleSize:uint = 15; public function WordSearch(){ theSound1 = new Sound1(); super(); addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5); } public function clickPlayAgain(_arg1:MouseEvent){ cleanUp(); gotoAndStop("play"); SoundMixer.stopAll(); } public function clickBegin(_arg1:MouseEvent){ gotoAndStop("intro"); } public function placeLetters():Array{ var _local1:Array; var _local2:int; var _local3:Array; var _local4:int; var _local5:int; var _local6:int; var _local7:String; var _local8:int; var _local9:int; var _local10:int; var _local11:String; _local1 = new Array(); _local2 = 0; while (_local2 < puzzleSize) { _local1[_local2] = new Array(); _local5 = 0; while (_local5 < puzzleSize) { _local1[_local2][_local5] = "*"; _local5++; }; _local2++; }; _local3 = wordList.concat(); usedWords = new Array(); _local4 = 1000; while (_local3.length > 0) { var _temp1 = _local4; _local4 = (_local4 - 1); if (_temp1 <= 0){ break; }; _local6 = Math.floor((Math.random() * _local3.length)); _local7 = _local3[_local6].toUpperCase(); _local2 = Math.floor((Math.random() * puzzleSize)); _local5 = Math.floor((Math.random() * puzzleSize)); _local8 = (Math.floor((Math.random() * 3)) - 1); _local9 = (Math.floor((Math.random() * 3)) - 1); if ((((_local8 == 0)) && ((_local9 == 0)))){ } else { _local10 = 0; while (_local10 < _local7.length) { if (((((((((_local2 + (_local8 * _local10)) < 0)) || (((_local5 + (_local9 * _local10)) < 0)))) || (((_local2 + (_local8 * _local10)) >= puzzleSize)))) || (((_local5 + (_local9 * _local10)) >= puzzleSize)))){ //unresolved jump }; _local11 = _local1[(_local2 + (_local8 * _local10))][(_local5 + (_local9 * _local10))]; if (((!((_local11 == "*"))) && (!((_local11 == _local7.charAt(_local10)))))){ //unresolved jump }; _local10++; }; _local10 = 0; while (_local10 < _local7.length) { _local1[(_local2 + (_local8 * _local10))][(_local5 + (_local9 * _local10))] = _local7.charAt(_local10); _local10++; }; _local3.splice(_local6, 1); usedWords.push(_local7); }; }; _local2 = 0; while (_local2 < puzzleSize) { _local5 = 0; while (_local5 < puzzleSize) { if (_local1[_local2][_local5] == "*"){ _local1[_local2][_local5] = String.fromCharCode((65 + Math.floor((Math.random() * 26)))); }; _local5++; }; _local2++; }; return (_local1); } public function overLetter(_arg1:MouseEvent){ if (dragMode == "drag"){ endPoint = findGridPoint(_arg1.currentTarget); outlineSprite.graphics.clear(); if (isValidRange(startPoint, endPoint)){ drawOutline(outlineSprite, startPoint, endPoint, 0xFF00FF); }; }; } public function findGridPoint(_arg1:Object):Point{ var _local2:int; var _local3:int; _local2 = 0; while (_local2 < puzzleSize) { _local3 = 0; while (_local3 < puzzleSize) { if (grid[_local2][_local3] == _arg1){ return (new Point(_local2, _local3)); }; _local3++; }; _local2++; }; return (null); } public function checkWord(_arg1:String){ var _local2:int; var _local3:String; _local2 = 0; while (_local2 < usedWords.length) { if (_arg1 == usedWords[_local2].toUpperCase()){ foundWord(_arg1); }; _local3 = _arg1.split("").reverse().join(""); if (_local3 == usedWords[_local2].toUpperCase()){ foundWord(_local3); }; _local2++; }; } public function loadProgress(_arg1:Event){ var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local2 = this.root.loaderInfo.bytesLoaded; _local3 = this.root.loaderInfo.bytesTotal; _local4 = (_local2 / 0x0400); _local5 = (_local3 / 0x0400); progressText.text = (((("Loading: " + _local4) + "K/") + _local5) + "K"); progressText1.text = (((("Loading: " + _local4) + "K/") + _local5) + "K"); if (_local2 >= _local3){ removeEventListener(Event.ENTER_FRAME, loadProgress); gotoAndStop(2); }; } public function startWordSearch(){ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; var _local5:TextField; var _local6:Sprite; var _local7:TextField; wordList = "Red,Blue,Green,Yellow,Pink,Orange,Brown,Purple,Violet,Black,White,Gold,Mauve,Jade,Peach".split(","); gameSprite = new Sprite(); addChild(gameSprite); oldOutlineSprite = new Sprite(); gameSprite.addChild(oldOutlineSprite); outlineSprite = new Sprite(); gameSprite.addChild(outlineSprite); letterSprites = new Sprite(); gameSprite.addChild(letterSprites); wordsSprite = new Sprite(); gameSprite.addChild(wordsSprite); _local1 = placeLetters(); grid = new Array(); _local2 = 0; while (_local2 < puzzleSize) { grid[_local2] = new Array(); _local4 = 0; while (_local4 < puzzleSize) { _local5 = new TextField(); _local5.defaultTextFormat = letterFormat; _local5.x = ((_local2 * spacing) + offset.x); _local5.y = ((_local4 * spacing) + offset.y); _local5.width = spacing; _local5.height = spacing; _local5.text = _local1[_local2][_local4]; _local5.selectable = false; _local6 = new Sprite(); _local6.addChild(_local5); letterSprites.addChild(_local6); grid[_local2][_local4] = _local6; _local6.addEventListener(MouseEvent.MOUSE_DOWN, clickLetter); _local6.addEventListener(MouseEvent.MOUSE_OVER, overLetter); _local4++; }; _local2++; }; stage.addEventListener(MouseEvent.MOUSE_UP, mouseRelease); _local3 = 0; while (_local3 < usedWords.length) { _local7 = new TextField(); _local7.defaultTextFormat = letterFormat; _local7.x = 532; _local7.y = ((_local3 * spacing) + offset.y); _local7.width = 140; _local7.height = spacing; _local7.text = usedWords[_local3]; _local7.selectable = false; wordsSprite.addChild(_local7); _local3++; }; dragMode = "none"; numFound = 0; } public function isValidRange(_arg1, _arg2:Point):Boolean{ if (_arg1.x == _arg2.x){ return (true); }; if (_arg1.y == _arg2.y){ return (true); }; if (Math.abs((_arg2.x - _arg1.x)) == Math.abs((_arg2.y - _arg1.y))){ return (true); }; return (false); } public function drawOutline(_arg1:Sprite, _arg2, _arg3:Point, _arg4:Number){ var _local5:Point; _local5 = new Point((offset.x + (spacing / 2)), (offset.y + (spacing / 2))); _arg1.graphics.lineStyle(outlineSize, _arg4); _arg1.graphics.moveTo(((_arg2.x * spacing) + _local5.x), ((_arg2.y * spacing) + _local5.y)); _arg1.graphics.lineTo(((_arg3.x * spacing) + _local5.x), ((_arg3.y * spacing) + _local5.y)); } public function endGame(){ gotoAndStop("gameover"); } function frame1(){ stop(); addEventListener(Event.ENTER_FRAME, loadProgress); } function frame5(){ playAgainButton.addEventListener(MouseEvent.CLICK, clickPlayAgain); } function frame3(){ stop(); startButton.addEventListener(MouseEvent.CLICK, clickStart); } public function mouseRelease(_arg1:MouseEvent){ var _local2:*; if (dragMode == "drag"){ dragMode = "none"; outlineSprite.graphics.clear(); if (isValidRange(startPoint, endPoint)){ _local2 = getSelectedWord(); checkWord(_local2); }; }; } public function foundWord(_arg1:String){ var _local2:int; drawOutline(oldOutlineSprite, startPoint, endPoint, 0xFF00FF); playSound(theSound1); _local2 = 0; while (_local2 < wordsSprite.numChildren) { if (TextField(wordsSprite.getChildAt(_local2)).text.toUpperCase() == _arg1){ TextField(wordsSprite.getChildAt(_local2)).textColor = 0xFF00FF; }; _local2++; }; numFound++; if (numFound == usedWords.length){ endGame(); }; } function frame4(){ startWordSearch(); } public function clickStart(_arg1:MouseEvent){ gotoAndStop("play"); } public function getSelectedWord():String{ var _local1:*; var _local2:*; var _local3:Number; var _local4:String; var _local5:int; var _local6:*; var _local7:*; _local1 = (endPoint.x - startPoint.x); _local2 = (endPoint.y - startPoint.y); _local3 = (Math.max(Math.abs(_local1), Math.abs(_local2)) + 1); _local4 = ""; _local5 = 0; while (_local5 < _local3) { _local6 = startPoint.x; if (_local1 < 0){ _local6 = (_local6 - _local5); }; if (_local1 > 0){ _local6 = (_local6 + _local5); }; _local7 = startPoint.y; if (_local2 < 0){ _local7 = (_local7 - _local5); }; if (_local2 > 0){ _local7 = (_local7 + _local5); }; _local4 = (_local4 + grid[_local6][_local7].getChildAt(0).text); _local5++; }; return (_local4); } public function playSound(_arg1:Object){ var _local2:SoundChannel; _local2 = _arg1.play(); } public function clickLetter(_arg1:MouseEvent){ var _local2:String; _local2 = _arg1.currentTarget.getChildAt(0).text; startPoint = findGridPoint(_arg1.currentTarget); dragMode = "drag"; } public function cleanUp(){ removeChild(gameSprite); gameSprite = null; grid = null; } function frame2(){ stop(); beginButton.addEventListener(MouseEvent.CLICK, clickBegin); } } }//package

Library Items

Symbol 1 Sound {Sound1}
Symbol 2 GraphicUsed by:18
Symbol 3 FontUsed by:4 5 8 9 10 11 12 13 14 19 39 40 42 46 47 49
Symbol 4 TextUses:3Used by:18
Symbol 5 TextUses:3Used by:18
Symbol 6 GraphicUsed by:18
Symbol 7 GraphicUsed by:18
Symbol 8 TextUses:3Used by:18
Symbol 9 TextUses:3Used by:18
Symbol 10 TextUses:3Used by:18
Symbol 11 TextUses:3Used by:18
Symbol 12 TextUses:3Used by:18
Symbol 13 TextUses:3Used by:18
Symbol 14 TextUses:3Used by:18
Symbol 15 GraphicUsed by:18
Symbol 16 GraphicUsed by:18
Symbol 17 SoundUsed by:18 44 52
Symbol 18 Button {BasicButton}Uses:2 4 5 6 7 8 9 10 11 12 13 14 15 16 17Used by:Timeline
Symbol 19 TextUses:3Used by:Timeline
Symbol 20 GraphicUsed by:Timeline
Symbol 21 FontUsed by:22 23
Symbol 22 EditableTextUses:21Used by:Timeline
Symbol 23 EditableTextUses:21Used by:Timeline
Symbol 24 GraphicUsed by:Timeline
Symbol 25 GraphicUsed by:28
Symbol 26 GraphicUsed by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClipUses:25 26 27Used by:Timeline
Symbol 29 FontUsed by:30 31 32 33 34 35 36 37 53 54 55 56 60 61
Symbol 30 TextUses:29Used by:Timeline
Symbol 31 TextUses:29Used by:Timeline
Symbol 32 TextUses:29Used by:Timeline
Symbol 33 TextUses:29Used by:Timeline
Symbol 34 TextUses:29Used by:Timeline
Symbol 35 TextUses:29Used by:Timeline
Symbol 36 TextUses:29Used by:Timeline
Symbol 37 TextUses:29Used by:Timeline
Symbol 38 GraphicUsed by:44
Symbol 39 TextUses:3Used by:44
Symbol 40 TextUses:3Used by:44
Symbol 41 GraphicUsed by:44
Symbol 42 TextUses:3Used by:44
Symbol 43 GraphicUsed by:44
Symbol 44 ButtonUses:38 39 40 41 42 43 17Used by:Timeline
Symbol 45 GraphicUsed by:52
Symbol 46 TextUses:3Used by:52
Symbol 47 TextUses:3Used by:52
Symbol 48 GraphicUsed by:52
Symbol 49 TextUses:3Used by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:45 46 47 48 49 50 51 17Used by:Timeline
Symbol 53 TextUses:29Used by:Timeline
Symbol 54 TextUses:29Used by:Timeline
Symbol 55 TextUses:29Used by:Timeline
Symbol 56 TextUses:29Used by:Timeline
Symbol 57 GraphicUsed by:Timeline
Symbol 58 GraphicUsed by:Timeline
Symbol 59 GraphicUsed by:Timeline
Symbol 60 TextUses:29Used by:Timeline
Symbol 61 TextUses:29Used by:Timeline
Symbol 62 SoundUsed by:Timeline

Instance Names

"progressText"Frame 1Symbol 22 EditableText
"progressText1"Frame 1Symbol 23 EditableText
"beginButton"Frame 2Symbol 44 Button
"startButton"Frame 3Symbol 52 Button
"playAgainButton"Frame 5Symbol 18 Button {BasicButton}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1296 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns ..."
Protect (24)Timeline Frame 10 bytes ""

Labels

"intro"Frame 3
"play"Frame 4
"gameover"Frame 5




http://swfchan.com/51/254590/info.shtml
Created: 17/9 -2023 04:56:22 Last modified: 17/9 -2023 04:56:22 Server time: 22/12 -2024 10:37:03