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

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

Tetravex.swf

This is the info page for
Flash #23854

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


Text
HELP

Drag the tiles into the grid
area so that any two adjacent
numbers are the same.

TETRAVEX

NEW
GAME

CLEAR
GRID

TETRAVEX

by www.anthony.ca

0

0

0

0

YOU WIN!

PLAY
AGAIN

ActionScript [AS1/AS2]

Frame 1
var current_cell = 0; var current_vex = 0; var myVEX; var INITIALIZE_GAME = 0; var ORIGSET = 0; var ORDER; var mySOLUTION; var xVEXPOS; var yVEXPOS; _level0.highest = "8"; stop();
Instance of Symbol 39 MovieClip "VEX0" in Frame 1
/* no clip actions */
Frame 2
stop();
Symbol 4 Button
on (press) { _root.HELP_MOVIE.gotoAndPlay(2); } on (release, releaseOutside) { _root.HELP_MOVIE.gotoAndPlay(1); }
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 12 Button
on (press) { _root.INITIALIZE_GAME = 0; }
Symbol 14 Button
on (press) { _root.mySOLUTION = new Array(99, 99, 99, 99, 99, 99, 99, 99, 99); i = 0; while (i < 9) { _root["VEX" + i]._x = _root.xVEXPOS[i]; _root["VEX" + i]._y = _root.yVEXPOS[i]; i++; } }
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 1
function detCURRCELL(VEXNUM) { XPOSVEX = getProperty(eval ("_root.VEX" + VEXNUM), _x) + (getProperty(eval ("_root.VEX" + VEXNUM), _width) / 2); YPOSVEX = getProperty(eval ("_root.VEX" + VEXNUM), _y) + (getProperty(eval ("_root.VEX" + VEXNUM), _height) / 2); CELLWIDTH = getProperty(_root.CELL1, _width); XPOSCELL1 = getProperty(_root.CELL1, _x); YPOSCELL1 = getProperty(_root.CELL1, _y); XPOSCELL2 = getProperty(_root.CELL2, _x); YPOSCELL2 = getProperty(_root.CELL2, _y); XPOSCELL3 = getProperty(_root.CELL3, _x); YPOSCELL3 = getProperty(_root.CELL3, _y); XPOSCELL4 = getProperty(_root.CELL4, _x); YPOSCELL4 = getProperty(_root.CELL4, _y); XPOSCELL5 = getProperty(_root.CELL5, _x); YPOSCELL5 = getProperty(_root.CELL5, _y); XPOSCELL6 = getProperty(_root.CELL6, _x); YPOSCELL6 = getProperty(_root.CELL6, _y); XPOSCELL7 = getProperty(_root.CELL7, _x); YPOSCELL7 = getProperty(_root.CELL7, _y); XPOSCELL8 = getProperty(_root.CELL8, _x); YPOSCELL8 = getProperty(_root.CELL8, _y); XPOSCELL9 = getProperty(_root.CELL9, _x); YPOSCELL9 = getProperty(_root.CELL9, _y); if (((XPOSCELL1 < XPOSVEX) && (XPOSVEX < (XPOSCELL1 + CELLWIDTH))) && ((YPOSCELL1 < YPOSVEX) && (YPOSVEX < (YPOSCELL1 + CELLWIDTH)))) { current_cell = 1; } else if (((XPOSCELL2 < XPOSVEX) && (XPOSVEX < (XPOSCELL2 + CELLWIDTH))) && ((YPOSCELL2 < YPOSVEX) && (YPOSVEX < (YPOSCELL2 + CELLWIDTH)))) { current_cell = 2; } else if (((XPOSCELL3 < XPOSVEX) && (XPOSVEX < (XPOSCELL3 + CELLWIDTH))) && ((YPOSCELL3 < YPOSVEX) && (YPOSVEX < (YPOSCELL3 + CELLWIDTH)))) { current_cell = 3; } else if (((XPOSCELL4 < XPOSVEX) && (XPOSVEX < (XPOSCELL4 + CELLWIDTH))) && ((YPOSCELL4 < YPOSVEX) && (YPOSVEX < (YPOSCELL4 + CELLWIDTH)))) { current_cell = 4; } else if (((XPOSCELL5 < XPOSVEX) && (XPOSVEX < (XPOSCELL5 + CELLWIDTH))) && ((YPOSCELL5 < YPOSVEX) && (YPOSVEX < (YPOSCELL5 + CELLWIDTH)))) { current_cell = 5; } else if (((XPOSCELL6 < XPOSVEX) && (XPOSVEX < (XPOSCELL6 + CELLWIDTH))) && ((YPOSCELL6 < YPOSVEX) && (YPOSVEX < (YPOSCELL6 + CELLWIDTH)))) { current_cell = 6; } else if (((XPOSCELL7 < XPOSVEX) && (XPOSVEX < (XPOSCELL7 + CELLWIDTH))) && ((YPOSCELL7 < YPOSVEX) && (YPOSVEX < (YPOSCELL7 + CELLWIDTH)))) { current_cell = 7; } else if (((XPOSCELL8 < XPOSVEX) && (XPOSVEX < (XPOSCELL8 + CELLWIDTH))) && ((YPOSCELL8 < YPOSVEX) && (YPOSVEX < (YPOSCELL8 + CELLWIDTH)))) { current_cell = 8; } else if (((XPOSCELL9 < XPOSVEX) && (XPOSVEX < (XPOSCELL9 + CELLWIDTH))) && ((YPOSCELL9 < YPOSVEX) && (YPOSVEX < (YPOSCELL9 + CELLWIDTH)))) { current_cell = 9; } else { current_cell = 99; } return(current_cell); }
Symbol 22 Button
on (release) { getURL ("http://www.anthony.ca", "_blank"); }
Symbol 32 Button
on (press) { this.swapDepths("_level0:VEX" + _level0:highest); Set("_level0:highest", substring(_name, 4, 1)); _root.current_vex = _name; _root.myVEX = Number(substring(_name, 4, 1)); CURRCELL = _root.DCELL.detCURRCELL(_root.myVEX); if (CURRCELL != 99) { _root.mySOLUTION[CURRCELL - 1] = 99; } startDrag (this); } on (release) { var CURRVEXNUM = Number(substring(_name, 4, 1)); if ((_root.mySOLUTION[_root.current_cell - 1] == 99) && (_root.CSOL.checkMatch(CURRVEXNUM) == 1)) { this._x = _root["CELL" + _root.current_cell]._x; this._y = _root["CELL" + _root.current_cell]._y; _root.mySOLUTION[_root.current_cell - 1] = CURRVEXNUM; } else { this._x = _root.xVEXPOS[CURRVEXNUM]; this._y = _root.yVEXPOS[CURRVEXNUM]; } _root.current_vex = 0; stopDrag(); }
Symbol 40 MovieClip Frame 1
XPOSVEX = getProperty(eval ("_root." + _root.current_vex), _x) + (getProperty(eval ("_root." + _root.current_vex), _width) / 2); YPOSVEX = getProperty(eval ("_root." + _root.current_vex), _y) + (getProperty(eval ("_root." + _root.current_vex), _height) / 2); CELLWIDTH = getProperty(_root.CELL1, _width); XPOSCELL1 = getProperty(_root.CELL1, _x); YPOSCELL1 = getProperty(_root.CELL1, _y); XPOSCELL2 = getProperty(_root.CELL2, _x); YPOSCELL2 = getProperty(_root.CELL2, _y); XPOSCELL3 = getProperty(_root.CELL3, _x); YPOSCELL3 = getProperty(_root.CELL3, _y); XPOSCELL4 = getProperty(_root.CELL4, _x); YPOSCELL4 = getProperty(_root.CELL4, _y); XPOSCELL5 = getProperty(_root.CELL5, _x); YPOSCELL5 = getProperty(_root.CELL5, _y); XPOSCELL6 = getProperty(_root.CELL6, _x); YPOSCELL6 = getProperty(_root.CELL6, _y); XPOSCELL7 = getProperty(_root.CELL7, _x); YPOSCELL7 = getProperty(_root.CELL7, _y); XPOSCELL8 = getProperty(_root.CELL8, _x); YPOSCELL8 = getProperty(_root.CELL8, _y); XPOSCELL9 = getProperty(_root.CELL9, _x); YPOSCELL9 = getProperty(_root.CELL9, _y); if (((XPOSCELL1 < XPOSVEX) && (XPOSVEX < (XPOSCELL1 + CELLWIDTH))) && ((YPOSCELL1 < YPOSVEX) && (YPOSVEX < (YPOSCELL1 + CELLWIDTH)))) { _root.current_cell = 1; _root.CELL1.gotoAndStop(2); } else if (((XPOSCELL2 < XPOSVEX) && (XPOSVEX < (XPOSCELL2 + CELLWIDTH))) && ((YPOSCELL2 < YPOSVEX) && (YPOSVEX < (YPOSCELL2 + CELLWIDTH)))) { _root.current_cell = 2; _root.CELL2.gotoAndStop(2); } else if (((XPOSCELL3 < XPOSVEX) && (XPOSVEX < (XPOSCELL3 + CELLWIDTH))) && ((YPOSCELL3 < YPOSVEX) && (YPOSVEX < (YPOSCELL3 + CELLWIDTH)))) { _root.current_cell = 3; _root.CELL3.gotoAndStop(2); } else if (((XPOSCELL4 < XPOSVEX) && (XPOSVEX < (XPOSCELL4 + CELLWIDTH))) && ((YPOSCELL4 < YPOSVEX) && (YPOSVEX < (YPOSCELL4 + CELLWIDTH)))) { _root.current_cell = 4; _root.CELL4.gotoAndStop(2); } else if (((XPOSCELL5 < XPOSVEX) && (XPOSVEX < (XPOSCELL5 + CELLWIDTH))) && ((YPOSCELL5 < YPOSVEX) && (YPOSVEX < (YPOSCELL5 + CELLWIDTH)))) { _root.current_cell = 5; _root.CELL5.gotoAndStop(2); } else if (((XPOSCELL6 < XPOSVEX) && (XPOSVEX < (XPOSCELL6 + CELLWIDTH))) && ((YPOSCELL6 < YPOSVEX) && (YPOSVEX < (YPOSCELL6 + CELLWIDTH)))) { _root.current_cell = 6; _root.CELL6.gotoAndStop(2); } else if (((XPOSCELL7 < XPOSVEX) && (XPOSVEX < (XPOSCELL7 + CELLWIDTH))) && ((YPOSCELL7 < YPOSVEX) && (YPOSVEX < (YPOSCELL7 + CELLWIDTH)))) { _root.current_cell = 7; _root.CELL7.gotoAndStop(2); } else if (((XPOSCELL8 < XPOSVEX) && (XPOSVEX < (XPOSCELL8 + CELLWIDTH))) && ((YPOSCELL8 < YPOSVEX) && (YPOSVEX < (YPOSCELL8 + CELLWIDTH)))) { _root.current_cell = 8; _root.CELL8.gotoAndStop(2); } else if (((XPOSCELL9 < XPOSVEX) && (XPOSVEX < (XPOSCELL9 + CELLWIDTH))) && ((YPOSCELL9 < YPOSVEX) && (YPOSVEX < (YPOSCELL9 + CELLWIDTH)))) { _root.current_cell = 9; _root.CELL9.gotoAndStop(2); } else { _root.current_cell = 99; } i = 0; while (i < 10) { if (_root.current_cell != i) { _root["CELL" + i].gotoAndStop(1); } i++; }
Symbol 41 MovieClip Frame 1
var posArray = new Array(); var vPOS = new Array(); if (_root.INITIALIZE_GAME == 0) { if (_root.ORIGSET == 0) { _root.xVEXPOS = new Array(9); _root.yVEXPOS = new Array(9); i = 0; while (i < 9) { _root.xVEXPOS[i] = _root["VEX" + i]._x; _root.yVEXPOS[i] = _root["VEX" + i]._y; i++; } _root.ORIGSET = 1; } else { i = 0; while (i < 9) { _root["VEX" + i]._x = _root.xVEXPOS[i]; _root["VEX" + i]._y = _root.yVEXPOS[i]; i++; } } i = 0; while (i < 9) { _root["VEX" + i].LEFT_NUMBER = 1 + random(9); _root["VEX" + i].RIGHT_NUMBER = 1 + random(9); _root["VEX" + i].TOP_NUMBER = 1 + random(9); _root["VEX" + i].BOTTOM_NUMBER = 1 + random(9); posArray[i] = ((1 + random(9)) + "p") + i; i++; } posArray.sort(); i = 0; while (i < 9) { vPOS[i] = substring(posArray[i], 3, 1); i++; } _root.ORDER = vPOS; _root.mySOLUTION = new Array(99, 99, 99, 99, 99, 99, 99, 99, 99); _root["VEX" + vPOS[4]].LEFT_NUMBER = _root["VEX" + vPOS[3]].RIGHT_NUMBER; _root["VEX" + vPOS[4]].RIGHT_NUMBER = _root["VEX" + vPOS[5]].LEFT_NUMBER; _root["VEX" + vPOS[4]].TOP_NUMBER = _root["VEX" + vPOS[1]].BOTTOM_NUMBER; _root["VEX" + vPOS[4]].BOTTOM_NUMBER = _root["VEX" + vPOS[7]].TOP_NUMBER; _root["VEX" + vPOS[0]].RIGHT_NUMBER = _root["VEX" + vPOS[1]].LEFT_NUMBER; _root["VEX" + vPOS[0]].BOTTOM_NUMBER = _root["VEX" + vPOS[3]].TOP_NUMBER; _root["VEX" + vPOS[1]].RIGHT_NUMBER = _root["VEX" + vPOS[2]].LEFT_NUMBER; _root["VEX" + vPOS[2]].BOTTOM_NUMBER = _root["VEX" + vPOS[5]].TOP_NUMBER; _root["VEX" + vPOS[5]].BOTTOM_NUMBER = _root["VEX" + vPOS[8]].TOP_NUMBER; _root["VEX" + vPOS[8]].LEFT_NUMBER = _root["VEX" + vPOS[7]].RIGHT_NUMBER; _root["VEX" + vPOS[7]].LEFT_NUMBER = _root["VEX" + vPOS[6]].RIGHT_NUMBER; _root["VEX" + vPOS[6]].TOP_NUMBER = _root["VEX" + vPOS[3]].BOTTOM_NUMBER; _root.INITIALIZE_GAME = 1; }
Symbol 42 MovieClip Frame 1
function checkMatch(vNUM) { var PASS = 0; var NOT_MATCHED = 0; var CELL_NUM = (_root.current_cell - 1); if (((CELL_NUM - 3) >= 0) && (_root.mySOLUTION[CELL_NUM - 3] != 99)) { if (_root["VEX" + vNUM].TOP_NUMBER != _root["VEX" + _root.mySOLUTION[CELL_NUM - 3]].BOTTOM_NUMBER) { NOT_MATCHED = NOT_MATCHED + 1; } } if ((8 >= (CELL_NUM + 3)) && (_root.mySOLUTION[CELL_NUM + 3] != 99)) { if (_root["VEX" + vNUM].BOTTOM_NUMBER != _root["VEX" + _root.mySOLUTION[CELL_NUM + 3]].TOP_NUMBER) { NOT_MATCHED = NOT_MATCHED + 1; } } if (((CELL_NUM % 3) != 0) && (_root.mySOLUTION[CELL_NUM - 1] != 99)) { if (_root["VEX" + vNUM].LEFT_NUMBER != _root["VEX" + _root.mySOLUTION[CELL_NUM - 1]].RIGHT_NUMBER) { NOT_MATCHED = NOT_MATCHED + 1; } } if (((CELL_NUM % 3) != 2) && (_root.mySOLUTION[CELL_NUM + 1] != 99)) { if (_root["VEX" + vNUM].RIGHT_NUMBER != _root["VEX" + _root.mySOLUTION[CELL_NUM + 1]].LEFT_NUMBER) { NOT_MATCHED = NOT_MATCHED + 1; } } if (NOT_MATCHED == 0) { PASS = 1; } return(PASS); }
Symbol 43 MovieClip Frame 1
WIN = 1; i = 0; while (i < 10) { if (_root.mySOLUTION[i] == 99) { WIN = 0; } i++; } if (WIN == 1) { _root.play(); gotoAndPlay (1); }
Symbol 46 Button
on (release) { gotoAndPlay (1); }

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 FontUsed by:3 13 15 47
Symbol 3 TextUses:2Used by:4
Symbol 4 ButtonUses:1 3Used by:Timeline
Symbol 5 FontUsed by:6 21
Symbol 6 TextUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:Timeline
Symbol 8 FontUsed by:9 17
Symbol 9 EditableTextUses:8Used by:Timeline
Symbol 10 GraphicUsed by:12 14 46
Symbol 11 GraphicUsed by:12 14 19 46
Symbol 12 ButtonUses:10 11Used by:16
Symbol 13 TextUses:2Used by:16
Symbol 14 ButtonUses:10 11Used by:16
Symbol 15 TextUses:2Used by:16
Symbol 16 MovieClipUses:12 13 14 15Used by:Timeline
Symbol 17 EditableTextUses:8Used by:Timeline
Symbol 18 GraphicUsed by:19
Symbol 19 MovieClipUses:11 18Used by:Timeline
Symbol 20 MovieClipUsed by:Timeline
Symbol 21 EditableTextUses:5Used by:22
Symbol 22 ButtonUses:21Used by:Timeline
Symbol 23 GraphicUsed by:29 32
Symbol 24 GraphicUsed by:25 32
Symbol 25 MovieClipUses:24Used by:28
Symbol 26 GraphicUsed by:27 32
Symbol 27 MovieClipUses:26Used by:28
Symbol 28 MovieClipUses:25 27Used by:29
Symbol 29 MovieClipUses:23 28Used by:32
Symbol 30 GraphicUsed by:31 32
Symbol 31 MovieClipUses:30Used by:32
Symbol 32 ButtonUses:29 31 30 23 24 26Used by:38 39
Symbol 33 FontUsed by:34 35 36 37
Symbol 34 EditableTextUses:33Used by:38 39
Symbol 35 EditableTextUses:33Used by:38 39
Symbol 36 EditableTextUses:33Used by:38 39
Symbol 37 EditableTextUses:33Used by:38 39
Symbol 38 MovieClipUses:32 34 35 36 37Used by:Timeline
Symbol 39 MovieClipUses:32 34 35 36 37Used by:Timeline
Symbol 40 MovieClipUsed by:Timeline
Symbol 41 MovieClipUsed by:Timeline
Symbol 42 MovieClipUsed by:Timeline
Symbol 43 MovieClipUsed by:Timeline
Symbol 44 FontUsed by:45
Symbol 45 EditableTextUses:44Used by:Timeline
Symbol 46 ButtonUses:10 11Used by:48
Symbol 47 TextUses:2Used by:48
Symbol 48 ButtonUses:46 47Used by:Timeline

Instance Names

"HELP_MOVIE"Frame 1Symbol 7 MovieClip
"CELL1"Frame 1Symbol 19 MovieClip
"CELL2"Frame 1Symbol 19 MovieClip
"CELL3"Frame 1Symbol 19 MovieClip
"CELL4"Frame 1Symbol 19 MovieClip
"CELL5"Frame 1Symbol 19 MovieClip
"CELL6"Frame 1Symbol 19 MovieClip
"CELL7"Frame 1Symbol 19 MovieClip
"CELL8"Frame 1Symbol 19 MovieClip
"CELL9"Frame 1Symbol 19 MovieClip
"DCELL"Frame 1Symbol 20 MovieClip
"VEX3"Frame 1Symbol 38 MovieClip
"VEX1"Frame 1Symbol 38 MovieClip
"VEX2"Frame 1Symbol 38 MovieClip
"VEX0"Frame 1Symbol 39 MovieClip
"VEX4"Frame 1Symbol 38 MovieClip
"VEX5"Frame 1Symbol 38 MovieClip
"VEX6"Frame 1Symbol 38 MovieClip
"VEX7"Frame 1Symbol 38 MovieClip
"VEX8"Frame 1Symbol 38 MovieClip
"CSOL"Frame 1Symbol 42 MovieClip

Dynamic Text Variables

TextField27Symbol 9 EditableText"TETRAVEX"
TextField27Symbol 17 EditableText"TETRAVEX"
TextField29Symbol 21 EditableText"by www.anthony.ca"
TOP_NUMBERSymbol 34 EditableText"0"
BOTTOM_NUMBERSymbol 35 EditableText"0"
LEFT_NUMBERSymbol 36 EditableText"0"
RIGHT_NUMBERSymbol 37 EditableText"0"
TextField36Symbol 45 EditableText"YOU WIN!"




http://swfchan.com/5/23854/info.shtml
Created: 25/5 -2019 20:53:30 Last modified: 25/5 -2019 20:53:30 Server time: 05/11 -2024 08:35:57