Frame 1
_root.createEmptyMovieClip("line", 1);
_root.markeralpha = 90;
_root.markerwidth = 6;
_root.markercolour = "0x000000";
line.swapDepths(2);
_root.onMouseDown = function () {
var _local1 = _root;
line.moveTo(_xmouse, _ymouse);
line.lineStyle(_local1.markerwidth, _local1.markercolour, _local1.markeralpha);
this.onEnterFrame = function () {
line.lineTo(_xmouse, _ymouse);
};
};
_root.onMouseUp = function () {
this.onEnterFrame = null;
};
bungy.onPress = function () {
_root.markeralpha = 0;
};
buttonErase.onPress = function () {
_root.line.clear();
};
col_green.onPress = function () {
_root.markercolour = "0x339900";
};
col_blue.onPress = function () {
_root.markercolour = "0x3366FF";
};
col_red.onPress = function () {
_root.markercolour = "0x990000";
};
col_black.onPress = function () {
_root.markercolour = "0x000000";
};
Instance of Symbol 2 MovieClip "mask" in Frame 1
onClipEvent (load) {
this.swapDepths(10);
}
Instance of Symbol 5 MovieClip "buttonErase" in Frame 1
onClipEvent (load) {
this.swapDepths(15);
}
Instance of Symbol 8 MovieClip "col_green" in Frame 1
onClipEvent (load) {
this.swapDepths(21);
}
Instance of Symbol 10 MovieClip "col_blue" in Frame 1
onClipEvent (load) {
this.swapDepths(20);
}
Instance of Symbol 12 MovieClip "col_red" in Frame 1
onClipEvent (load) {
this.swapDepths(23);
}
Instance of Symbol 14 MovieClip "col_black" in Frame 1
onClipEvent (load) {
this.swapDepths(22);
}
Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(100);
}
Instance of Symbol 19 MovieClip "pen" in Frame 1
onClipEvent (load) {
this.swapDepths(200);
Mouse.hide();
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(275 - this._y, 250 - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
this._rotation = myDegrees + 90;
this._x = _root._xmouse;
this._y = _root._ymouse;
}