Frame 1
stop();
this.onEnterFrame = function () {
if (loader.bar._width < 500) {
loader.bar._width = Math.ceil((this.getBytesLoaded() / this.getBytesTotal()) * 500);
} else {
this.onEnterFrame = null;
this.gotoAndStop(3);
}
};
altContentURL = "/upgrade/";
MACLatestVersion = 7;
MACLatestMajorRevision = 0;
MACLatestMinorRevision = 19;
WINLatestVersion = 7;
WINLatestMajorRevision = 0;
WINLatestMinorRevision = 19;
WINCELatestVersion = 6;
WINCELatestMajorRevision = 0;
WINCELatestMinorRevision = 80;
UNIXLatestVersion = 6;
UNIXLatestMajorRevision = 0;
UNIXLatestMinorRevision = 79;
if ($version eq "") {
getURL (altContentURL, "_self");
}
i = 1;
playerOS_str = "";
while ((substring($version, i, 1)) ne " ") {
playerOS_str = playerOS_str add (substring($version, i, 1));
i++;
}
playerVersion = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerVersion = playerVersion add Number(substring($version, i, 1));
i++;
}
playerMajorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMajorRevision = playerMajorRevision add Number(substring($version, i, 1));
i++;
}
playerMinorRevision = "";
i++;
while ((substring($version, i, 1)) ne ",") {
playerMinorRevision = playerMinorRevision add Number(substring($version, i, 1));
i++;
}
contentVersion = Number(eval (playerOS_str add "LatestVersion"));
contentMajorRevision = Number(eval (playerOS_str add "LatestMajorRevision"));
contentMinorRevision = Number(eval (playerOS_str add "LatestMinorRevision"));
if (playerVersion < contentVersion) {
getURL (altContentURL, "_self");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision < contentMajorRevision)) {
getURL (altContentURL, "_self");
} else if (((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision)) && (playerMinorRevision < contentMinorRevision)) {
getURL (altContentURL, "_self");
}
Frame 2
trace("assests frame");
Frame 3
function loadPainting(paintingID) {
var history = new XML();
history.onLoad = function () {
_root.editor.canvas.history = history;
var _local2 = 0;
while (_local2 < history.childNodes.length) {
_root.editor.canvas.historyNodes.push(history.childNodes[_local2]);
_local2++;
}
_root.editor.canvas.redrawPainting();
if (_root.editor.canvas.frame != undefined) {
_root.editor.canvas.frame.removeMovieClip();
}
_root.editor.canvas.attachMovie("frame" + _root.editor.canvas.history.firstChild.attributes.a, "frame", _root.editor.canvas.getNextHighestDepth());
_root.editor.canvas.frame._x = 175;
_root.editor.canvas.frame._y = 65;
};
history.load(("http://artpad.art.com/paintings/" + paintingID) + ".xml");
}
function save(email) {
if (_root.linkID != null) {
if (email) {
_root.editor.sendAndSave.email();
} else {
var _local5 = _root.editor.sendAndSave.attachMovie("saveConfirmation", "saveConfirmation", _root.editor.sendAndSave.getNextHighestDepth());
_local5._x = 90;
_local5._y = 150;
}
return(undefined);
}
var _local7 = _root.editor.canvas.history.firstChild.attributes.a;
delete _root.editor.canvas.history;
_root.editor.canvas.history = new XML();
var _local6 = _root.editor.canvas.history.createElement("f");
_local6.attributes.a = _local7;
_root.editor.canvas.history.appendChild(_local6);
var _local3 = 0;
while (_local3 < _root.editor.canvas.historyNodes.length) {
_root.editor.canvas.history.appendChild(_root.editor.canvas.historyNodes[_local3]);
_local3++;
}
_root.editor.canvas.history.contentType = "text/xml";
var _local4 = new XML();
if (email) {
_local4.onLoad = function (success) {
if (success) {
_root.linkID = this.firstChild.attributes.a;
_root.editor.sendAndSave.email();
}
};
} else {
_local4.onLoad = function (success) {
if (success) {
_root.linkID = this.firstChild.attributes.a;
var _local3 = _root.editor.sendAndSave.attachMovie("saveConfirmation", "saveConfirmation", _root.editor.sendAndSave.getNextHighestDepth());
_local3._x = 90;
_local3._y = 150;
}
};
}
_root.editor.canvas.history.sendAndLoad("http://artpad.art.com/save.php", _local4);
}
stop();
if (_parent.id != undefined) {
id = _parent.id;
}
this.attachMovie("intro", "intro", 2);
var linkID = null;
stop();
Symbol 10 MovieClip [viewOtherPaintingsButton] Frame 1
#initclip 59
Object.registerClass("viewOtherPaintingsButton", navButton);
#endinitclip
stop();
Symbol 13 MovieClip [saveAndSendButton] Frame 1
#initclip 28
Object.registerClass("saveAndSendButton", sendAndSaveButton);
#endinitclip
stop();
Symbol 15 MovieClip [leaveGalleryButton] Frame 1
#initclip 29
Object.registerClass("leaveGalleryButton", leaveGalleryButton);
#endinitclip
stop();
Symbol 18 MovieClip [hangInGalleryButton] Frame 1
#initclip 30
Object.registerClass("hangInGalleryButton", hangInGalleryButton);
#endinitclip
stop();
Symbol 21 MovieClip [selectFrameButton] Frame 1
#initclip 31
Object.registerClass("selectFrameButton", selectFrameButton);
#endinitclip
stop();
Symbol 24 MovieClip [replayPaintingButton] Frame 1
#initclip 32
Object.registerClass("replayPaintingButton", replayPaintingButton);
#endinitclip
stop();
Symbol 28 MovieClip [paintButton] Frame 1
#initclip 33
Object.registerClass("paintButton", paintButton);
#endinitclip
stop();
Symbol 31 MovieClip [startOverButton] Frame 1
#initclip 34
Object.registerClass("startOverButton", startOverButton);
#endinitclip
stop();
Symbol 43 MovieClip [undo] Frame 1
#initclip 35
Object.registerClass("undo", undoButton);
#endinitclip
stop();
Instance of Symbol 42 MovieClip "label" in Symbol 43 MovieClip [undo] Frame 1
on (release) {
if (_root.editor.canvas.state == _root.editor.canvas.states.edit) {
_root.editor.canvas.historyNodes.pop();
_root.editor.canvas.undo();
}
}
Symbol 48 MovieClip [paintColor] Frame 1
#initclip 36
Object.registerClass("paintColor", paintColor);
#endinitclip
Symbol 60 Button
on (release) {
getURL ("http://www.art.com/asp/customerservice/artpad_terms_of_use.asp", "terms");
}
Symbol 64 MovieClip [banner] Frame 1
this.onRelease = function () {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.onLoad = function (success) {
if (success) {
getURL (this.firstChild.firstChild.nodeValue, "artdotcom");
}
};
_local2.load("http://artpad.art.com/images/bannerLink.xml");
};
var banner = this.createEmptyMovieClip("banner", this.getNextHighestDepth());
loadMovie ("http://artpad.art.com/images/banner.jpg", banner);
Symbol 66 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://affiliates.art.com/get.art?A=859220&L=9&P=0", "artdotcom");
};
Symbol 72 MovieClip [opacityScrubber] Frame 1
#initclip 37
Object.registerClass("opacityScrubber", opacityScrubber);
#endinitclip
Instance of Symbol 3 MovieClip [canvasMask] in Symbol 74 MovieClip Frame 1
on (release) {
_parent.scrubber.onPress();
_parent.scrubber.onMouseMove();
_parent.scrubber.onMouseUp();
}
Symbol 76 MovieClip [sizeScrubber] Frame 1
#initclip 38
Object.registerClass("sizeScrubber", sizeScrubber);
#endinitclip
Instance of Symbol 3 MovieClip [canvasMask] in Symbol 78 MovieClip Frame 1
on (release) {
_parent.scrubber.onPress();
_parent.scrubber.onMouseMove();
_parent.scrubber.onMouseUp();
}
Symbol 82 MovieClip [paintCanvas] Frame 1
#initclip 39
Object.registerClass("paintCanvas", paintCanvas);
#endinitclip
Symbol 83 MovieClip [editor] Frame 1
#initclip 40
Object.registerClass("editor", editor);
#endinitclip
this.navigate("paint");
this.galleryPicker.vintageGalleryButton.disable();
Instance of Symbol 10 MovieClip [viewOtherPaintingsButton] "viewOtherPaintingsButton" in Symbol 83 MovieClip [editor] Frame 1
on (release) {
getURL ("http://artpad.art.com", "museum");
}
Instance of Symbol 36 MovieClip in Symbol 83 MovieClip [editor] Frame 1
on (release) {
var track = new LoadVars();
track.sendAndLoad("/trackPrinting.php", track, "POST");
var job = new PrintJob();
job.orientation = "landscape";
job.start();
job.addPage(_root, {xMin:170, xMax:780, yMin:65, yMax:510});
job.send();
delete job;
}
Instance of Symbol 40 MovieClip in Symbol 83 MovieClip [editor] Frame 1
on (release) {
getURL ("http://www.art.com/asp/artpad/default.asp");
}
Instance of Symbol 51 MovieClip "paintBrushButton" in Symbol 83 MovieClip [editor] Frame 1
on (release) {
_root.editor.current.canvas.switchTools("paintBrush");
_parent.textButton._alpha = 50;
_parent.paintBucketButton._alpha = 50;
_parent.paintBrushButton._alpha = 100;
}
Instance of Symbol 54 MovieClip "paintBucketButton" in Symbol 83 MovieClip [editor] Frame 1
on (release) {
_root.editor.current.canvas.switchTools("paintBucket");
_parent.textButton._alpha = 50;
_parent.paintBucketButton._alpha = 100;
_parent.paintBrushButton._alpha = 50;
}
Instance of Symbol 56 MovieClip "textButton" in Symbol 83 MovieClip [editor] Frame 1
on (release) {
_root.editor.current.canvas.switchTools("text");
_parent.textButton._alpha = 100;
_parent.paintBucketButton._alpha = 50;
_parent.paintBrushButton._alpha = 50;
}
Instance of Symbol 63 MovieClip in Symbol 83 MovieClip [editor] Frame 1
on (release) {
getURL ("mailto:artpad@art.com");
}
Symbol 96 Button
on (release) {
getURL ("http://www.art.com/asp/customerservice/artpad_terms_of_use.asp", "terms");
}
Symbol 97 MovieClip [intro] Frame 1
stop();
Instance of Symbol 94 MovieClip in Symbol 97 MovieClip [intro] Frame 1
on (release) {
_root.attachMovie("editor", "editor", 1);
_root.intro.gotoAndPlay(2);
}
Symbol 97 MovieClip [intro] Frame 16
if (_root.id.length > 0) {
_root.loadPainting(_root.id);
}
_root.intro.removeMovieClip();
Symbol 106 MovieClip [largeBrush] Frame 1
#initclip 41
Object.registerClass("largeBrush", paintBrush);
#endinitclip
Symbol 115 MovieClip [mediumBrush] Frame 1
#initclip 42
Object.registerClass("mediumBrush", paintBrush);
#endinitclip
Symbol 123 MovieClip [pencil] Frame 1
#initclip 43
Object.registerClass("pencil", paintBrush);
#endinitclip
Symbol 132 MovieClip [smallBrush] Frame 1
#initclip 44
Object.registerClass("smallBrush", paintBrush);
#endinitclip
Symbol 141 MovieClip [xLargeBrush] Frame 1
#initclip 45
Object.registerClass("xLargeBrush", paintBrush);
#endinitclip
Symbol 150 MovieClip [xxLargeBrush] Frame 1
#initclip 46
Object.registerClass("xxLargeBrush", paintBrush);
#endinitclip
Instance of Symbol 153 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(1);
}
Instance of Symbol 156 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(2);
}
Instance of Symbol 159 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(3);
}
Instance of Symbol 162 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(4);
}
Instance of Symbol 165 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(5);
}
Instance of Symbol 168 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(6);
}
Instance of Symbol 171 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(7);
}
Instance of Symbol 174 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(8);
}
Instance of Symbol 177 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(9);
}
Instance of Symbol 180 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(10);
}
Instance of Symbol 183 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(11);
}
Instance of Symbol 186 MovieClip in Symbol 187 MovieClip [framePicker] Frame 1
on (release) {
_root.editor.current.canvas.setFrame(0);
}
Symbol 233 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10206163&S=7&Y=0", "posters");
}
Symbol 234 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10140557&S=7&Y=0", "posters");
}
Symbol 235 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10206169&S=7&Y=0", "posters");
}
Symbol 236 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10132633&S=7&Y=0", "posters");
}
Symbol 242 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10080156&S=7&Y=0", "posters");
}
Symbol 243 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10119130&S=7&Y=0", "posters");
}
Symbol 244 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10096554&S=7&Y=0", "posters");
}
Symbol 245 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10023958&S=7&Y=0", "posters");
}
Symbol 249 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10138368&S=7&Y=0", "posters");
}
Symbol 250 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10123761&S=7&Y=0", "posters");
}
Symbol 251 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10086390&S=7&Y=0", "posters");
}
Symbol 252 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10101672&S=7&Y=0", "posters");
}
Symbol 256 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10095172&S=7&Y=0", "posters");
}
Symbol 257 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10203577&S=7&Y=0", "posters");
}
Symbol 258 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10202630&S=7&Y=0", "posters");
}
Symbol 259 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10109351&S=7&Y=0", "posters");
}
Symbol 263 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10095899&S=7&Y=0", "posters");
}
Symbol 264 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10071903&S=7&Y=0", "posters");
}
Symbol 265 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10072726&S=7&Y=0", "posters");
}
Symbol 266 Button
on (release) {
getURL ("http://affiliates.art.com/get.art?A=859220&L=8&P=10096214&S=7&Y=0", "posters");
}
Symbol 272 MovieClip [moviesGalleryButton] Frame 1
#initclip 47
Object.registerClass("moviesGalleryButton", galleryButton);
#endinitclip
stop();
galleryName = "moviesGallery";
Symbol 274 MovieClip [vintageGalleryButton] Frame 1
#initclip 48
Object.registerClass("vintageGalleryButton", galleryButton);
#endinitclip
stop();
galleryName = "vintageGallery";
Symbol 276 MovieClip [sportsGalleryButton] Frame 1
#initclip 49
Object.registerClass("sportsGalleryButton", galleryButton);
#endinitclip
stop();
galleryName = "sportsGallery";
Symbol 278 MovieClip [modernGalleryButton] Frame 1
#initclip 50
Object.registerClass("modernGalleryButton", galleryButton);
#endinitclip
stop();
galleryName = "modernGallery";
Symbol 280 MovieClip [fantasyGalleryButton] Frame 1
#initclip 51
Object.registerClass("fantasyGalleryButton", galleryButton);
#endinitclip
stop();
galleryName = "fantasyGallery";
Symbol 281 MovieClip [galleryPicker] Frame 1
function reset() {
if (_root.editor.gallery != undefined) {
_root.editor.gallery.removeMovieClip();
}
fantasyGalleryButton.enable();
modernGalleryButton.enable();
moviesGalleryButton.enable();
sportsGalleryButton.enable();
vintageGalleryButton.enable();
}
this.vintageGalleryButton.galleryName = "vintageGallery";
this.vintageGalleryButton.execute();
Symbol 282 MovieClip [paint] Frame 1
function showOptions() {
time = 0;
begin = this.options._y;
change = 181;
this.isExpanded = true;
this.onEnterFrame = function () {
if (time <= duration) {
time++;
this.options._y = this.easeOut(time, begin, change - (begin - this.originalY), duration);
} else {
this.onEnterFrame = null;
}
};
}
function hideOptions() {
time = 0;
begin = this.options._y;
change = -181;
this.isExpanded = false;
this.onEnterFrame = function () {
if (time <= duration) {
time++;
this.options._y = this.easeOut(time, begin, change + ((this.originalY - change) - begin), duration);
} else {
this.onEnterFrame = null;
}
};
}
function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
var canvas = _parent.canvas;
canvas.state = canvas.states.edit;
stop();
this.onMouseMove = function () {
if (this.canvas.state != this.canvas.states.edit) {
return(undefined);
}
if (canvas.isOnCanvas(_xmouse, _ymouse) || ((this.tools.hitTest(_xmouse, _ymouse, true) && (_ymouse < 200)) && (this.canvas.tool == this.canvas.tools.paintBrush))) {
if (_root.cursor == undefined) {
Mouse.hide();
canvas.tool.showCursor();
} else {
_root.cursor.moveCursor(_xmouse, _ymouse);
}
} else if (_root.cursor != undefined) {
Mouse.show();
_root.cursor.removeMovieClip();
}
};
_root.editor.undoButton.enable();
_root.editor.replayPaintingButton.enable();
_root.editor.selectAFrameButton.enable();
_root.editor.saveAndSendButton.enable();
_root.editor.hangInGalleryButton.enable();
_root.editor.startOverButton.enable();
_root.editor.paintButton.select();
var time;
var duration = 45;
var begin;
var change;
var isExpanded = false;
var originalY = this.options._y;
Symbol 292 MovieClip [paintBucket] Frame 1
#initclip 52
Object.registerClass("paintBucket", cursor);
#endinitclip
Symbol 314 MovieClip [speedScrubber] Frame 1
#initclip 53
Object.registerClass("speedScrubber", speedScrubber);
#endinitclip
Symbol 317 MovieClip [skip to end] Frame 1
#initclip 54
Object.registerClass("skip to end", navButton);
#endinitclip
stop();
Symbol 321 MovieClip [skip to beginning] Frame 1
#initclip 55
Object.registerClass("skip to beginning", navButton);
#endinitclip
stop();
Symbol 324 MovieClip [pause] Frame 1
#initclip 56
Object.registerClass("pause", pauseButton);
#endinitclip
stop();
Symbol 325 MovieClip [replayControl] Frame 1
slider.scrubber._x = Math.round(((_root.editor.current.canvas.speed - 1) * 10) + 36);
Instance of Symbol 317 MovieClip [skip to end] in Symbol 325 MovieClip [replayControl] Frame 1
on (release) {
if (_root.editor.current.canvas.state == _root.editor.current.canvas.states.replay) {
_root.editor.current.canvas.onEnterFrame = null;
_root.editor.current.canvas.erase();
_root.editor.current.canvas.redrawPainting();
if (_root.replayCursor != undefined) {
_root.replayCursor.removeMovieClip();
}
_root.editor.current.canvas.currentMove = -1;
_root.editor.current.canvas.paused = false;
}
}
Instance of Symbol 321 MovieClip [skip to beginning] in Symbol 325 MovieClip [replayControl] Frame 1
on (release) {
if (_root.editor.current.canvas.state == _root.editor.current.canvas.states.replay) {
_root.editor.current.canvas.onEnterFrame = null;
_root.editor.current.canvas.erase();
_root.editor.current.canvas.currentMove = -1;
if (_root.replayCursor != undefined) {
_root.replayCursor.removeMovieClip();
}
_root.editor.current.canvas.replay();
}
}
Symbol 347 MovieClip [startOverConfirmation] Frame 1
function enableButtons() {
_root.editor.startOverButton.enable();
_root.editor.saveAndSendButton.enable();
_root.editor.hangInGalleryButton.enable();
_root.editor.selectAFrameButton.enable();
_root.editor.replayPaintingButton.enable();
_root.editor.undoButton.enable();
}
Instance of Symbol 342 MovieClip in Symbol 347 MovieClip [startOverConfirmation] Frame 1
on (release) {
_parent.enableButtons();
_parent.removeMovieClip();
}
Instance of Symbol 346 MovieClip in Symbol 347 MovieClip [startOverConfirmation] Frame 1
on (release) {
_root.editor.canvas.erase();
delete _root.editor.canvas.historyNodes;
_root.editor.canvas.historyNodes = new Array();
delete _root.editor.canvas.history;
if (_root.editor.canvas.frame != undefined) {
_root.editor.canvas.frame.removeMovieClip();
}
_root.editor.canvas.history = new XML();
var frameNode = _root.editor.canvas.history.createElement("f");
frameNode.attributes.a = "0";
_root.editor.canvas.history.appendChild(frameNode);
_parent.enableButtons();
_parent.removeMovieClip();
}
Symbol 349 MovieClip [textCursor] Frame 1
#initclip 57
Object.registerClass("textCursor", cursor);
#endinitclip
Symbol 365 MovieClip [checkbox] Frame 1
#initclip 58
Object.registerClass("checkbox", checkbox);
#endinitclip
Symbol 380 Button
on (release) {
if (_root.linkID == null) {
_root.save(false);
}
}
Symbol 383 MovieClip [sendAndSave] Frame 1
function email() {
my_lv.linkID = _root.linkID;
var _local4 = new LoadVars();
_local4.onLoad = function (success) {
if (this.error == "none") {
var _local3 = _root.editor.sendAndSave.attachMovie("saveConfirmation", "saveConfirmation", _root.editor.sendAndSave.getNextHighestDepth());
_local3._x = 90;
_local3._y = 150;
} else {
if (this.error != undefined) {
_root.editor.sendAndSave.errorMessageText = this.error;
} else {
_root.editor.sendAndSave.errorField.text = "An uknown error occurred.";
}
_root.editor.sendAndSave.attachMovie("errorMessage", "errorMessage", _root.editor.sendAndSave.getNextHighestDepth());
_root.editor.sendAndSave.errorMessage._x = 90;
_root.editor.sendAndSave.errorMessage._y = 150;
}
};
my_lv.sendAndLoad("http://artpad.art.com/email2.php", _local4, "POST");
}
stop();
yourName.tabIndex = 1;
yourEmail.tabIndex = 2;
theirEmail.tabIndex = 3;
message.tabIndex = 4;
var my_lv = new LoadVars();
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (this.error == "none") {
var _local3 = this.attachMovie("saveConfirmation");
_local3._x = 200;
_local3._y = 200;
} else if (this.error != "none") {
_root.editor.current.errorField.text = this.error;
}
};
my_lv.sendAndLoad("http://artpad.art.com/email.php", result_lv, "POST");
Instance of Symbol 353 MovieClip in Symbol 383 MovieClip [sendAndSave] Frame 1
on (release) {
var agree1 = _parent.attachMovie("agree1", "agree1", _parent.getNextHighestDepth());
agree1._x = 145;
agree1._y = 150;
}
Instance of Symbol 342 MovieClip in Symbol 383 MovieClip [sendAndSave] Frame 1
on (release) {
_root.editor.paintButton.execute();
}
Instance of Symbol 361 MovieClip in Symbol 383 MovieClip [sendAndSave] Frame 1
on (release) {
getURL ("http://www.art.com/asp/customerservice/artpad_terms_of_use.asp/_/posters.htm?ui=665CEE742C5D4F6792B75BCDE4B2DAF9", "terms");
}
Instance of Symbol 368 MovieClip "toolTip" in Symbol 383 MovieClip [sendAndSave] Frame 1
on (release) {
this._alpha = 0;
this.enabled = false;
this._y = 1000;
}
Instance of Symbol 371 MovieClip in Symbol 383 MovieClip [sendAndSave] Frame 1
on (release) {
_parent.toolTip._alpha = 100;
_parent.toolTip.enabled = true;
_parent.toolTip._y = 245;
}
Symbol 390 MovieClip [saveConfirmation] Frame 1
this.paintingLink.htmlText = ((("<a href=\"http://artpad.art.com/?" + _root.linkID) + "\" target=\"gallery\">http://artpad.art.com/?") + _root.linkID) + "</a>";
Instance of Symbol 386 MovieClip in Symbol 390 MovieClip [saveConfirmation] Frame 1
on (release) {
_root.editor.paintButton.execute();
_parent.removeMovieClip();
}
Symbol 392 MovieClip [errorMessage] Frame 1
this.messageText.htmlText = _parent.errorMessageText;
Instance of Symbol 386 MovieClip in Symbol 392 MovieClip [errorMessage] Frame 1
on (release) {
_parent.removeMovieClip();
}
Symbol 398 Button
on (release) {
getURL ("http://www.art.com/asp/customerservice/artpad_terms_of_use.asp/_/posters.htm?ui=665CEE742C5D4F6792B75BCDE4B2DAF9", "terms");
}
Instance of Symbol 346 MovieClip in Symbol 399 MovieClip [agree1] Frame 1
on (release) {
_root.editor.sendAndSave.errorField.text = "";
_parent._parent.my_lv.yourName = _parent._parent.yourName.text;
_parent._parent.my_lv.yourEmail = _parent._parent.yourEmail.text;
_parent._parent.my_lv.theirName = _parent._parent.theirName.text;
_parent._parent.my_lv.theirEmail = _parent._parent.theirEmail.text;
_parent._parent.my_lv.galleryCheckbox = _parent._parent.galleryCheckbox.checked.toString();
_parent._parent.my_lv.newsletterCheckbox = _parent._parent.newsletterCheckbox.checked.toString();
_parent._parent.my_lv.message = _parent._parent.message.text;
if (_parent._parent.yourName.text == "") {
_parent._parent.errorField.text = "Your name is required.";
} else if (_parent._parent.yourEmail.text == "") {
_parent._parent.errorField.text = "Your email address is required.";
} else if (_parent._parent.theirEmail.text == "") {
_parent._parent.errorField.text = "Their email address is required.";
} else {
_root.save(true);
}
_parent.removeMovieClip();
}
Instance of Symbol 396 MovieClip in Symbol 399 MovieClip [agree1] Frame 1
on (release) {
var agree2 = _parent._parent.attachMovie("agree2", "agree2", _parent._parent.getNextHighestDepth());
agree2._x = 90;
agree2._y = 150;
_parent.removeMovieClip();
}
Symbol 401 Button
on (release) {
getURL ("http://www.art.com/asp/customerservice/artpad_terms_of_use.asp/_/posters.htm?ui=665CEE742C5D4F6792B75BCDE4B2DAF9", terms);
}
Instance of Symbol 386 MovieClip in Symbol 402 MovieClip [agree2] Frame 1
on (release) {
_parent.removeMovieClip();
}
Symbol 404 MovieClip [__Packages.navButton] Frame 0
class navButton extends MovieClip
{
var gotoAndStop, label;
function navButton () {
super();
}
function onRelease() {
gotoAndStop(1);
if (enabled) {
execute();
}
}
function execute() {
}
function enable() {
enabled = true;
label._alpha = 100;
}
function disable() {
enabled = false;
deselect();
label._alpha = 50;
}
function onRollOver() {
gotoAndStop(2);
}
function onRollOut() {
if (!selected) {
deselect();
}
}
function select() {
gotoAndStop(2);
selected = true;
label._alpha = 100;
}
function deselect() {
gotoAndStop(1);
selected = false;
}
var enabled = true;
var selected = false;
}
Symbol 405 MovieClip [__Packages.sendAndSaveButton] Frame 0
class sendAndSaveButton extends navButton
{
var _parent;
function sendAndSaveButton () {
super();
}
function execute() {
_parent.reset();
_parent.canvas.state = _parent.canvas.states.off;
_root.editor.paintButton.enable();
_root.editor.selectAFrameButton.enable();
_root.editor.hangInGalleryButton.enable();
_root.editor.attachMovie("sendAndSave", "sendAndSave", _root.editor.getNextHighestDepth());
_root.editor.sendAndSave._x = 204;
_root.editor.sendAndSave._y = 98;
}
}
Symbol 406 MovieClip [__Packages.leaveGalleryButton] Frame 0
class leaveGalleryButton extends navButton
{
var swapDepths, _parent;
function leaveGalleryButton () {
super();
}
function execute() {
swapDepths("_parent.hangInGalleryButton");
_root.editor.galleryPicker._alpha = 0;
_root.editor.galleryPicker._x = -186;
_parent.canvas._xscale = 100;
_parent.canvas._yscale = 100;
_parent.canvas._x = 0;
_parent.canvas._y = 0;
_parent.canvas.state = _parent.canvas.states.replay;
_parent.paintButton.execute();
}
}
Symbol 407 MovieClip [__Packages.hangInGalleryButton] Frame 0
class hangInGalleryButton extends navButton
{
var _parent, swapDepths;
function hangInGalleryButton () {
super();
}
function execute() {
_parent.reset();
_parent.canvas.state = _parent.canvas.states.off;
_parent.clickOnPosters._alpha = 100;
_root.editor.attachMovie("galleryPicker", "galleryPicker", _root.editor.getNextHighestDepth());
_root.editor.galleryPicker._x = 14;
_root.editor.galleryPicker._y = 91;
swapDepths("_parent.leaveGalleryButton");
_parent.canvas._xscale = 47;
_parent.canvas._yscale = 47;
_parent.canvas._x = 240;
_parent.canvas._y = 100;
var _local3 = new LoadVars();
_local3.sendAndLoad("/trackViewInGallery.php", _local3, "POST");
}
}
Symbol 408 MovieClip [__Packages.selectFrameButton] Frame 0
class selectFrameButton extends navButton
{
var _parent, select;
function selectFrameButton () {
super();
}
function execute() {
_parent.reset();
_parent.canvas.state = _parent.canvas.states.off;
_root.editor.attachMovie("framePicker", "framePicker", _root.editor.getNextHighestDepth());
_root.editor.framePicker._y = 91;
_root.editor.framePicker._x = 14;
_root.editor.paintButton.enable();
_root.editor.replayPaintingButton.enable();
_root.editor.hangInGalleryButton.enable();
_root.editor.saveAndSendButton.enable();
select();
}
}
Symbol 409 MovieClip [__Packages.replayPaintingButton] Frame 0
class replayPaintingButton extends navButton
{
var _parent, select;
function replayPaintingButton () {
super();
}
function execute() {
_root.editor.reset();
_root.editor.attachMovie("replayControl", "replayControl", _root.editor.getNextHighestDepth());
_root.editor.replayControl._x = 14;
_root.editor.replayControl._y = 91;
_parent.paintButton.enable();
_root.editor.canvas.replay();
select();
}
}
Symbol 410 MovieClip [__Packages.paintButton] Frame 0
class paintButton extends navButton
{
var _parent, select;
function paintButton () {
super();
}
function execute() {
_parent.reset();
if (_root.editor.current.canvas.state == _root.editor.current.canvas.states.replay) {
_root.editor.current.canvas.onEnterFrame = null;
_root.editor.current.canvas.erase();
_root.editor.current.canvas.redrawPainting();
if (_root.replayCursor != undefined) {
_root.replayCursor.removeMovieClip();
}
_root.editor.current.canvas.currentMove = -1;
_root.editor.current.canvas.paused = false;
}
_parent.canvas.state = _parent.canvas.states.edit;
_root.editor.framePicker._alpha = 0;
_root.editor.galleryPicker._alpha = 0;
_root.editor.selectAFrameButton.enable();
_root.editor.undoButton.enable();
_root.editor.replayPaintingButton.enable();
_root.editor.hangInGalleryButton.enable();
_root.editor.saveAndSendButton.enable();
_root.editor.startOverButton.enable();
select();
}
}
Symbol 411 MovieClip [__Packages.startOverButton] Frame 0
class startOverButton extends navButton
{
var _parent;
function startOverButton () {
super();
}
function execute() {
var _local3 = _parent.attachMovie("startOverConfirmation", "confirmation", _parent.getNextHighestDepth());
_local3._x = 325;
_local3._y = 225;
_root.editor.startOverButton.disable();
_root.editor.saveAndSendButton.disable();
_root.editor.hangInGalleryButton.disable();
_root.editor.selectAFrameButton.disable();
_root.editor.replayPaintingButton.disable();
_root.editor.undoButton.disable();
}
}
Symbol 412 MovieClip [__Packages.undoButton] Frame 0
class undoButton extends navButton
{
function undoButton () {
super();
}
function execute() {
_root.editor.canvas.undo();
}
}
Symbol 413 MovieClip [__Packages.paintColor] Frame 0
class paintColor extends MovieClip
{
var color;
function paintColor () {
super();
color = new Color(this);
}
function onRelease() {
_root.editor.current.canvas.tool.PaintColor = color.getRGB();
}
}
Symbol 414 MovieClip [__Packages.opacityScrubber] Frame 0
class opacityScrubber extends MovieClip
{
var _parent, onMouseMove, onMouseUp;
function opacityScrubber () {
super();
}
function get position() {
return(_parent._xmouse - 3);
}
function onPress() {
_root.editor.current.canvas.state = _root.editor.current.canvas.states.off;
onMouseMove = function () {
if (this.position < 0) {
this._x = 0;
} else if (this.position > 55) {
this._x = 55;
} else {
this._x = this.position;
}
_root.editor.current.canvas.opacity = Math.round(1.72 * this._x) + 5;
};
onMouseUp = function () {
this.onMouseMove = null;
this.onMouseUp = null;
_root.editor.current.canvas.state = _root.editor.current.canvas.states.edit;
};
}
}
Symbol 415 MovieClip [__Packages.sizeScrubber] Frame 0
class sizeScrubber extends MovieClip
{
var _parent, onMouseMove, onMouseUp;
function sizeScrubber () {
super();
}
function get position() {
return(_parent._xmouse);
}
function onPress() {
_root.editor.current.canvas.state = _root.editor.current.canvas.states.off;
onMouseMove = function () {
if (this.position < 0) {
this._x = -2;
} else if (this.position > 60) {
this._x = 58;
} else {
this._x = (Math.round(this.position / 12) * 12) - 2;
}
switch ((this._x + 2) / 12) {
case 0 :
_root.editor.current.canvas.size = "a";
break;
case 1 :
_root.editor.current.canvas.size = "s";
break;
case 2 :
_root.editor.current.canvas.size = "m";
break;
case 3 :
_root.editor.current.canvas.size = "l";
break;
case 4 :
_root.editor.current.canvas.size = "x";
break;
case 5 :
_root.editor.current.canvas.size = "z";
}
};
onMouseUp = function () {
this.onMouseMove = null;
this.onMouseUp = null;
_root.editor.current.canvas.state = _root.editor.current.canvas.states.edit;
};
}
}
Symbol 416 MovieClip [__Packages.paintCanvas] Frame 0
class paintCanvas extends MovieClip
{
var paint, createEmptyMovieClip, getNextHighestDepth, mask, attachMovie, history, tool, state, frame, _xmouse, _ymouse, currentNode, onEnterFrame, currentTextFieldText, _parent;
function paintCanvas () {
super();
paint = createEmptyMovieClip("paint", getNextHighestDepth());
mask = attachMovie("canvasMask", "mask", getNextHighestDepth());
mask._width = 523;
mask._height = 394;
mask._x = 196;
mask._y = 88;
paint.setMask(mask);
sizes.a = 1;
sizes.s = 6;
sizes.m = 12;
sizes.l = 18;
sizes.x = 24;
sizes.z = 50;
history = new XML();
var _local3 = history.createElement("f");
_local3.attributes.a = "0";
history.appendChild(_local3);
tool = (tools.paintBrush = new paintBrushState(this));
tools.paintBucket = new paintBucketState(this);
tools.text = new textState(this);
state = (states.edit = new editState(this));
states.replay = new replayState(this);
states.off = new replayState(this);
onMouseUp();
erase();
}
function setFrame(num) {
_root.linkID = null;
history.firstChild.attributes.a = num.toString();
if (frame != undefined) {
frame.removeMovieClip();
}
attachMovie("frame" + num, "frame", getNextHighestDepth());
frame._x = 175;
frame._y = 65;
}
function switchTools(toolName) {
if (tool != tools[toolName]) {
tool = tools[toolName];
}
}
function onMouseDown() {
if (isOnCanvas(_xmouse, _ymouse)) {
tool.onMouseDown();
}
}
function onMouseUp() {
if (state != states.off) {
tool.onMouseUp();
}
}
function beginLine(action) {
if ((layers[0]._x != 0) || (layers[0].getNextHighestDepth() > 0)) {
layers.unshift(paint.createEmptyMovieClip("drawingArea" + paint.getNextHighestDepth(), paint.getNextHighestDepth()));
}
var _local3 = action.attributes.a.split(",");
var _local6 = parseInt(_local3[2], 36);
var _local5 = parseInt(_local3[3], 36);
var _local4;
if (_local3[4].length > 0) {
_local4 = parseInt(_local3[4], 36);
} else {
_local4 = 80;
}
layers[0].lineStyle(sizes[_local3[0]], parseInt(_local3[1], 36), _local4);
layers[0].moveTo(_local6, _local5);
if (state == states.replay) {
showPaintBrushCursor("replayCursor", _local3[0]);
_root.replayCursor.moveCursor(parseInt(_local3[2], 36), parseInt(_local3[3], 36));
_root.replayCursor.setColor(parseInt(_local3[1], 36));
}
}
function drawLine(hexX, hexY) {
var _local4 = parseInt(hexX, 36) - 36;
var _local3 = parseInt(hexY, 36) - 36;
layers[0].lineTo(_local4, _local3);
if (state == states.replay) {
_root.replayCursor.moveCursor(_local4, _local3);
}
}
function replay() {
if (historyNodes.length == 0) {
return(undefined);
}
erase();
state = states.replay;
currentNode = 0;
showReplayCursor();
onEnterFrame = function () {
if (this.paused) {
return(undefined);
}
var _local3 = this.historyNodes[this.currentNode].nodeName;
if (this.parseReplayNode(this.historyNodes[this.currentNode])) {
if ((this.historyNodes[this.currentNode].nodeName == "b") && ((this.currentMove * 4) < this.historyNodes[this.currentNode].childNodes[0].nodeValue.toString().length)) {
} else if (this.currentNode < (this.historyNodes.length - 1)) {
this.currentMove = -1;
this.currentNode++;
} else {
this.currentMove = -1;
this.onEnterFrame = null;
if (_root.replayCursor != undefined) {
_root.replayCursor.removeMovieClip();
}
}
if ((this.historyNodes[this.currentNode].nodeName != null) && (this.historyNodes[this.currentNode].nodeName != _local3)) {
this.showReplayCursor();
}
if ((this.counter < this.speed) && ((this.historyNodes[this.currentNode].nodeName != "s") && (this.historyNodes[this.currentNode].nodeName != "f"))) {
this.counter++;
this.onEnterFrame();
} else if (this.counter >= this.speed) {
this.counter = 0;
}
} else if ((this.historyNodes[this.currentNode].nodeName != null) && (this.historyNodes[this.currentNode].nodeName != _local3)) {
this.showReplayCursor();
}
};
}
function parseReplayNode(node) {
switch (node.nodeName) {
case "b" :
if (currentMove == -1) {
beginLine(node);
} else {
drawLine(node.childNodes[0].nodeValue.substr(currentMove * 4, 2), node.childNodes[0].nodeValue.substr((currentMove * 4) + 2, 2));
}
currentMove++;
return(true);
case "s" :
if (counter > (10 - speed)) {
throwPaint(node);
counter = 0;
return(true);
}
counter++;
return(false);
case "t" :
return(replayTextNode(node));
case "f" :
return(true);
}
}
function replayTextNode(node) {
if (currentTextField == null) {
_root.replayCursor.removeMovieClip();
currentTextField = addTextField(node);
currentTextField.text = "";
}
if (currentTextField.text.length < currentTextFieldText.length) {
if (counter > (10 - speed)) {
currentTextField.text = currentTextFieldText.substr(0, currentTextField.text.length + 1);
counter = 0;
} else {
counter++;
}
return(false);
}
currentTextField = null;
return(true);
}
function showReplayCursor() {
if (historyNodes[currentNode].nodeName == "s") {
if (_root.replayCursor != undefined) {
_root.replayCursor.removeMovieClip();
}
_root.attachMovie("paintBucket", "replayCursor", _root.getNextHighestDepth());
}
}
function addTextField(node) {
var _local4 = node.attributes.a.split(",");
if (_parent.layers[0]._x != 0) {
layers.unshift(paint.createEmptyMovieClip("drawingArea" + paint.getNextHighestDepth(), paint.getNextHighestDepth()));
}
var _local2 = new TextFormat();
switch (_local4[3]) {
case "a" :
_local2.size = 12;
break;
case "s" :
_local2.size = 16;
break;
case "m" :
_local2.size = 20;
break;
case "l" :
_local2.size = 24;
break;
case "x" :
_local2.size = 28;
break;
default :
_local2.size = 32;
}
_local2.font = "paintFont";
_local2.color = parseInt(_local4[0], 36);
var _local5 = layers[0].getNextHighestDepth();
var _local6 = parseInt(_local4[1], 36);
var _local8 = parseInt(_local4[2], 36);
var _local7 = ((mask._width + mask._x) - _local6) + 5;
layers[0].createTextField("textField" + _local5, _local5, _local6, _local8, _local7, 1000);
var _local3 = layers[0]["textField" + _local5];
_local3.setNewTextFormat(_local2);
_local3.embedFonts = true;
_local3._alpha = parseInt(_local4[4], 36);
_local3.multiline = true;
_local3.wordWrap = true;
_local3.text = unescape(_local4[5]);
currentTextFieldText = _local3.text;
return(_local3);
}
function showPaintBrushCursor(n, s) {
if (_root[n] != undefined) {
_root[n].removeMovieClip();
}
var _local2;
switch (s) {
case "z" :
_local2 = "xxLargeBrush";
break;
case "x" :
_local2 = "xLargeBrush";
break;
case "l" :
_local2 = "largeBrush";
break;
case "s" :
_local2 = "smallBrush";
break;
case "a" :
_local2 = "pencil";
break;
default :
_local2 = "mediumBrush";
}
return(_root.attachMovie(_local2, n, _root.getNextHighestDepth()));
}
function parseNode(node) {
switch (node.nodeName) {
case "b" :
beginLine(node);
var _local2 = 0;
while ((_local2 * 4) < node.childNodes[0].nodeValue.toString().length) {
drawLine(node.childNodes[0].nodeValue.substr(_local2 * 4, 2), node.childNodes[0].nodeValue.substr((_local2 * 4) + 2, 2));
_local2++;
}
return(true);
case "s" :
throwPaint(node);
return(true);
case "t" :
addTextField(node);
return(true);
case "f" :
return(true);
}
}
function undo() {
var _local2 = tool;
historyNodes.pop();
redrawPainting();
if ((historyNodes[historyNodes.length - 1].nodeName == "s") && (tool == tools.paintBrush)) {
tools.paintBucket.switchTools();
}
}
function redrawPainting() {
erase();
var _local2 = 0;
while (_local2 < historyNodes.length) {
parseNode(historyNodes[_local2]);
_local2++;
}
}
function isOnCanvas(x, y) {
if ((((x > mask._x) && (x < (mask._x + mask._width))) && (y > mask._y)) && (y < (mask._y + mask._height))) {
return(true);
}
return(false);
}
function throwPaint(splatter) {
var _local3 = splatter.attributes.a.split(",");
var _local4 = paint.attachMovie("splatter" + _local3[0], "splatter" + paint.getNextHighestDepth(), paint.getNextHighestDepth());
_local4._x = parseInt(_local3[3], 36);
_local4._y = parseInt(_local3[4], 36);
var _local5 = new Color(_local4);
_local5.setRGB(parseInt(_local3[2], 36));
if (_local3[6].length > 0) {
_local4._alpha = parseInt(_local3[6], 36);
} else {
_local4._alpha = 80;
}
_local4._xscale = (_local4._yscale = Math.max(15, sizes[_local3[1]] * 5));
_local4._rotation = parseInt(_local3[5], 36);
layers.unshift(_local4);
if (state == states.replay) {
_root.replayCursor.moveCursor(parseInt(_local3[3], 36), parseInt(_local3[4], 36));
_root.replayCursor.setColor(parseInt(_local3[2], 36));
_root.replayCursor.setSize(_local3[1]);
}
}
function erase() {
var _local2 = 0;
while (_local2 < layers.length) {
layers[_local2].removeMovieClip();
_local2++;
}
layers = new Array(paint.createEmptyMovieClip("drawingArea" + paint.getNextHighestDepth(), paint.getNextHighestDepth()));
}
var size = "m";
var sizes = new Object();
var opacity = 80;
var layers = new Array();
var historyNodes = new Array();
var states = new Object();
var tools = new Object();
var counter = 0;
var speed = 1;
var currentMove = -1;
var color = 8323072;
var paused = false;
var currentTextField = null;
}
Symbol 417 MovieClip [__Packages.IState] Frame 0
interface IState
{
}
Symbol 418 MovieClip [__Packages.IToolState] Frame 0
interface IToolState
{
}
Symbol 419 MovieClip [__Packages.paintBrushState] Frame 0
class paintBrushState implements IToolState
{
var _parent, paintBrush, __get__PaintColor;
function paintBrushState (parent) {
_parent = parent;
}
function set PaintColor(c) {
paintBrush.setColor(c);
_parent.color = c;
paintBrush.tool.paint._alpha = _parent.opacity;
//return(__get__PaintColor());
}
function showCursor() {
paintBrush = _parent.showPaintBrushCursor("cursor", _parent.size);
PaintColor = (_parent.color);
}
function onMouseDown() {
_parent.state.beginLine();
}
function onMouseUp() {
_parent.onMouseMove = null;
}
}
Symbol 420 MovieClip [__Packages.paintBucketState] Frame 0
class paintBucketState implements IToolState
{
var _parent, bucket, __get__PaintColor;
function paintBucketState (parent) {
_parent = parent;
}
function set PaintColor(c) {
bucket.setColor(c);
_parent.color = c;
bucket.tool.paint._alpha = _parent.opacity;
//return(__get__PaintColor());
}
function onMouseDown() {
}
function onMouseUp() {
_parent.state.throwPaint();
}
function showCursor() {
if (_root.cursor != undefined) {
_root.cursor.removeMovieClip();
}
bucket = _root.attachMovie("paintBucket", "cursor", _root.getNextHighestDepth());
_parent.setSize(_parent.size);
bucket.setSize(_parent.size);
PaintColor = (_parent.color);
}
}
Symbol 421 MovieClip [__Packages.textState] Frame 0
class textState implements IToolState
{
var _parent, paintBrush, __get__PaintColor;
function textState (parent) {
_parent = parent;
}
function set PaintColor(c) {
paintBrush.setColor(c);
_parent.color = c;
paintBrush.tool.paint._alpha = _parent.opacity;
//return(__get__PaintColor());
}
function showCursor() {
if (_root.cursor != undefined) {
_root.cursor.removeMovieClip();
}
_root.attachMovie("textCursor", "cursor", _root.getNextHighestDepth());
}
function onMouseDown() {
}
function onMouseUp() {
if (_parent.isOnCanvas(_xmouse, _ymouse)) {
_parent.state.writeText();
}
}
}
Symbol 422 MovieClip [__Packages.editState] Frame 0
class editState implements IState
{
var _parent;
function editState (parent) {
_parent = parent;
}
function beginLine() {
_root.linkID = null;
_parent.tempLine = _parent.history.createElement("b");
_parent.tempLine.attributes.a = (((((((_parent.size + ",") + _parent.color.toString(36)) + ",") + (_parent._xmouse - 1).toString(36)) + ",") + (_parent._ymouse - 1).toString(36)) + ",") + _parent.opacity.toString(36);
_parent.onMouseMove = function () {
if ((_xmouse > 0) && (_ymouse > 0)) {
var _local3 = (_xmouse + 36).toString(36);
var _local2 = (_ymouse + 36).toString(36);
if (this.tempLine.childNodes.length == 0) {
this.historyNodes.push(this.tempLine);
this.beginLine(this.tempLine);
var _local4 = this.history.createTextNode(_local3 + _local2);
this.tempLine.appendChild(_local4);
}
this.tempLine.childNodes[0].nodeValue = this.tempLine.childNodes[0].nodeValue + (_local3 + _local2);
this.drawLine(_local3, _local2);
updateAfterEvent();
} else {
this.onMouseUp();
}
};
_parent.onMouseMove();
}
function throwPaint() {
if (_parent.isOnCanvas(_parent._xmouse, _parent._ymouse)) {
_root.linkID = null;
var _local3 = splatterNum;
while (_local3 == splatterNum) {
_local3 = Math.ceil(Math.random() * 10);
}
splatterNum = _local3;
var _local5 = Math.ceil(Math.random() * 360);
var _local4 = _parent.history.createElement("s");
_local4.attributes.a = (((((((((((splatterNum + ",") + _parent.size) + ",") + _parent.color.toString(36)) + ",") + _parent._xmouse.toString(36)) + ",") + _parent._ymouse.toString(36)) + ",") + _local5.toString(36)) + ",") + _parent.opacity.toString(36);
_parent.historyNodes.push(_local4);
_parent.throwPaint(_local4);
}
}
function writeText() {
var _local4 = _parent.history.createElement("t");
_local4.attributes.a = ((((((((_parent.color.toString(36) + ",") + (_parent.paint._xmouse - 10).toString(36)) + ",") + (_parent.paint._ymouse - 20).toString(36)) + ",") + _parent.size) + ",") + _parent.opacity.toString(36)) + ",";
var _local5 = _parent.addTextField(_local4);
_local5.type = "input";
_local5.onKillFocus = function (newFocus) {
this.type = "dynamic";
this.selectable = false;
if (this.text.length > 0) {
var _local4 = _root.editor.canvas.history.createElement("t");
_local4.attributes.a = ((((this.textColor.toString(36) + ",") + this._x.toString(36)) + ",") + this._y.toString(36)) + ",";
var _local5 = this.getTextFormat();
var _local3;
switch (_local5.size) {
case 12 :
_local3 = "a";
break;
case 16 :
_local3 = "s";
break;
case 20 :
_local3 = "m";
break;
case 24 :
_local3 = "l";
break;
case 28 :
_local3 = "x";
break;
default :
_local3 = "z";
}
_local4.attributes.a = _local4.attributes.a + ((((_local3 + ",") + Math.ceil(this._alpha)) + ",") + escape(this.text));
_root.editor.canvas.historyNodes.push(_local4);
}
};
Selection.setFocus(targetPath(_local5));
}
var splatterNum = 1;
}
Symbol 423 MovieClip [__Packages.replayState] Frame 0
class replayState implements IState
{
var _parent;
function replayState (parent) {
_parent = parent;
}
function beginLine() {
}
function throwPaint() {
}
function writeText() {
}
}
Symbol 424 MovieClip [__Packages.editor] Frame 0
class editor extends MovieClip
{
var getNextHighestDepth, current, attachMovie, canvas;
function editor () {
super();
}
function navigate(name) {
var _local2 = getNextHighestDepth();
if (current != undefined) {
current.removeMovieClip();
}
current = attachMovie(name, name + _local2, _local2);
reset();
}
function reset() {
var _local3 = 0;
while (_local3 < buttons.length) {
this[buttons[_local3] + "Button"].disable();
_local3++;
}
canvas._x = 0;
canvas._y = 0;
canvas._xscale = 100;
canvas._yscale = 100;
if (_root.editor.framePicker != undefined) {
_root.editor.framePicker.removeMovieClip();
}
if (_root.editor.gallery != undefined) {
_root.editor.gallery.removeMovieClip();
}
if (_root.editor.galleryPicker != undefined) {
_root.editor.galleryPicker.removeMovieClip();
}
if (_root.editor.replayControl != undefined) {
_root.editor.replayControl.removeMovieClip();
}
if (_root.editor.sendAndSave != undefined) {
_root.editor.sendAndSave.removeMovieClip();
}
}
var buttons = new Array("paint", "undo", "replayPainting", "selectAFrame", "hangInGallery", "saveAndSend", "startOver");
}
Symbol 425 MovieClip [__Packages.cursor] Frame 0
class cursor extends MovieClip
{
var _x, _y, _xscale, _yscale, tool;
function cursor () {
super();
_x = -200;
_y = -200;
}
function moveCursor(x, y) {
_x = x;
_y = y;
}
function setSize(name) {
switch (name) {
case "a" :
_xscale = (_yscale = 25);
break;
case "s" :
_xscale = (_yscale = 40);
break;
case "m" :
_xscale = (_yscale = 55);
break;
case "l" :
_xscale = (_yscale = 70);
break;
case "x" :
_xscale = (_yscale = 85);
break;
case "z" :
_xscale = (_yscale = 100);
}
}
function setColor(color) {
var _local2 = new Color(tool.paint);
_local2.setRGB(color);
}
}
Symbol 426 MovieClip [__Packages.paintBrush] Frame 0
class paintBrush extends cursor
{
var tool, shadow, _x, _y;
function paintBrush () {
super();
}
function moveCursor(x, y) {
tool._rotation = Math.atan2(y + 50, x) * 57.2957795130823;
shadow._rotation = tool._rotation / 2;
_x = x;
_y = y;
}
}
Symbol 427 MovieClip [__Packages.galleryButton] Frame 0
class galleryButton extends navButton
{
var _parent, galleryName, enabled, gotoAndStop;
function galleryButton () {
super();
enable();
}
function execute() {
_parent.reset();
_parent._parent.attachMovie(galleryName, "gallery", _parent._parent.getNextHighestDepth());
_parent._parent.gallery._y = 88;
_parent._parent.gallery._x = 193;
_parent._parent.canvas.swapDepths(_parent._parent.getNextHighestDepth());
disable();
}
function enable() {
enabled = true;
gotoAndStop(1);
}
function disable() {
enabled = false;
gotoAndStop(2);
}
}
Symbol 428 MovieClip [__Packages.speedScrubber] Frame 0
class speedScrubber extends MovieClip
{
var _parent, onMouseMove, onMouseUp;
function speedScrubber () {
super();
}
function get position() {
return(_parent._xmouse - 3);
}
function onPress() {
onMouseMove = function () {
if (this.position < 37) {
this._x = 37;
} else if (this.position > 107) {
this._x = 107;
} else {
this._x = this.position;
}
_root.editor.current.canvas.speed = Math.round((this._x - 36) / 10) + 1;
};
onMouseUp = function () {
this.onMouseMove = null;
this.onMouseUp = null;
};
}
}
Symbol 429 MovieClip [__Packages.pauseButton] Frame 0
class pauseButton extends navButton
{
var gotoAndStop, onRollOver, onRollOut;
function pauseButton () {
super();
}
function onRelease() {
if (_root.editor.current.canvas.paused) {
gotoAndStop(1);
onRollOver = function () {
this.gotoAndStop(2);
};
onRollOut = function () {
this.gotoAndStop(1);
};
} else {
gotoAndStop(3);
onRollOver = function () {
this.gotoAndStop(4);
};
onRollOut = function () {
this.gotoAndStop(3);
};
}
_root.editor.current.canvas.paused = !_root.editor.current.canvas.paused;
}
}
Symbol 430 MovieClip [__Packages.checkbox] Frame 0
class checkbox extends MovieClip
{
var checkmark;
function checkbox () {
super();
}
function onRelease() {
checked = !checked;
if (checked) {
checkmark._alpha = 100;
} else {
checkmark._alpha = 0;
}
}
var checked = true;
}