Frame 1
function preloaderChangeSquareColor(colorObject) {
red = ((255 * Math.random()) * loadedRatio) << 16;
green = ((255 * Math.random()) * loadedRatio) << 8;
blue = (256 * Math.random()) * loadedRatio;
colorObject.setRGB((red + green) + blue);
}
loadedRatio = _root.getBytesLoaded() / _root.getBytesTotal();
Instance of Symbol 2 MovieClip "square1" in Frame 1
onClipEvent (load) {
myColor = new Color(this);
}
onClipEvent (enterFrame) {
_root.preloaderChangeSquareColor(myColor);
}
Instance of Symbol 2 MovieClip "square2" in Frame 1
onClipEvent (load) {
myColor = new Color(this);
}
onClipEvent (enterFrame) {
_root.preloaderChangeSquareColor(myColor);
}
Instance of Symbol 2 MovieClip "square3" in Frame 1
onClipEvent (load) {
myColor = new Color(this);
}
onClipEvent (enterFrame) {
_root.preloaderChangeSquareColor(myColor);
}
Instance of Symbol 2 MovieClip "square4" in Frame 1
onClipEvent (load) {
myColor = new Color(this);
}
onClipEvent (enterFrame) {
_root.preloaderChangeSquareColor(myColor);
}
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (load) {
pixelPos = 0;
i = 2;
while (i <= 50) {
pixel1.duplicateMovieClip("pixel" + i, i);
newPixel = this["pixel" + i];
newPixel._x = pixel1._x + (8 * (i - 1));
i++;
}
}
onClipEvent (enterFrame) {
while ((_root.loadedRatio * 50) >= pixelPos) {
pixelPos++;
currColor = new Color(this["pixel" + pixelPos]);
currColor.setRGB(Math.random() * 16777215);
}
}
Frame 2
if (loadedRatio < 1) {
gotoAndPlay (1);
} else if (!fileLoaded) {
fileLoaded = true;
colorArray = new Array();
totalImages = 0;
pageCount = 0;
currentPage = 1;
System.security.loadPolicyFile("http://www.brettbits.com/features/pixel1024/crossdomain.xml");
scriptLocation = "http://www.brettbits.com/features/pixel1024/pixel1024backend.php";
imageStorage = SharedObject.getLocal("Pixel1024");
if (imageStorage.data.artistName == undefined) {
imageStorage.data.artistName = "";
}
currentImageString = "";
i = 0;
while (i < 256) {
currentImageString = currentImageString + "FFFFFFFF";
i++;
}
i = 1;
while (i <= 4) {
if (imageStorage.data["imageString" + i] == undefined) {
imageStorage.data["imageString" + i] = currentImageString;
}
i++;
}
counter = 0;
i = 56;
while (i < 256) {
colorArray[counter] = i << 16;
counter++;
i = i + 5;
}
i = 56;
while (i < 256) {
colorArray[counter] = i << 8;
counter++;
i = i + 5;
}
i = 56;
while (i < 256) {
colorArray[counter] = i;
counter++;
i = i + 5;
}
i = 56;
while (i < 256) {
j = 56;
while (j < 256) {
colorArray[counter] = (i << 16) + (j << 8);
counter++;
j = j + 40;
}
i = i + 40;
}
i = 56;
while (i < 256) {
j = 56;
while (j < 256) {
colorArray[counter] = (i << 8) + j;
counter++;
j = j + 40;
}
i = i + 40;
}
i = 56;
while (i < 256) {
j = 56;
while (j < 256) {
colorArray[counter] = (i << 16) + j;
counter++;
j = j + 40;
}
i = i + 40;
}
i = 0;
while (i < 256) {
colorArray[counter] = ((i << 16) + (i << 8)) + i;
counter++;
i = i + 4;
}
colorArray[255] = 16777215 /* 0xFFFFFF */;
_root.buildImageBox = function (imageObject) {
i = 0;
while (i < 32) {
currDepth = _root.nextDepth();
imageObject.origRow.duplicateMovieClip("row" + i, currDepth);
newRow = imageObject["row" + i];
newRow._y = imageObject.origRow._y + (i * 4);
i++;
}
};
_root.displayImage = function (imageObject, imageCode) {
currPos = 1;
i = 0;
while (i < 32) {
j = 0;
while (j < 32) {
chunk = substring(imageCode, currPos, 2);
chunk = parseInt(chunk, 16);
currColor = new Color(imageObject["row" + i]["col" + j]);
currColor.setRGB(_root.getColor(chunk));
currPos = currPos + 2;
j++;
}
i++;
}
};
currDepth = 0;
nextDepth = function () {
return(++currDepth);
};
resetDepth = function () {
currDepth = 0;
};
getColor = function (colorID) {
return(_root.colorArray[colorID]);
};
}
Frame 3
stop();
Frame 5
function changePixelByRowCol(row, column, colorID) {
changePixel(_root.editableImage[(("square" + row) + "_") + column], colorID);
}
function changePixel(pixel, colorID) {
pixel.idNum = colorID;
pixel.myColor.setRGB(getColor(colorID));
}
function addToUndoStack() {
saveCode = _root.controller.saveImage();
undoStack[++undoStackPointer] = saveCode;
undoStack.length = undoStackPointer + 1;
}
function undo() {
if (undoStackPointer == 0) {
return(undefined);
}
_root.controller.loadImage(undoStack[--undoStackPointer]);
}
function redo() {
if (undoStackPointer == (undoStack.length - 1)) {
return(undefined);
}
_root.controller.loadImage(undoStack[++undoStackPointer]);
}
function backupCurrentImage() {
if (_root.currentSection != "createFrame") {
return(undefined);
}
_root.currentImageString = _root.controller.saveImage();
}
editingPreviewColor = 16777215 /* 0xFFFFFF */;
editingCurrentIDNum = 195;
undoStack = new Array();
undoStackPointer = -1;
stop();
Instance of Symbol 60 MovieClip "editableImage" in Frame 5
onClipEvent (load) {
startX = _x;
startY = _y;
imageChanged = false;
}
Instance of Symbol 77 MovieClip "cursor" in Frame 5
onClipEvent (load) {
function destroy() {
Mouse.show();
stopDrag();
this.removeMovieClip();
}
Mouse.hide();
startDrag (this, true);
this.swapDepths(1000000);
}
onClipEvent (enterFrame) {
gotoFrame = 1;
if (_root.saveCodeBox._visible) {
return(undefined);
}
if (this.hitArea.hitTest(_root.editableImage)) {
if (_root.controller.inPencilMode()) {
gotoFrame = 2;
} else if (_root.controller.inPaintBucketMode()) {
gotoFrame = 4;
} else if (_root.controller.inEraserMode()) {
gotoFrame = 5;
} else if (_root.controller.inEyedropperMode()) {
gotoFrame = 6;
}
} else if (this.hitArea.hitTest(_root.bottomBar.colorPicker)) {
gotoFrame = 3;
}
if (gotoFrame != _currentframe) {
this.gotoAndStop(gotoFrame);
}
}
Instance of Symbol 79 MovieClip "controller" in Frame 5
onClipEvent (load) {
function inPencilMode() {
return(drawingMode == "pencil");
}
function inPaintBucketMode() {
return(drawingMode == "paintBucket");
}
function inEraserMode() {
return(drawingMode == "eraser");
}
function inEyedropperMode() {
return(drawingMode == "eyedropper");
}
function getCursorRow() {
return(Math.floor((_root._ymouse - _root.editableImage._y) / 10));
}
function getCursorColumn() {
return(Math.floor((_root._xmouse - _root.editableImage._x) / 10));
}
function toHexLetter(number) {
switch (number) {
case 10 :
return("A");
case 11 :
return("B");
case 12 :
return("C");
case 13 :
return("D");
case 14 :
return("E");
case 15 :
return("F");
}
return(number);
}
function numToHex(number) {
digit1 = Math.floor(number / 16);
digit2 = number % 16;
digit1 = toHexLetter(digit1);
digit2 = toHexLetter(digit2);
return((digit1 + "") + digit2);
}
function saveImage() {
imageString = "";
i = 0;
while (i < 32) {
j = 0;
while (j < 32) {
imageString = imageString + numToHex(_root.editableImage[(("square" + i) + "_") + j].idNum);
j++;
}
i++;
}
return(imageString);
}
function loadImage(imageCode) {
currPos = 1;
i = 0;
while (i < 32) {
j = 0;
while (j < 32) {
chunk = substring(imageCode, currPos, 2);
chunk = parseInt(chunk, 16);
_root.changePixelByRowCol(i, j, chunk);
currPos = currPos + 2;
j++;
}
i++;
}
}
function checkPixelHit() {
if (_root.saveCodeBox._visible or (!_root.editingToolbar.magnifyButton.magnified)) {
return(undefined);
}
if (_root.cursor.hitArea.hitTest(_root.editableImage)) {
row = getCursorRow();
column = getCursorColumn();
if (inPencilMode() or inEraserMode()) {
_root.editableImage[(("square" + row) + "_") + column].pixelPress();
} else if (inPaintBucketMode()) {
paintBucket(row, column, _root.editableImage[(("square" + row) + "_") + column].idNum);
}
}
}
function paintBucket(row, column, searchForThisColor) {
if (searchForThisColor == _root.editingCurrentIDNum) {
return(undefined);
}
pixelStack = new Array();
rowStack = new Array();
columnStack = new Array();
pixelStack[0] = _root.editableImage[(("square" + row) + "_") + column];
rowStack[0] = row;
columnStack[0] = column;
while (pixelStack.length > 0) {
currentPixel = pixelStack[pixelStack.length - 1];
currentRow = rowStack[rowStack.length - 1];
currentColumn = columnStack[columnStack.length - 1];
newPixelFound = false;
if ((((currentRow >= 0) and (currentRow < 32)) and (currentColumn >= 0)) and (currentColumn < 32)) {
if (paintBucketCheckPixel(currentRow - 1, currentColumn, searchForThisColor, pixelStack, rowStack, columnStack)) {
newPixelFound = true;
}
if (paintBucketCheckPixel(currentRow + 1, currentColumn, searchForThisColor, pixelStack, rowStack, columnStack)) {
newPixelFound = true;
}
if (paintBucketCheckPixel(currentRow, currentColumn - 1, searchForThisColor, pixelStack, rowStack, columnStack)) {
newPixelFound = true;
}
if (paintBucketCheckPixel(currentRow, currentColumn + 1, searchForThisColor, pixelStack, rowStack, columnStack)) {
newPixelFound = true;
}
}
if (!newPixelFound) {
delete pixelStack[pixelStack.length--];
delete rowStack[rowStack.length--];
delete columnStack[columnStack.length--];
}
}
_root.editableImage.imageChanged = true;
}
function paintBucketCheckPixel(currentRow, currentColumn, searchForThisColor, pixelStack, rowStack, columnStack) {
candidatePixel = _root.editableImage[(("square" + currentRow) + "_") + currentColumn];
if (candidatePixel.idNum == searchForThisColor) {
_root.changePixel(candidatePixel, _root.editingCurrentIDNum);
pixelStack[pixelStack.length] = candidatePixel;
rowStack[rowStack.length] = currentRow;
columnStack[columnStack.length] = currentColumn;
return(true);
}
return(false);
}
function lastKeyPressed() {
return(String.fromCharCode(Key.getAscii()).toLowerCase());
}
if (_root.currentSection != "createFrame") {
return(undefined);
}
drawingMode = "pencil";
mouseButtonDown = false;
loadImage(_root.currentImageString);
_root.addToUndoStack();
}
onClipEvent (mouseDown) {
if (inPaintBucketMode()) {
checkPixelHit();
}
mouseButtonDown = true;
}
onClipEvent (mouseUp) {
if (_root.editableImage.imageChanged) {
_root.addToUndoStack();
}
_root.editableImage.imageChanged = false;
mouseButtonDown = false;
}
onClipEvent (mouseMove) {
if (mouseButtonDown and (inPencilMode() or inEraserMode())) {
checkPixelHit();
}
}
onClipEvent (keyDown) {
if (lastKeyPressed() == "a") {
_root.editingToolbar.pencilButton.clickFunction();
} else if (lastKeyPressed() == "s") {
_root.editingToolbar.eraserButton.clickFunction();
} else if (lastKeyPressed() == "d") {
_root.editingToolbar.paintBucketButton.clickFunction();
} else if (lastKeyPressed() == "f") {
_root.editingToolbar.eyedropperButton.clickFunction();
} else if (lastKeyPressed() == "g") {
_root.undo();
} else if (lastKeyPressed() == "h") {
_root.redo();
} else if (lastKeyPressed() == "j") {
_root.editingToolbar.magnifyButton.clickFunction();
} else if (lastKeyPressed() == "k") {
_root.editingToolbar.gridButton.clickFunction();
}
}
Instance of Symbol 88 MovieClip "editingToolbar" in Frame 5
onClipEvent (load) {
function setAllButtonsOff() {
pencilButton.gotoAndStop(1);
paintBucketButton.gotoAndStop(1);
eraserButton.gotoAndStop(1);
eyedropperButton.gotoAndStop(1);
}
}
Instance of Symbol 96 MovieClip "bottomBar" in Frame 5
onClipEvent (load) {
stop();
}
Instance of Symbol 129 MovieClip "saveCodeBox" in Frame 5
onClipEvent (load) {
function closeWindow() {
Mouse.hide();
_visible = false;
gotoAndStop (5);
}
imageStorage = _root.imageStorage;
_visible = false;
stop();
}
Instance of Symbol 79 MovieClip "submitController" in Frame 6
onClipEvent (load) {
function addImageCode(imageCode) {
submittedImageCode = imageCode;
_root.nextFrame();
}
function submitToServer() {
loadVariablesNum (_root.scriptLocation, 0, "POST");
}
artistName = _root.imageStorage.data.artistName;
scriptAction = "submit";
}
onClipEvent (unload) {
_root.imageStorage.data.artistName = artistName;
}
Instance of Symbol 102 MovieClip in Frame 7
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.submitController.submittedImageCode);
}
Frame 8
topNav._visible = false;
responseFlag = 0;
_root.submitController.submitToServer();
Instance of Symbol 177 MovieClip in Frame 8
onClipEvent (load) {
timeoutCounter = 0;
MAX_TIMEOUT = 300;
}
Frame 9
responseFlag = 0;
browseViewedYet = new Array();
slideshowOn = false;
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 1;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 2;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 3;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 4;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 5;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 181 MovieClip in Frame 9
onClipEvent (load) {
imageNum = 6;
_name = ("imageBox" + imageNum);
}
Instance of Symbol 79 MovieClip "browseController" in Frame 9
onClipEvent (load) {
function resetImageCodes() {
i = 1;
while (i <= 6) {
_root[("browseImage" + i) + "Code"] = "";
_root.browseViewedYet[i] = false;
i++;
}
_root.browseViewedYet[0] = false;
}
function loadImages() {
scriptAction = "browse";
_root.fullViewImage.hideFromView();
_root.responseFlag = 0;
browseStart = (_root.currentPage - 1) * 6;
resetImageCodes();
hideAll6Images();
_root.loadMessage.gotoAndPlay(1);
loadVariablesNum (_root.scriptLocation, 0, "POST");
}
function showImages() {
i = 1;
while (i <= 6) {
_root["imageBox" + i].updateImage();
_root["imageBox" + i].creationName = _root[("browseImage" + i) + "CreationName"];
_root["imageBox" + i].artistName = _root[("browseImage" + i) + "ArtistName"];
_root["imageBox" + i].byArtistDisplay = "by " + _root["imageBox" + i].artistName;
i++;
}
_root.pageCount = Math.ceil(_root.totalImages / 6);
if (_root.responseFlag != 0) {
_root.browseBottomBar.updateView();
}
if (_root.slideshowOn and (_root.responseFlag != 0)) {
_root.fullViewImage.bringUpWindow(_root.fullViewImage.fullView.slideshowControl.imageNum);
_root.slideshowOn = false;
}
}
function refreshImages() {
if (_root.responseFlag == 0) {
return(undefined);
}
_root.loadMessage.timeoutCounter = 0;
loadImages();
}
function addToViewCount(id) {
scriptAction = "viewCountUp";
incremIDNum = id;
loadVariablesNum (_root.scriptLocation, 0, "POST");
}
function getRandom() {
scriptAction = "random";
getOneImage();
}
function getByID(idNumber) {
scriptAction = "imagebyid";
incremIDNum = idNumber;
getOneImage();
}
function getOneImage() {
_root.fullViewImage.hideFromView();
hideAll6Images();
_root.responseFlag = 0;
_root.loadMessage.timeoutCounter = 0;
_root.loadMessage.gotoAndPlay(1);
loadVariablesNum (_root.scriptLocation, 0, "POST");
}
function hideAll6Images() {
i = 1;
while (i <= 6) {
_root["imageBox" + i]._visible = false;
i++;
}
}
function showAll6Images() {
i = 1;
while (i <= 6) {
if (_root[("browseImage" + i) + "Code"] != "") {
_root["imageBox" + i]._visible = true;
}
i++;
}
}
function getSlideshowImage() {
scriptAction = "browsestart";
getOneImage();
}
browseStart = 0;
scriptAction = "browse";
sortBy = "newest";
loadImages();
}
Instance of Symbol 249 MovieClip "browseBottomBar" in Frame 9
onClipEvent (load) {
function updateView() {
startImage = ((_root.currentPage - 1) * 6) + 1;
sortedByString = "";
if (_root.browseController.sortBy == "newest") {
sortedByString = " showing Newest First";
}
if (_root.browseController.sortBy == "popular") {
sortedByString = " showing Most Popular First";
}
if (_root.browseController.sortBy == "creation") {
sortedByString = " sorted by Image Name";
}
if (_root.browseController.sortBy == "artist") {
sortedByString = " sorted by Artist Name";
}
viewingImagesMessage = (((((((((("Now Viewing Images " + startImage) + "-") + ((startImage + parseInt(_root.imagesOnThisPage)) - 1)) + " of ") + _root.totalImages) + " on Page ") + _root.currentPage) + " of ") + _root.pageCount) + sortedByString) + ".";
jump.update();
prevNextPage.update();
showByID.update();
}
viewingImagesMessage = "";
}
Instance of Symbol 266 MovieClip "loadMessage" in Frame 9
onClipEvent (load) {
timeoutCounter = 0;
MAX_TIMEOUT = 100;
}
Instance of Symbol 352 MovieClip "fullViewImage" in Frame 9
onClipEvent (load) {
function bringUpWindow(imageNum) {
inView = true;
_root.browseController.hideAll6Images();
fullView.slideshowControl.imageNum = imageNum;
fullView.slideshowControl.update();
fullView.imageCode = _root[("browseImage" + imageNum) + "Code"];
fullView.creationName = _root[("browseImage" + imageNum) + "CreationName"];
fullView.artistName = _root[("browseImage" + imageNum) + "ArtistName"];
fullView.byArtist = "by " + fullView.artistName;
fullView.dateSubmittedDisp = "Submitted on " + _root[("browseImage" + imageNum) + "Date"];
fullView.viewCount = ("This image has been viewed " + (parseInt(_root[("browseImage" + imageNum) + "ViewCount"]) + 1)) + " time(s)";
fullView.comment = _root[("browseImage" + imageNum) + "Comment"];
fullView.IDNum = "ID Number: " + _root[("browseImage" + imageNum) + "IDNum"];
if (!_root.browseViewedYet[imageNum]) {
_root.browseController.addToViewCount(_root[("browseImage" + imageNum) + "IDNum"]);
}
_root.browseViewedYet[imageNum] = true;
gotoRandomWipe();
}
function gotoRandomWipe() {
gotoFrame = (Math.floor(Math.random() * 10) * 20) + 1;
background.gotoAndPlay(gotoFrame);
}
function showDetails() {
_root.displayImage(fullView.container.imageBox, fullView.imageCode);
fullView._visible = true;
}
function hideFromView() {
if (!inView) {
return(undefined);
}
_root.browseController.showAll6Images();
inView = false;
background.gotoAndStop(1);
fullView._visible = false;
_root.browseViewedYet[0] = false;
}
inView = false;
}
Symbol 14 Button
on (release) {
topNav.go("createFrame");
}
Symbol 15 Button
on (release) {
topNav.go("submitFrame");
}
Symbol 16 Button
on (release) {
topNav.go("browseFrame");
}
Symbol 19 MovieClip Frame 1
moveMe();
Instance of Symbol 19 MovieClip in Symbol 20 MovieClip Frame 1
onClipEvent (load) {
function moveMe() {
_x = (startX + (Math.random() * 96));
_y = (startY + (Math.random() * 24));
}
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 23 Button
on (release) {
topNav.go("creditsFrame");
}
Symbol 30 Button
on (release) {
getURL ("http://www.albinoblacksheep.com/", "_blank");
}
Symbol 34 Button
on (release) {
go("createFrame");
}
Symbol 35 Button
on (release) {
go("submitFrame");
}
Symbol 36 Button
on (release) {
go("browseFrame");
}
Symbol 37 Button
on (release) {
go("creditsFrame");
}
Symbol 42 MovieClip Frame 1
function go(goto) {
if (goto == _root.currentSection) {
return(undefined);
}
if (_root.currentSection == "createFrame") {
_root.backupCurrentImage();
}
_root.currentSection = goto;
_root.cursor.destroy();
_root.resetDepth();
_root.gotoAndStop(_root.currentSection);
}
Symbol 47 Button
on (press) {
getURL ("http://www.brettbits.com/", "_blank");
}
Symbol 50 Button
on (press) {
getURL ("http://www.brettbits.com/", "_blank");
}
Symbol 51 Button
on (press) {
getURL ("mailto:Brett McLean<brettbits@hotmail.com>?subject=Pixel1024", "_self");
}
Symbol 53 Button
on (release) {
pixelRelease();
}
on (rollOver) {
pixelOver();
}
on (press) {
pixelPress();
}
Symbol 57 MovieClip Frame 1
function generateGrid() {
i = 1;
while (i <= 32) {
currDepth = _root.nextDepth();
origVertLine.duplicateMovieClip("vertLine" + i, currDepth);
this["vertLine" + i]._x = origVertLine._x + (10 * i);
currDepth = _root.nextDepth();
origHorizLine.duplicateMovieClip("horizLine" + i, currDepth);
this["horizLine" + i]._y = origHorizLine._y + (10 * i);
i++;
}
}
Instance of Symbol 56 MovieClip "origVertLine" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
if (_name == "origVertLine") {
_parent.generateGrid();
}
}
Symbol 60 MovieClip Frame 1
function createPixelGrid() {
depthCounter = _root.nextDepth();
i = 0;
while (i < 32) {
j = 0;
while (j < 32) {
originalSquare.duplicateMovieClip((("square" + i) + "_") + j, depthCounter);
newSquare = this[(("square" + i) + "_") + j];
newSquare._x = j * 10;
newSquare._y = i * 10;
newSquare.myColor = new Color(newSquare);
newSquare.myColor.setRGB(16777215);
newSquare.idNum = 255;
depthCounter = _root.nextDepth();
j++;
}
i++;
}
grid.swapDepths(_root.nextDepth());
border.swapDepths(_root.nextDepth());
originalSquare._visible = false;
}
Instance of Symbol 54 MovieClip "originalSquare" in Symbol 60 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
if (_root.saveCodeBox._visible or (!_root.editingToolbar.magnifyButton.magnified)) {
return(undefined);
}
if (_root.controller.inPencilMode() or _root.controller.inPaintBucketMode()) {
_root.changePixel(this, _root.editingCurrentIDNum);
} else if (_root.controller.inEraserMode()) {
_root.changePixel(this, 255);
} else if (_root.controller.inEyedropperMode()) {
_root.editingCurrentIDNum = idNum;
_root.editingToolbar.pencilButton.clickFunction();
}
if (!_root.controller.inEyedropperMode()) {
_root.editableImage.imageChanged = true;
}
}
if (_name == "originalSquare") {
_parent.createPixelGrid();
}
}
Symbol 63 MovieClip Frame 1
_visible = false;
Instance of Symbol 73 MovieClip in Symbol 77 MovieClip Frame 3
onClipEvent (load) {
function createColorObjects() {
currentColor = new Color(colorBoxes.leftBox);
nextColor = new Color(colorBoxes.rightBox);
}
createColorObjects();
}
onClipEvent (enterFrame) {
if ((_root._xmouse > (Stage.width / 2)) and (_currentframe == 1)) {
this.gotoAndStop(2);
} else if ((_root._xmouse <= (Stage.width / 2)) and (_currentframe == 2)) {
this.gotoAndStop(1);
}
currentColor.setRGB(_root.getColor(_root.editingCurrentIDNum));
nextColor.setRGB(_root.editingPreviewColor);
}
Symbol 79 MovieClip Frame 1
_visible = false;
Symbol 82 Button
on (press) {
clickFunction();
}
on (rollOver) {
rollOverFunction();
}
on (rollOut, releaseOutside) {
_root.statusBar.statusDisp = "";
}
Symbol 85 Button
on (rollOver) {
_root.statusBar.statusDisp = "Current Color: this is the current color of your drawing tool.";
}
on (rollOut, releaseOutside) {
_root.statusBar.statusDisp = "";
}
Instance of Symbol 84 MovieClip "pencilButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_parent.setAllButtonsOff();
gotoAndStop (2);
_root.controller.drawingMode = "pencil";
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Pencil tool (A): colors one pixel at a time.";
}
gotoAndStop (2);
}
Instance of Symbol 84 MovieClip "paintBucketButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_parent.setAllButtonsOff();
gotoAndStop (2);
_root.controller.drawingMode = "paintBucket";
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Paint bucket tool (D): fills an area with color.";
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip "gridButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_root.editableImage.grid._visible = (_root.editableImage.grid._visible ? false : true);
if (_root.editableImage.grid._visible) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Grid Toggle (K): toggles pixel grid on and off.";
}
gotoAndStop (2);
}
Instance of Symbol 84 MovieClip "magnifyButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
magnified = (magnified ? false : true);
if (!magnified) {
_root.editableImage._width = 64;
_root.editableImage._height = 64;
_root.editableImage._x = (Stage.width / 2) - 32;
_root.editableImage._y = (Stage.height / 2) - 32;
gridWasOn = _root.editableImage.grid._visible;
_root.editableImage.grid._visible = false;
gotoAndStop (1);
} else {
_root.editableImage._width = 320;
_root.editableImage._height = 320;
_root.editableImage._x = _root.editableImage.startX;
_root.editableImage._y = _root.editableImage.startY;
_root.editableImage.grid._visible = gridWasOn;
gotoAndStop (2);
}
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Magnifying Glass (J): zooms in/out on image.";
}
gotoAndStop (2);
magnified = true;
}
Instance of Symbol 84 MovieClip "eraserButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_parent.setAllButtonsOff();
gotoAndStop (2);
_root.controller.drawingMode = "eraser";
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Eraser tool (S): erases one pixel at a time.";
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_root.undo();
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Undo (G): undoes the last edit to the image.";
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip "eyedropperButton" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_parent.setAllButtonsOff();
gotoAndStop (2);
_root.controller.drawingMode = "eyedropper";
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Eyedropper tool (F): samples color from image.";
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_root.redo();
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Redo (H): restores an image after using Undo.";
}
gotoAndStop (1);
}
Instance of Symbol 87 MovieClip in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
myColor = new Color(this);
}
onClipEvent (enterFrame) {
if (myColor.getRGB() != _root.getColor(_root.editingCurrentIDNum)) {
myColor.setRGB(_root.getColor(_root.editingCurrentIDNum));
}
}
Symbol 95 MovieClip Frame 1
function generateColorPickerBar() {
depthCounter = 0;
i = 0;
while (i < 4) {
j = 0;
while (j < 64) {
originalBar.duplicateMovieClip((("bar" + i) + "_") + j, depthCounter);
newBar = this[(("bar" + i) + "_") + j];
newBar._y = originalBar._y + (i * 9);
newBar._x = originalBar._x + (j * 9);
newBar.myColor = new Color(newBar);
newBar.idNum = depthCounter;
newBar.myColor.setRGB(_root.colorArray[depthCounter]);
depthCounter++;
j++;
}
i++;
}
border.swapDepths(depthCounter);
originalBar._visible = false;
}
Instance of Symbol 54 MovieClip "originalBar" in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
if (_name == "originalBar") {
_parent.generateColorPickerBar();
}
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(0);
idNum = 195;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(8947848);
idNum = 229;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(16777215);
idNum = 255;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(16711680);
idNum = 39;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(65280);
idNum = 79;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(255);
idNum = 119;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(16776960);
idNum = 144;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(65535);
idNum = 169;
}
Instance of Symbol 54 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (load) {
function pixelPress() {
_root.editingCurrentIDNum = idNum;
_root.editingCurrentColor = myColor.getRGB();
}
function pixelOver() {
_root.editingPreviewColor = myColor.getRGB();
}
myColor = new Color(this);
myColor.setRGB(16711935);
idNum = 194;
}
Instance of Symbol 84 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_root.saveCodeBox._visible = true;
_root.saveCodeBox.gotoAndPlay(1);
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Save: saves the current image to your hard drive.";
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
_root.saveCodeBox.loadCode = "";
_root.saveCodeBox._visible = true;
_root.saveCodeBox.gotoAndPlay(20);
}
function rollOverFunction() {
_root.statusBar.statusDisp = "Open: opens an image on your hard drive.";
}
function rollOutFunction() {
}
gotoAndStop (1);
}
Instance of Symbol 84 MovieClip "newButton" in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
i = 0;
while (i < 32) {
j = 0;
while (j < 32) {
_root.changePixelByRowCol(i, j, 255);
j++;
}
i++;
}
_root.addToUndoStack();
}
function rollOverFunction() {
_root.statusBar.statusDisp = "New: clears the current image and allows you to begin anew.";
}
gotoAndStop (1);
}
Symbol 103 Button
on (release) {
imageStorage.data.imageString1 = _root.controller.saveImage();
_root.statusBar.statusDisp = "Image has been saved to Slot 1.";
closeWindow();
}
Symbol 104 Button
on (release) {
imageStorage.data.imageString2 = _root.controller.saveImage();
_root.statusBar.statusDisp = "Image has been saved to Slot 2.";
closeWindow();
}
Symbol 105 Button
on (release) {
imageStorage.data.imageString3 = _root.controller.saveImage();
_root.statusBar.statusDisp = "Image has been saved to Slot 3.";
closeWindow();
}
Symbol 106 Button
on (release) {
imageStorage.data.imageString4 = _root.controller.saveImage();
_root.statusBar.statusDisp = "Image has been saved to Slot 4.";
closeWindow();
}
Symbol 115 Button
on (release) {
closeWindow();
}
Symbol 117 Button
on (release) {
imageCode = imageStorage.data.imageString1;
_root.controller.loadImage(imageCode);
_root.addToUndoStack();
closeWindow();
}
Symbol 118 Button
on (release) {
imageCode = imageStorage.data.imageString2;
_root.controller.loadImage(imageCode);
_root.addToUndoStack();
closeWindow();
}
Symbol 119 Button
on (release) {
imageCode = imageStorage.data.imageString3;
_root.controller.loadImage(imageCode);
_root.addToUndoStack();
closeWindow();
}
Symbol 120 Button
on (release) {
imageCode = imageStorage.data.imageString4;
_root.controller.loadImage(imageCode);
_root.addToUndoStack();
closeWindow();
}
Symbol 128 Button
on (release) {
closeWindow();
}
Symbol 129 MovieClip Frame 11
stop();
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 11
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString1);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 11
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString2);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 11
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString3);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 11
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString4);
}
Symbol 129 MovieClip Frame 30
stop();
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 30
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString1);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 30
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString2);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 30
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString3);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 30
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _parent.imageStorage.data.imageString4);
}
Symbol 137 Button
on (release) {
_root.submitController.addImageCode(_root.currentImageString);
}
Symbol 138 Button
on (release) {
_root.submitController.addImageCode(_root.imageStorage.data.imageString1);
}
Symbol 139 Button
on (release) {
_root.submitController.addImageCode(_root.imageStorage.data.imageString2);
}
Symbol 140 Button
on (release) {
_root.submitController.addImageCode(_root.imageStorage.data.imageString3);
}
Symbol 141 Button
on (release) {
_root.submitController.addImageCode(_root.imageStorage.data.imageString4);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.currentImageString);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.imageStorage.data.imageString1);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.imageStorage.data.imageString2);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.imageStorage.data.imageString3);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
_root.displayImage(this, _root.imageStorage.data.imageString4);
}
Symbol 156 Button
on (release) {
_root.nextFrame();
}
Symbol 158 Button
on (release) {
_root.prevFrame();
}
Symbol 163 MovieClip Frame 1
function updateClockHand() {
clockHand._rotation = (_parent.timeoutCounter / _parent.MAX_TIMEOUT) * 360;
}
Symbol 171 Button
on (release) {
_root.gotoAndStop("submitFrame");
}
Symbol 177 MovieClip Frame 7
timeoutCounter = timeoutCounter + 6;
if (_root.responseFlag == 1) {
gotoAndPlay (12);
} else if (_root.responseFlag == 2) {
gotoAndStop (9);
} else if (_root.responseFlag == 3) {
gotoAndStop (10);
} else if (_root.responseFlag == 4) {
gotoAndStop (11);
} else if (timeoutCounter < MAX_TIMEOUT) {
gotoAndPlay (1);
}
Symbol 177 MovieClip Frame 8
_root.topNav._visible = true;
stop();
Symbol 177 MovieClip Frame 9
_root.topNav._visible = true;
Symbol 177 MovieClip Frame 10
_root.topNav._visible = true;
Symbol 177 MovieClip Frame 11
_root.topNav._visible = true;
Symbol 177 MovieClip Frame 38
_root.gotoAndStop("browseFrame");
Symbol 180 Button
on (press) {
if (!_root.fullViewImage.inView) {
_root.fullViewImage.bringUpWindow(imageNum);
}
}
Symbol 181 MovieClip Frame 1
function updateImage() {
_visible = (_root[("browseImage" + imageNum) + "Code"] != "");
_root.displayImage(displayBox, _root[("browseImage" + imageNum) + "Code"]);
}
Instance of Symbol 102 MovieClip "displayBox" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
}
Symbol 190 Button
on (release) {
_root.browseController.refreshImages();
}
Symbol 194 Button
on (release) {
if (_alpha > 10) {
_root.currentPage = parseInt(disp);
_root.browseController.refreshImages();
}
}
Symbol 203 Button
on (release) {
clickFunction();
}
Symbol 209 Button
on (release) {
clickFunction();
}
Instance of Symbol 196 MovieClip "num6" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num2" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num1" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num7" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num5" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num3" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 196 MovieClip "num4" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
startAlpha = _alpha;
}
Instance of Symbol 204 MovieClip "rightArrow" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function update() {
newPage = _root.currentPage + 1;
_alpha = (_parent.pageIsAvailable(newPage) ? 100 : 10);
}
function clickFunction() {
if (_alpha > 10) {
_root.currentPage = newPage;
_root.browseController.refreshImages();
}
}
}
Instance of Symbol 204 MovieClip "leftArrow" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function update() {
newPage = _root.currentPage - 1;
_alpha = (_parent.pageIsAvailable(newPage) ? 100 : 10);
}
function clickFunction() {
if (_alpha > 10) {
_root.currentPage = newPage;
_root.browseController.refreshImages();
}
}
}
Instance of Symbol 210 MovieClip "rightDoubleArrow" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function update() {
_alpha = ((_root.currentPage == _root.pageCount) ? 10 : 100);
}
function clickFunction() {
if (_alpha > 10) {
_root.currentPage = _root.pageCount;
_root.browseController.refreshImages();
}
}
}
Instance of Symbol 210 MovieClip "leftDoubleArrow" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function update() {
_alpha = ((_root.currentPage == 1) ? 10 : 100);
}
function clickFunction() {
if (_alpha > 10) {
_root.currentPage = 1;
_root.browseController.refreshImages();
}
}
}
Symbol 221 Button
on (release) {
jumpTo = parseInt(jumpTo);
if (isNaN(jumpTo)) {
update();
return(undefined);
}
if (jumpTo < 1) {
jumpTo = 1;
} else if (jumpTo > _root.pageCount) {
jumpTo = _root.pageCount;
} else if (jumpTo == _root.currentPage) {
return(undefined);
}
_root.currentPage = jumpTo;
_root.browseController.refreshImages();
}
Symbol 227 Button
on (release) {
_parent.turnOffHighlights();
highlight._visible = true;
_root.browseController.sortBy = type;
_root.browseController.refreshImages();
}
Instance of Symbol 230 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
type = "newest";
_name = (type + "button");
}
Instance of Symbol 230 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
type = "popular";
_name = (type + "button");
}
Instance of Symbol 230 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
type = "creation";
_name = (type + "button");
}
Instance of Symbol 230 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
type = "artist";
_name = (type + "button");
}
Symbol 240 Button
on (release) {
_root.browseController.getRandom();
}
Symbol 247 Button
on (release) {
findID = parseInt(findID);
if (isNaN(findID) || (findID <= 0)) {
update();
return(undefined);
}
_root.browseController.getByID(findID);
}
Instance of Symbol 211 MovieClip "prevNextPage" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
function update() {
i = 1;
while (i <= 7) {
updateNumberBox(this["num" + i], i);
i++;
}
leftArrow.update();
rightArrow.update();
leftDoubleArrow.update();
rightDoubleArrow.update();
}
function pageIsAvailable(pageNum) {
if ((pageNum < 1) or (pageNum > _root.pageCount)) {
return(false);
}
return(true);
}
function updateNumberBox(numBox, boxID) {
numBox.disp = (_root.currentPage + boxID) - 4;
if (pageIsAvailable(numBox.disp)) {
numBox._alpha = numBox.startAlpha;
} else {
numBox._alpha = 10;
numBox.disp = "";
}
}
}
Instance of Symbol 222 MovieClip "jump" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
function update() {
jumpTo = _root.currentPage;
}
update();
}
Instance of Symbol 235 MovieClip in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
function turnOffHighlights() {
newestbutton.highlight._visible = false;
popularbutton.highlight._visible = false;
creationbutton.highlight._visible = false;
artistbutton.highlight._visible = false;
}
function startItUp() {
turnOffHighlights();
newestbutton.highlight._visible = true;
}
setTimeout(startItUp, 100);
}
Instance of Symbol 248 MovieClip "showByID" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
function update() {
findID = 1;
}
}
Symbol 261 Button
on (release) {
_root.browseController.refreshImages();
}
Symbol 265 Button
on (release) {
_root.browseController.showAll6Images();
nextFrame();
}
Symbol 266 MovieClip Frame 1
clock._visible = true;
Symbol 266 MovieClip Frame 7
timeoutCounter = timeoutCounter + 6;
clock.updateClockHand();
if (_root.responseFlag == 3) {
gotoAndStop (67);
} else if (_root.responseFlag == 2) {
_root.fullViewImage.bringUpWindow(0);
clock._visible = false;
stop();
} else if (_root.responseFlag == 1) {
_root.browseController.showImages();
clock._visible = false;
stop();
} else if (timeoutCounter < MAX_TIMEOUT) {
gotoAndPlay (1);
} else if ((timeoutCounter >= MAX_TIMEOUT) and (_root.browseController.scriptAction != "browse")) {
_root.responseFlag = -1;
gotoAndPlay (9);
}
Symbol 266 MovieClip Frame 8
_root.responseFlag = -1;
stop();
Symbol 266 MovieClip Frame 66
_root.browseController.showImages();
stop();
Symbol 322 MovieClip Frame 10
_parent.showDetails();
stop();
Symbol 322 MovieClip Frame 30
call(10);
Symbol 322 MovieClip Frame 50
call(10);
Symbol 322 MovieClip Frame 70
call(10);
Symbol 322 MovieClip Frame 90
call(10);
Symbol 322 MovieClip Frame 110
call(10);
Symbol 322 MovieClip Frame 130
call(10);
Instance of Symbol 304 MovieClip in Symbol 322 MovieClip Frame 141
onClipEvent (load) {
max = 10;
}
onClipEvent (enterFrame) {
max = max + 9;
_yscale = (max * Math.random());
_xscale = (max * Math.random());
}
Symbol 322 MovieClip Frame 150
call(10);
Symbol 322 MovieClip Frame 170
call(10);
Symbol 322 MovieClip Frame 190
call(10);
Symbol 327 Button
on (release) {
clickFunction();
}
Instance of Symbol 328 MovieClip "rightArrow" in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
if ((_parent.imageNum == _root.imagesOnThisPage) and (_root.currentPage == _root.pageCount)) {
return(undefined);
}
_parent.imageNum++;
if (_parent.imageNum == 7) {
_parent.imageNum = 1;
_root.currentPage++;
_root.slideshowOn = true;
_root.browseController.refreshImages();
return(undefined);
}
_root.fullViewImage.hideFromView();
_root.fullViewImage.bringUpWindow(_parent.imageNum);
}
}
Instance of Symbol 328 MovieClip "leftArrow" in Symbol 329 MovieClip Frame 1
onClipEvent (load) {
function clickFunction() {
if ((_parent.imageNum == 1) && (_root.currentPage == 1)) {
return(undefined);
}
_parent.imageNum--;
if (_parent.imageNum == 0) {
_parent.imageNum = 6;
_root.currentPage--;
_root.slideshowOn = true;
_root.browseController.refreshImages();
return(undefined);
}
_root.fullViewImage.hideFromView();
_root.fullViewImage.bringUpWindow(_parent.imageNum);
}
}
Symbol 331 Button
on (release) {
resizeBox();
}
Instance of Symbol 102 MovieClip "imageBox" in Symbol 332 MovieClip Frame 1
onClipEvent (load) {
_root.buildImageBox(this);
}
Symbol 333 Button
on (release) {
container.resizeBox();
}
Symbol 350 Button
on (press) {
_parent.hideFromView();
}
Instance of Symbol 329 MovieClip "slideshowControl" in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
function update() {
if (imageNum == 0) {
_visible = false;
return(undefined);
}
_visible = true;
rightArrow._alpha = (((imageNum == _root.imagesOnThisPage) and (_root.currentPage == _root.pageCount)) ? 20 : 100);
leftArrow._alpha = (((imageNum == 1) && (_root.currentPage == 1)) ? 20 : 100);
}
}
Instance of Symbol 332 MovieClip "container" in Symbol 351 MovieClip Frame 1
onClipEvent (load) {
function resizeBox() {
if (_width > 32) {
_width = (_width - 32);
_height = (_width - 32);
} else {
_height = 224;
_width = 224;
}
}
_height = 224;
_width = 224;
}
Instance of Symbol 322 MovieClip "background" in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 351 MovieClip "fullView" in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}