Frame 3
function PreviewPicture(d) {
var nextpicture = (pv.preview._currentframe + d);
if (nextpicture <= pv.preview._totalframes) {
if (nextpicture < 1) {
nextpicture = pv.preview._totalframes;
}
} else {
nextpicture = 1;
}
pv.nextpicture = nextpicture;
pv.gotoAndPlay("change");
whichpic = nextpicture;
}
app = "clicknslide";
version = "2.01";
whichpic = 1;
Instance of Symbol 28 MovieClip "timerclip" in Frame 3
onClipEvent (enterFrame) {
if (!_parent.puzzle.solved) {
elapsed = Math.round((getTimer() - startTime) / 1000);
minutes = int(elapsed / 60);
seconds = elapsed % 60;
if (seconds < 10) {
seconds = "0" + seconds;
}
_parent.elapsed = (minutes + ":") + seconds;
}
}
onClipEvent (load) {
_visible = false;
setProperty("", _visible, false);
}
Instance of Symbol 33 MovieClip "size3" in Frame 3
onClipEvent (load) {
size = 3;
}
Instance of Symbol 33 MovieClip "size4" in Frame 3
onClipEvent (load) {
size = 4;
}
Instance of Symbol 33 MovieClip "size5" in Frame 3
onClipEvent (load) {
size = 5;
}
Instance of Symbol 33 MovieClip "size6" in Frame 3
onClipEvent (load) {
size = 6;
}
Instance of Symbol 98 MovieClip "grid" in Frame 3
onClipEvent (load) {
_visible = false;
setProperty("", _visible, false);
}
Instance of Symbol 127 MovieClip "help" in Frame 3
onClipEvent (load) {
_visible = false;
setProperty("", _visible, false);
}
Instance of Symbol 138 MovieClip "enet" in Frame 3
//component parameters
onClipEvent (initialize) {
eflashon = 1;
version = "v.2.0";
jstart = 0;
quit = 0;
screensaver = 0;
downloadlinkurl = "http://games.ncbuy.com/downloads/title_10004.html";
swfstudio = 1;
}
Instance of Symbol 236 MovieClip "sounds" in Frame 44
onClipEvent (load) {
_visible = false;
setProperty("", _visible, false);
}
Instance of Symbol 239 MovieClip "puzzle" in Frame 46
//component parameters
onClipEvent (initialize) {
slidetype = 1;
puzzlesize = 3;
}
onClipEvent (load) {
newpuzzlesize = puzzlesize;
}
Frame 50
stop();
Symbol 6 Button
on (release) {
getURL (itemUrl, "new");
}
Symbol 15 MovieClip Frame 1
_parent.stop();
Symbol 15 MovieClip Frame 61
_parent.play();
Symbol 37 Button
on (rollOver) {
gotoAndStop (3);
_parent.grid.gotoAndStop(size - 2);
_parent.grid._visible = true;
}
on (rollOut) {
_parent.grid._visible = false;
if (_parent.puzzle.newpuzzlesize == size) {
gotoAndStop (4);
} else {
gotoAndStop (2);
}
}
on (release) {
_parent.puzzle.newpuzzlesize = size;
if (_parent.puzzle.newpuzzlesize == _parent.puzzle.puzzlesize) {
_parent.playbutton.playbuttoncolor.gotoAndStop("off");
} else {
_parent.playbutton.playbuttoncolor.gotoAndStop("on");
}
_parent["size" + _parent.selected].gotoAndStop("off");
gotoAndStop (4);
}
Symbol 33 MovieClip Frame 1
info = (size + "x") + size;
if (size == _parent.puzzle.puzzlesize) {
gotoAndStop (4);
}
Symbol 33 MovieClip Frame 2
stop();
Symbol 33 MovieClip Frame 4
_parent.selected = size;
stop();
Symbol 47 Button
on (release) {
if (!checked) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 45 MovieClip Frame 1
stop();
checked = false;
_parent.puzzle.slidetype = 1;
Symbol 45 MovieClip Frame 2
checked = true;
_parent.puzzle.slidetype = 4;
Symbol 57 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 5
preview.gotoAndStop(nextpicture);
Symbol 55 MovieClip Frame 9
gotoAndStop (1);
Symbol 98 MovieClip Frame 1
stop();
Symbol 104 Button
on (release) {
PreviewPicture(1);
}
Symbol 111 Button
on (release) {
PreviewPicture(-1);
}
Symbol 112 Button
on (release) {
lastPhoto = currentPhoto;
currentPhoto = pv.preview._currentFrame;
puzzle.reset();
puzzle.puzzlesize = puzzle.newpuzzlesize;
puzzle.buildPuzzle();
puzzle.BuildArray();
puzzle.shuffle();
}
Symbol 119 Button
on (release) {
if (!help._visible) {
help._visible = true;
} else {
help._visible = false;
}
}
on (rollOver) {
puzzle.hint.gotoAndStop(_root.currentPhoto);
puzzle.hint._visible = true;
}
on (rollOut) {
puzzle.hint._visible = false;
}
Symbol 132 Button
on (release) {
_visible = false;
setProperty("", _visible, false);
}
Symbol 142 Button
on (press) {
_parent.revealAll();
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 67
stop();
_parent.startScroll();
Symbol 139 MovieClip Frame 81
stop();
Symbol 146 Button
on (release) {
enet_menu();
}
Symbol 151 Button
on (release) {
getURL ("http://www.netcent.com", "new");
}
Symbol 155 Button
on (release) {
enet_copyright();
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 10
blinkCount++;
if (blinkCount > 19) {
gotoAndStop (25);
}
Symbol 160 MovieClip Frame 23
textframe++;
if (textframe > 4) {
textframe = 1;
}
text.gotoAndStop(textframe);
gotoAndPlay (1);
Symbol 160 MovieClip Frame 25
stop();
text.gotoAndStop("menu");
Symbol 167 Button
on (release) {
getURL (downloadlinkurl, "new");
}
Symbol 183 Button
on (release) {
getURL (_parent.mainURL + url, "new");
}
Symbol 180 MovieClip Frame 1
if (bg) {
var barcolor = new Color(bgcolor);
barcolor.setRGB(bg);
}
Symbol 194 Button
on (release) {
getURL ("http://www.ncbuy.com" + qualifier, "new");
}
Symbol 202 Button
on (release) {
_parent.enet_menu();
}
Symbol 207 Button
on (release) {
getURL ("http://www.ncbuy.com/servicecenter/contacts.html", "new");
}
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
mainURL = "http://www.ncbuy.com/redir.php?ref=cli10&id=";
ncbuy1.label = "ASTROLOGY";
ncbuy1.url = 10100;
ncbuy2.label = "BUSINESS & FINANCE";
ncbuy2.url = 10101;
ncbuy3.label = "CONTESTS & SWEEPSTAKES";
ncbuy3.url = 10102;
ncbuy4.label = "CREDIT CARD OFFERS";
ncbuy4.url = 10103;
ncbuy5.label = "ENTERTAINMENT CENTER";
ncbuy5.url = 10104;
ncbuy6.label = "FLOWERS & ARRANGEMENTS";
ncbuy6.url = 10105;
ncbuy7.label = "FREE STUFF";
ncbuy7.url = 10106;
ncbuy8.label = "GAMEHOUSE - PLAY ONLINE";
ncbuy8.url = 10107;
ncbuy9.label = "HUMOR & JOKES";
ncbuy9.url = 10108;
ncbuy10.label = "MAGAZINE SUBSCRIPTIONS";
ncbuy10.url = 10109;
ncbuy11.label = "SHOPPING";
ncbuy11.url = 10110;
ncbuy12.label = "TRAVEL & VACATIONS";
ncbuy12.url = 10114;
ncbuy13.label = "TODAY IN HISTORY";
ncbuy13.url = 10111;
ncbuy14.label = "WEATHER CONDITIONS";
ncbuy14.url = 10112;
ncbuy15.label = "WEIRD & WORLD NEWS";
ncbuy15.url = 10113;
ncbuy16.label = "SEARCH THE NET";
ncbuy16.url = 10115;
ncbuy17.label = "DOWNLOAD MORE GAMES";
ncbuy17.url = 10116;
ncbuy18.label = "REGISTER - JOIN TODAY";
ncbuy18.url = 10117;
ncbuy19.label = "WEBMASTER AFFILIATE PRG";
ncbuy19.url = 10118;
ncbuy15.bg = 10092492 /* 0x99FFCC */;
ncbuy16.bg = 10092492 /* 0x99FFCC */;
ncbuy17.bg = 16763904 /* 0xFFCC00 */;
ncbuy18.bg = 16763904 /* 0xFFCC00 */;
ncbuy19.bg = 16763904 /* 0xFFCC00 */;
Symbol 214 Button
on (release) {
gotoAndStop (1);
_parent.enetstatus--;
}
Symbol 217 Button
on (press) {
if (_ymouse >= slider.top) {
if (_ymouse <= slider.btm) {
slider._y = _ymouse;
} else {
slider._y = slider.btm;
}
} else {
slider._y = slider.top;
}
}
Symbol 221 Button
on (press) {
startDrag (this, true, 0, top, 0, btm);
}
on (release) {
stopDrag();
}
Symbol 225 Button
on (press) {
movetext = -1;
}
on (release) {
movetext = 0;
}
Symbol 227 Button
on (press) {
movetext = 1;
}
on (release) {
movetext = 0;
}
Instance of Symbol 219 MovieClip "slider" in Symbol 215 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.movetext != 0) {
sliderpos = _y + ((dy / _parent._parent.text.maxscroll) * _parent.movetext);
if (sliderpos >= top) {
if (sliderpos > btm) {
sliderpos = btm;
}
} else {
sliderpos = top;
}
_y = sliderpos;
setProperty("", _y, sliderpos);
}
percent = (_y - top) / dy;
_parent._parent.text.scroll = _parent._parent.text.maxscroll * percent;
}
onClipEvent (load) {
top = -70;
btm = 70;
dy = btm - top;
inc = 4;
}
Symbol 212 MovieClip Frame 1
stop();
movetext = 0;
Symbol 138 MovieClip Frame 1
trace("enet_template");
enet_menu = function () {
if (menu._currentframe != 2) {
if (menu._currentframe == 1) {
menu.gotoAndStop("on");
clickhere.gotoAndStop("stopmenu");
}
} else {
menu.gotoAndStop("off");
}
};
enet_copyright = function () {
if (scrollwindow._currentframe != 2) {
if (scrollwindow._currentframe == 1) {
scrollwindow.text = "NCBUY END USER APPLICATION LICENSE AGREEMENT\n\nACCEPTANCE: By installing or using this Software you are agreeing to the terms of this License Agreement (\"Agreement\"). Please read this Agreement carefully.\n\nThis is an Agreement between you, either individually or as a representative of your company or institution and NetCent Communications (the \"Company\").\n\nYOU MAY redistribute the software freely, providing that: (a) The Software is not modified in any way; and (b) All credits and copyright notices remain intact.\n\nYOU MAY NOT: (a) Sublicense, sell, assign, transfer, pledge, distribute, rent or remove any proprietary notices on the Software except as expressly permitted in this Agreement; (b) Use, copy, adapt, disassemble, decompile, reverse engineer or modify the Software, in whole or in part, except as expressly permitted in this Agreement; or (c) Take any action designed to unlock or bypass any Company-implemented restrictions on usage, access to, or number of installations of the Software.\n\nIF YOU DO ANY OF THE FOREGOING, YOUR RIGHTS UNDER THIS LICENSE WILL AUTOMATICALLY TERMINATE. SUCH TERMINATION SHALL BE IN ADDITION TO AND NOT IN LIEU OF ANY CRIMINAL, CIVIL OR OTHER REMEDIES AVAILABLE TO THE COMPANY.\n\nThe Company does not warrant that the functions contained in the Software will meet your requirements or expectations or that the operation of the Software will be entirely error free, or appear precisely as described in the Software documentation.\n\nDISCLAIMER OF WARRANTY AND REMEDY: EXCEPT AS SPECIFICALLY STATED IN THIS AGREEMENT, THE SOFTWARE IS PROVIDED \"AS IS\" AND THERE ARE NO WARRANTIES OR CONDITIONS (EXPRESSED OR IMPLIED, ARISING BY STATUTE OR OTHERWISE IN LAW OR FROM A COURSE OF DEALING OR USAGE OF TRADE) FOR THE SOFTWARE. THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS WITH YOU, THE USER. THE COMPANY AND ITS DIRECT AND INDIRECT SUPPLIERS DISCLAIM ALL IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, MERCHANTABLE QUALITY OR FITNESS FOR ANY PURPOSE, PARTICULAR, SPECIFIC OR OTHERWISE.\n\nLIMITATION OF LIABILITY: TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL THE COMPANY OR ITS DIRECT OR INDIRECT SUPPLIERS BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST SAVINGS, OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES, ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF THE COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\nYOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT AND BY INSTALLING THIS SOFTWARE, INDICATE YOUR ACCEPTANCE OF ITS TERMS AND CONDITIONS. YOU ALSO AGREE THAT THIS IS THE COMPLETE AGREEMENT BETWEEN YOU AND THE COMPANY AND IT SUPERSEDES ANY OTHER INFORMATION YOU MAY HAVE RECEIVED RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT.\n\nNCBuy ( http://www.ncbuy.com/ ) is a service of NetCent Communications. Copyright 2007, NetCent Communications, All Rights Reserved.\n";
scrollwindow.gotoAndStop("on");
}
} else {
scrollwindow.gotoAndStop("off");
}
};
Instance of Symbol 160 MovieClip "clickhere" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
textframe = 1;
}
Symbol 138 MovieClip Frame 6
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 50
gotoAndStop (1);
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 9
stop();
Symbol 245 Button
on (release) {
_parent.slide(_name);
}
Symbol 246 Button
on (release) {
_parent.slide(_name);
}
Symbol 247 Button
on (release) {
_parent.slide(_name);
}
Symbol 248 Button
on (release) {
_parent.slide(_name);
}
Symbol 240 MovieClip Frame 1
stop();
name = _name;
Instance of Symbol 28 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
setProperty("", _visible, false);
}
onClipEvent (enterFrame) {
if (_parent.motion == true) {
if (_parent._x == _parent.newx) {
if (_parent._y == _parent.newy) {
_parent.motion = false;
} else {
_parent._y = _parent._y - (_parent.my * (_parent._parent.blocksize / _parent._parent.slidetype));
}
} else {
_parent._x = _parent._x - (_parent.mx * (_parent._parent.blocksize / _parent._parent.slidetype));
}
}
if (_parent.reveal == true) {
_parent._visible = true;
_parent._alpha = _parent._alpha + 10;
if (_parent._alpha >= 100) {
_parent.reveal = false;
}
}
}
Symbol 239 MovieClip Frame 1
block._visible = false;
hint._visible = false;
play();
Symbol 239 MovieClip Frame 2
function buildPuzzle() {
blockcount = 0;
var startx = 0;
var starty = 0;
blocksize = 300 / puzzlesize;
y = 0;
while (y < puzzlesize) {
x = 0;
while (x < puzzlesize) {
newname = ("block" + y) + x;
block_count++;
duplicateMovieClip ("block", newname, block_count);
this[newname]._x = startx + (blocksize * x);
this[newname]._y = starty + (blocksize * y);
this[newname].x = x;
this[newname].y = y;
this[newname].photo.gotoAndStop(_parent.pv.preview._currentframe);
this[newname].photo._x = (blocksize * x) * -1;
this[newname].photo._y = (blocksize * y) * -1;
this[newname].gotoAndStop(puzzlesize - 2);
x++;
}
y++;
}
this[newname]._alpha = 0;
this[newname]._visible = false;
blankblock = newname;
}
function checkPuzzle() {
wrong = 0;
y = 0;
while (y < puzzlesize) {
x = 0;
while (x < puzzlesize) {
if (puzzlearray[y][x] != (("block" + y) + x)) {
wrong++;
}
x++;
}
y++;
}
_parent.percentcompleted = Math.round(100 * (((puzzlesize * puzzlesize) - wrong) / (puzzlesize * puzzlesize))) + "%";
if (wrong <= 0) {
return(true);
}
return(false);
}
function reset() {
y = 0;
while (y < puzzlesize) {
x = 0;
while (x < puzzlesize) {
this[("block" + y) + x].removeMovieClip();
x++;
}
y++;
}
_parent.movecount = 0;
_parent.percentcompleted = "";
}
function slide(b) {
if (solved == true) {
return(undefined);
}
if (this[b].motion == true) {
return(undefined);
}
if (b == blankblock) {
return(undefined);
}
var cx = this[b].x;
var cy = this[b].y;
var bx = this[blankblock].x;
var by = this[blankblock].y;
if (cx != bx) {
if (cy != by) {
return(undefined);
}
if (cx <= bx) {
if (cx < bx) {
swapBlocks(-1, 0, b);
}
} else {
swapBlocks(1, 0, b);
}
} else if (cy <= by) {
if (cy < by) {
swapBlocks(0, -1, b);
}
} else {
swapBlocks(0, 1, b);
}
_parent.movecount++;
if (checkPuzzle()) {
this[blankblock].reveal = true;
solved = true;
RevealPicture();
_parent.sounds.gotoAndPlay("win");
}
}
function RevealPicture() {
y = 0;
while (y < puzzlesize) {
x = 0;
while (x < puzzlesize) {
this[("block" + y) + x].outline.gotoAndPlay("fade");
x++;
}
y++;
}
}
function swapBlocks(x, y, b) {
var bx = this[blankblock].x;
var by = this[blankblock].y;
var swapblock = puzzlearray[by + y][bx + x];
var tempx = this[blankblock]._x;
var tempy = this[blankblock]._y;
this[blankblock]._x = this[swapblock]._x;
this[blankblock]._y = this[swapblock]._y;
this[swapblock].newx = tempx;
this[swapblock].newy = tempy;
this[swapblock].x = bx;
this[swapblock].y = by;
this[swapblock].motion = true;
this[swapblock].mx = x;
this[swapblock].my = y;
this[blankblock].x = bx + x;
this[blankblock].y = by + y;
puzzlearray[by][bx] = swapblock;
puzzlearray[by + y][bx + x] = blankblock;
if (swapblock != b) {
swapBlocks(x, y, b);
}
}
function shuffle() {
shufflecomplete = false;
j = 0;
while (j <= 500) {
bx = this[blankblock].x;
by = this[blankblock].y;
do {
xory = random(2);
if (xory == 0) {
rx = bx;
ry = random(2);
if (ry != 0) {
ry = by + 1;
} else {
ry = by - 1;
}
} else {
ry = by;
rx = random(2);
if (rx == 0) {
rx = bx - 1;
} else {
rx = bx + 1;
}
}
} while ((((rx >= puzzlesize) || (rx < 0)) || (ry < 0)) || (ry >= puzzlesize));
swapblock = puzzlearray[ry][rx];
puzzlearray[ry][rx] = blankblock;
this[blankblock].x = rx;
this[blankblock].y = ry;
puzzlearray[by][bx] = swapblock;
this[swapblock].x = bx;
this[swapblock].y = by;
j++;
}
shufflecomplete = true;
y = 0;
while (y < puzzlesize) {
x = 0;
while (x < puzzlesize) {
this[puzzlearray[y][x]]._x = blocksize * x;
this[puzzlearray[y][x]]._y = blocksize * y;
x++;
}
y++;
}
checkPuzzle();
solved = false;
_parent.timerclip.startTime = getTimer();
_parent.timerclip.seconds = 0;
_parent.timerclip.minutes = 0;
}
function BuildArray() {
puzzlearray = new Array();
y = 0;
while (y < puzzlesize) {
puzzlearray[y] = new Array();
x = 0;
while (x < puzzlesize) {
thisblock = ("block" + y) + x;
tx = this[thisblock].x;
ty = this[thisblock].y;
puzzlearray[ty][tx] = this[thisblock]._name;
x++;
}
y++;
}
}
Symbol 239 MovieClip Frame 3
buildPuzzle();
BuildArray();
shuffle();
Symbol 239 MovieClip Frame 5
stop();