[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 2 (2.15 KiB) ●
stop();
function init() {
lineStyle(3, 0, 100);
}
function draw() {
lineTo(_xmouse, _ymouse);
}
webcam_btn.onRelease = function () {
c = Camera.get();
webCam.attachVideo(c);
webCam._alpha = 75;
};
initialLine = 1;
penSize_txt.text = initialLine;
initialColor = 0;
color_txt.text = "black";
init();
onMouseDown = function () {
moveTo(_xmouse, _ymouse);
onMouseMove = draw;
};
onMouseUp = function () {
delete onMouseMove;
};
red_btn.onRelease = function () {
initialColor = 16711680 /* 0xFF0000 */;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "red";
};
black_btn.onRelease = function () {
initialColor = 0;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "black";
};
blue_btn.onRelease = function () {
initialColor = 255;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "blue";
};
green_btn.onRelease = function () {
initialColor = 65280;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "green";
};
orange_btn.onRelease = function () {
initialColor = 16750848 /* 0xFF9900 */;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "orange";
};
yellow_btn.onRelease = function () {
initialColor = 16776960 /* 0xFFFF00 */;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "yellow";
};
purple_btn.onRelease = function () {
initialColor = 13382604 /* 0xCC33CC */;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "purple";
};
white_btn.onRelease = function () {
initialColor = 16777215 /* 0xFFFFFF */;
lineStyle(initialLine, initialColor, 100);
color_txt.text = "white";
};
thinLine_btn.onRelease = function () {
initialLine = 1;
penSize_txt.text = initialLine;
lineStyle(initialLine, initialColor, 100);
};
thickLine_btn.onRelease = function () {
initialLine = 3;
penSize_txt.text = initialLine;
lineStyle(initialLine, initialColor, 100);
};
thickerLine_btn.onRelease = function () {
initialLine = 5;
penSize_txt.text = initialLine;
lineStyle(initialLine, initialColor, 100);
};
clear_btn.onRelease = function () {
clear();
};
replay_btn.onRelease = function () {
clear();
lineStyle(3, 0, 100);
};
Symbol 10 Button (64 B)
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 15 Button (31 B)
on (release) {
_root.play();
}
Symbol 16 MovieClip Frame 1 (186 B)
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 16 MovieClip Frame 2 (17 B)
gotoAndPlay (1);