this.createEmptyMovieClip("canvas_mc", 999);
var
isDrawing:Boolean = false;
clear_btn.onRelease = function()
{
canvas_mc.clear();
};
var mouseListener:Object = new
Object();
mouseListener.onMouseDown = function() {
canvas_mc.lineStyle(5, 0xFF0000, 100);
canvas_mc.moveTo(_xmouse, _ymouse);
isDrawing =
true;
};
mouseListener.onMouseMove = function() {
if (isDrawing)
{
canvas_mc.lineTo(_xmouse,
_ymouse);
updateAfterEvent();
}
};
mouseListener.onMouseUp =
function() {
isDrawing =
false;
};
Mouse.addListener(mouseListener);
var left = bar5._x+slider5._width/2-132;
var right = bar5._x+bar5._width-slider5._width/2-117
;
var bottom = top = bar5._y;
slider5.onPress =
function() {
this.startDrag(true, left, top, right,bottom);
};
slider5.onRelease =
function() {
this.stopDrag();
};
onMouseMove = function() {
var per =
Math.ceil((slider5._x-left)/(right-left)*100*0.59);
yy5._rotation = per;
};
slider5.onReleaseOutside = slider5.onRelease;
var
isDrawing:Boolean = false;
clear_btn.onRelease = function()
{
canvas_mc.clear();
};
var mouseListener:Object = new
Object();
mouseListener.onMouseDown = function() {
canvas_mc.lineStyle(5, 0xFF0000, 100);
canvas_mc.moveTo(_xmouse, _ymouse);
isDrawing =
true;
};
mouseListener.onMouseMove = function() {
if (isDrawing)
{
canvas_mc.lineTo(_xmouse,
_ymouse);
updateAfterEvent();
}
};
mouseListener.onMouseUp =
function() {
isDrawing =
false;
};
Mouse.addListener(mouseListener);
var left = bar5._x+slider5._width/2-132;
var right = bar5._x+bar5._width-slider5._width/2-117
;
var bottom = top = bar5._y;
slider5.onPress =
function() {
this.startDrag(true, left, top, right,bottom);
};
slider5.onRelease =
function() {
this.stopDrag();
};
onMouseMove = function() {
var per =
Math.ceil((slider5._x-left)/(right-left)*100*0.59);
yy5._rotation = per;
};
slider5.onReleaseOutside = slider5.onRelease;