Frame 1
var colorc = (new flash.geom.ColorTransform());
var thick = 5;
this.createEmptyMovieClip("buto4", 5);
buto4.lineStyle(1, 0);
buto4.beginFill(0);
buto4.lineTo(20, 0);
buto4.lineTo(20, 20);
buto4.lineTo(0, 20);
buto4.endFill();
buto4._x = 525;
buto4._y = 375;
buto4.onPress = function () {
down = false;
print (this._parent.ras, "bframe");
};
this.createTextField("butop", -7, 495, 375, 80, 20);
butop.text = "print";
this.createTextField("butot", -6, 30, 10, 80, 20);
butot.text = "Thickness";
this.createTextField("butoc", -3, 30, 35, 80, 20);
butoc.text = "Change Color";
this.createTextField("butoe", -2, 30, 60, 60, 20);
butoe.text = "Clear";
this.createEmptyMovieClip("buto3", -5);
buto3.lineStyle(1, 0);
buto3.beginFill(0);
buto3.lineTo(20, 0);
buto3.lineTo(20, 20);
buto3.lineTo(0, 20);
buto3.endFill();
buto3._x = 5;
buto3._y = 5;
buto3.onPress = function () {
down = false;
((thick == 1) ? ((thick = 5)) : ((thick = 1)));
((this._yscale == 100) ? ((this._yscale = 10)) : ((this._yscale = 100)));
};
this.createEmptyMovieClip("buto", 0);
buto.lineStyle(1, 0);
buto.beginFill(0);
buto.lineTo(20, 0);
buto.lineTo(20, 20);
buto.lineTo(0, 20);
buto.endFill();
var cl = "0x000000";
buto.onPress = function () {
down = false;
((cl == "0x000000") ? ((cl = "0xFC2525")) : ((cl = "0x000000")));
((this._parent.colorc.rgb == 0) ? ((this._parent.colorc.rgb = 16524581)) : ((this._parent.colorc.rgb = 0)));
this.transform.colorTransform = colorc;
};
buto._x = 5;
buto._y = 30;
this.createEmptyMovieClip("buto2", -1);
buto2.lineStyle(1, 0);
buto2.beginFill(0);
buto2.lineTo(20, 0);
buto2.lineTo(20, 20);
buto2.lineTo(0, 20);
buto2.endFill();
var cl = "0x000000";
buto2._x = 5;
buto2._y = 55;
buto2.onPress = function () {
down = false;
ras.clear();
};
this.createEmptyMovieClip("ras", 1);
var down = false;
onMouseDown = function () {
down = true;
};
onMouseUp = function () {
down = false;
};
onMouseMove = function () {
if (down) {
ras.lineStyle(thick, cl);
ras.lineTo(_xmouse, _ymouse);
} else {
ras.moveTo(_xmouse, _ymouse);
}
};