Frame 1
Stage.showMenu = false;
Button.prototype.useHandCursor = false;
Instance of Symbol 17 MovieClip in Frame 1
onClipEvent (load) {
_x = 180;
_y = 155;
}
Frame 2
function imprt(SAcode) {
stopAnim();
debug("Importing animation");
var _local7;
var _local6;
var _local5;
var _local3;
var _local2;
var _local4;
var _local11;
var _local8;
var _local9;
_local7 = SAcode.split("-");
fps = Number(_local7[0]);
_local3 = 0;
while (_local3 < Joints.length) {
_local2 = _root[Joints[_local3] + "f"];
_local2.splice(0, _local2.length);
_local3++;
}
Lengths.splice(0, Lengths.length);
_local3 = 0;
while (_local3 < _local7.length) {
if (_local3 > 0) {
_local4 = _root[Joints[_local3 - 1] + "f"];
_local6 = _local7[_local3].split("|");
_local2 = 0;
while (_local2 < _local6.length) {
_local5 = _local6[_local2].split(",");
_local4[_local2] = new Array();
_local4[_local2][0] = Number(_local5[0]);
_local4[_local2][1] = Number(_local5[1]);
_local2++;
}
}
_local3++;
}
_local8 = _local6.length - 1;
_local9 = selectedTool;
selectedTool = Tools[1];
_local3 = 0;
while (_local3 <= _local8) {
frameNum = _local3;
Lengths[frameNum] = new Array();
generateFrame(_local3);
stretchJoints();
_local3++;
}
selectedTool = _local9;
maxFrames = (frameNum = _local8);
generateFrame(frameNum);
}
function exportForSA(toggleSymbols) {
var _local7;
var _local6;
var _local2;
var _local3;
var _local4;
if (maxFrames < 1) {
newFrame();
}
_local4 = (toggleSymbols ? (fps) : ("[\n" + fps));
_local6 = 0;
while (_local6 < Joints.length) {
_local4 = _local4 + (toggleSymbols ? "\r-" : ",\r[");
_local3 = _root[Joints[_local6] + "f"];
_local2 = 0;
while (_local2 < _local3.length) {
if (!toggleSymbols) {
_local4 = _local4 + ((_local2 == 0) ? "[" : ",[");
_local4 = _local4 + (((_local3[_local2][0] + ",") + _local3[_local2][1]) + "]");
} else {
_local4 = _local4 + ((_local2 < (_local3.length - 1)) ? (((_local3[_local2][0] + ",") + _local3[_local2][1]) + "|") : ((_local3[_local2][0] + ",") + _local3[_local2][1]));
}
_local2++;
}
_local4 = _local4 + (toggleSymbols ? "" : "]");
_local6++;
}
_local4 = _local4 + (toggleSymbols ? "" : "\r]");
return(_local4);
}
function exportForAS() {
var _local1;
var _local3;
var _local2;
_local2 = Circle1.diameter / 2;
_local3 = exportForSA(false);
_local1 = "// MADE WITH STICK ANIMATOR V2.0 BY NAMZORG\n";
_local1 = _local1 + (("// Compatible with Flash MX and higher\n// Stage width : 300\n// Stage height : 300\n// Frames per second : " + fps) + newline);
_local1 = _local1 + (("var myAnimation = " + _local3) + ";\n");
_local1 = _local1 + "var currentFrame = 0;\n";
_local1 = _local1 + (("var lastFrame = " + (Headf.length - 1)) + ";\n");
_local1 = _local1 + "this.createEmptyMovieClip(\"Head\",1);\n";
_local1 = _local1 + "with(this.Head){\n";
_local1 = _local1 + "\tvar a, rad;\n";
_local1 = _local1 + "\tlineStyle(0);\n";
_local1 = _local1 + "\tbeginFill(0x000000,100);\n";
_local1 = _local1 + (("\tmoveTo(0,-" + _local2) + ");\n");
_local1 = _local1 + "\tfor(a = 0; a<= 360; a++){\n";
_local1 = _local1 + "\t\trad = (a*Math.PI)/180;\n";
_local1 = _local1 + (((((("\t\tlineTo(Math.cos(rad)*" + _local2) + ",-") + _local2) + "+Math.sin(rad)*") + _local2) + ");\n");
_local1 = _local1 + "\t}\tendFill();\n}\n";
_local1 = _local1 + "this.onEnterFrame = function ()\n{\n";
_local1 = _local1 + "clear();\n";
_local1 = _local1 + "lineStyle(5,0x000000,100);\n";
_local1 = _local1 + "if(++currentFrame > lastFrame)\n";
_local1 = _local1 + "\tcurrentFrame = 0;\n";
_local1 = _local1 + "moveTo(myAnimation[1][currentFrame][0],myAnimation[1][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[3][currentFrame][0],myAnimation[3][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[4][currentFrame][0],myAnimation[4][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[5][currentFrame][0],myAnimation[5][currentFrame][1]);\n";
_local1 = _local1 + "moveTo(myAnimation[3][currentFrame][0],myAnimation[3][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[6][currentFrame][0],myAnimation[6][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[7][currentFrame][0],myAnimation[7][currentFrame][1]);\n";
_local1 = _local1 + "moveTo(myAnimation[1][currentFrame][0],myAnimation[1][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[8][currentFrame][0],myAnimation[8][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[9][currentFrame][0],myAnimation[9][currentFrame][1]);\n";
_local1 = _local1 + "moveTo(myAnimation[1][currentFrame][0],myAnimation[1][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[10][currentFrame][0],myAnimation[10][currentFrame][1]);\n";
_local1 = _local1 + "lineTo(myAnimation[11][currentFrame][0],myAnimation[11][currentFrame][1]);\n";
_local1 = _local1 + "Head._x = myAnimation[3][currentFrame][0];\n";
_local1 = _local1 + "Head._y = myAnimation[3][currentFrame][1];\n";
_local1 = _local1 + "var dx = myAnimation[3][currentFrame][0] - myAnimation[2][currentFrame][0];\n";
_local1 = _local1 + "var dy = myAnimation[3][currentFrame][1] - myAnimation[2][currentFrame][1];\n";
_local1 = _local1 + "var d = Math.sqrt(dx*dx+dy*dy);\n";
_local1 = _local1 + "Head._rotation = (Math.atan2(dy,dx)*180/Math.PI)-90;\n";
_local1 = _local1 + (("Head._xscale = Head._yscale = (d/" + (_local2 * 2)) + ")*100;\n");
_local1 = _local1 + "};";
return(_local1);
}
function resetStage() {
for (var _local2 in Joints) {
j = Joints[_local2];
_root[j + "f"].splice(0, _root[j + "f"].length);
}
for (var _local2 in Lengths) {
j = Lengths[_local2];
j.splice(0, j.length);
}
Lengths[0].copy(DefaultLengths);
frameNum = (maxFrames = 0);
fps = 12;
seperateJoints();
selectedTool = Tools[0];
Circle2._x = (Circle1._x = -100);
}
function playAnim() {
if (!playing) {
if (maxFrames == 0) {
newFrame();
}
playing = true;
frameNum = 0;
Animation = setInterval(nextF, 1000 / fps);
}
}
function stopAnim() {
if (playing) {
playing = false;
clearInterval(Animation);
frameNum = maxFrames;
var _local1 = ((maxFrames == 0) ? 0 : (frameNum - 1));
generateFrame(_local1);
}
}
function nextF() {
clear();
drawFrame(frameNum++, 100, "Circle0");
if (frameNum >= maxFrames) {
frameNum = 0;
}
}
function newFrame() {
if (!playing) {
debug("Generating new frame");
for (var _local3 in Joints) {
var _local2 = _root[Joints[_local3]];
_root[_local2._name + "f"][frameNum] = new Array(_local2._x, _local2._y);
}
if (frameNum == maxFrames) {
frameNum++;
maxFrames++;
Lengths[frameNum] = new Array();
Lengths[frameNum].copy(DefaultLengths);
}
}
}
function deleteFrame(f) {
if (!playing) {
if (f > 0) {
debug("Deleting frame " + f);
for (var _local3 in Joints) {
_root[Joints[_local3] + "f"].splice(f, 1);
}
Lengths.splice(f, 1);
frameNum = --maxFrames;
}
}
}
function drawFrame(f, al, h) {
lineStyle(5, 0, al);
moveTo(Neckf[f][0], Neckf[f][1]);
lineTo(Waistf[f][0], Waistf[f][1]);
lineTo(Lkneef[f][0], Lkneef[f][1]);
lineTo(Lfootf[f][0], Lfootf[f][1]);
moveTo(Waistf[f][0], Waistf[f][1]);
lineTo(Rkneef[f][0], Rkneef[f][1]);
lineTo(Rfootf[f][0], Rfootf[f][1]);
moveTo(Neckf[f][0], Neckf[f][1]);
lineTo(Lelbowf[f][0], Lelbowf[f][1]);
lineTo(Lhandf[f][0], Lhandf[f][1]);
moveTo(Neckf[f][0], Neckf[f][1]);
lineTo(Relbowf[f][0], Relbowf[f][1]);
lineTo(Rhandf[f][0], Rhandf[f][1]);
var c = eval (h);
c._x = Neckf[f][0];
c._y = Neckf[f][1];
var dx = (Headf[f][0] - Neckf[f][0]);
var dy = (Headf[f][1] - Neckf[f][1]);
var d = Math.sqrt((dx * dx) + (dy * dy));
c._rotation = ((Math.atan2(dy, dx) * 180) / Math.PI) + 90;
c._xscale = (c._yscale = (d / c.diameter) * 100);
c._alpha = al;
}
function generateFrame(f) {
debug("Generating frame " + f);
for (var _local4 in Joints) {
var _local2 = _root[Joints[_local4]];
_local2._x = _root[_local2._name + "f"][f][0];
_local2._y = _root[_local2._name + "f"][f][1];
}
}
function onionSkin() {
if (frameNum > 0) {
drawFrame(frameNum - 1, 30, "Circle1");
} else {
Circle1._x = -100;
}
if (frameNum > 1) {
drawFrame(frameNum - 2, 10, "Circle2");
} else {
Circle2._x = -100;
}
}
function seperateJoints() {
if (!playing) {
debug("Seperating/resetting joints");
var _local4 = selectedTool;
selectedTool = Tools[0];
for (var _local3 in Joints) {
var _local2 = _root[Joints[_local3]];
_local2._x = _local2.cx;
_local2._y = _local2.cy;
}
setJoints();
selectedTool = _local4;
}
}
function setJoint(smc, emc, l) {
var s = eval (smc);
var e = eval (emc);
var dx = (e._x - s._x);
var dy = (e._y - s._y);
var d = Math.sqrt((dx * dx) + (dy * dy));
if (selectedTool == "Rotate") {
e._x = Math.round(s._x + ((dx / d) * l));
e._y = Math.round(s._y + ((dy / d) * l));
}
moveTo(s._x, s._y);
lineTo(e._x, e._y);
return(d);
}
function setJoints() {
lineStyle(5, 0, 100);
setJoint("Waist", "Neck", Lengths[frameNum][0]);
setJoint("Neck", "Head", Lengths[frameNum][1]);
setJoint("Neck", "Lelbow", Lengths[frameNum][2]);
setJoint("Lelbow", "Lhand", Lengths[frameNum][3]);
setJoint("Neck", "Relbow", Lengths[frameNum][4]);
setJoint("Relbow", "Rhand", Lengths[frameNum][5]);
setJoint("Waist", "Lknee", Lengths[frameNum][6]);
setJoint("Lknee", "Lfoot", Lengths[frameNum][7]);
setJoint("Waist", "Rknee", Lengths[frameNum][8]);
setJoint("Rknee", "Rfoot", Lengths[frameNum][9]);
}
function stretchJoints() {
lineStyle(5, 0, 100);
Lengths[frameNum][0] = setJoint("Waist", "Neck");
Lengths[frameNum][1] = setJoint("Neck", "Head");
Lengths[frameNum][2] = setJoint("Neck", "Lelbow");
Lengths[frameNum][3] = setJoint("Lelbow", "Lhand");
Lengths[frameNum][4] = setJoint("Neck", "Relbow");
Lengths[frameNum][5] = setJoint("Relbow", "Rhand");
Lengths[frameNum][6] = setJoint("Waist", "Lknee");
Lengths[frameNum][7] = setJoint("Lknee", "Lfoot");
Lengths[frameNum][8] = setJoint("Waist", "Rknee");
Lengths[frameNum][9] = setJoint("Rknee", "Rfoot");
}
function setUp() {
var _local2;
var _local4;
var _local5;
var _local3;
var _local6;
_local5 = 35;
_local2 = 0;
while (_local2 < 2) {
_local4 = 15 + (_local2 * 30);
attachMovie("Checkbox", "button" + _local2, 100001 + _local2, {_x:_local4, _y:_local5, tool:Tools[_local2]});
attachMovie("Icon", "icon" + _local2, 100003 + _local2, {_x:_local4, _y:_local5}).gotoAndStop(Tools[_local2]);
_local2++;
}
_local3 = 0;
_local2 = 0;
while (_local2 <= 2) {
if (_local2 == 0) {
createEmptyMovieClip("Circle" + _local2, _local3++).makeHead();
} else {
createEmptyMovieClip("Circle" + _local2, _local3++).makeShadowHead();
}
_local2++;
}
for (_local2 in Joints) {
_local6 = _root[Joints[_local2]];
_local6.swapDepths(_local3++);
_root[Joints[_local2] + "f"] = new Array();
}
Lengths[0] = new Array();
Lengths[0].copy(DefaultLengths);
debug("Setup complete");
}
function update() {
var _local3;
var _local2;
if (!playing) {
clear();
for (_local2 in Joints) {
_local3 = _root[Joints[_local2]];
_local3.update();
}
if (selectedTool == "Rotate") {
setJoints();
} else if (selectedTool == "Stretch") {
stretchJoints();
}
_local2 = 0;
while (_local2 <= 2) {
_root["Circle" + _local2].update();
_local2++;
}
lastx = Waist._x;
lasty = Waist._y;
if (onionSkinning) {
onionSkin();
} else {
Circle2._x = (Circle1._x = -100);
}
} else {
for (_local2 in Joints) {
_local3 = _root[Joints[_local2]];
_local3._x = -100;
}
Circle2._x = (Circle1._x = -100);
}
}
var Lengths = new Array();
var Tools = new Array("Rotate", "Stretch");
var Joints = new Array("Waist", "Head", "Neck", "Lelbow", "Lhand", "Relbow", "Rhand", "Lknee", "Lfoot", "Rknee", "Rfoot");
var DefaultLengths = new Array(17, 13, 17, 17, 17, 17, 24, 24, 24, 24);
var selectedTool = Tools[0];
var lastx = _xmouse;
var lasty = _ymouse;
var frameNum = 0;
var maxFrames = 0;
var onionSkinning = true;
var fps = 12;
var playing = false;
var Animation;
Stage.showMenu = true;
var rightclickmenu = new ContextMenu();
rightclickmenu.customItems.push(new ContextMenuItem("Add/Edit frame", newFrame), new ContextMenuItem("Play animation", playAnim), new ContextMenuItem("Stop animation", stopAnim));
rightclickmenu.hideBuiltInItems();
menu = rightclickmenu;
MovieClip.prototype.drawCircle = function (x, y, r) {
var _local2;
var _local3;
this.moveTo(x + r, y);
_local2 = 0;
while (_local2 <= 360) {
_local3 = (_local2 * Math.PI) / 180;
this.lineTo(x + (r * Math.cos(_local3)), y + (r * Math.sin(_local3)));
_local2++;
}
};
MovieClip.prototype.makeHead = function () {
this.lineStyle(0);
this.beginFill(0, 100);
this.diameter = DefaultLengths[1];
this.drawCircle(0, (-this.diameter) / 2, this.diameter / 2);
this.endFill();
this.update = function () {
var _local4;
var _local3;
var _local5;
this._x = _root.Neck._x;
this._y = _root.Neck._y;
_local4 = _root.Head._x - _root.Neck._x;
_local3 = _root.Head._y - _root.Neck._y;
_local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
this._rotation = ((Math.atan2(_local3, _local4) * 180) / Math.PI) + 90;
this._xscale = (this._yscale = (_local5 / this.diameter) * 100);
};
};
MovieClip.prototype.makeShadowHead = function () {
this.lineStyle(0);
this.beginFill(0, 100);
this.diameter = DefaultLengths[1];
this.drawCircle(0, (-this.diameter) / 2, this.diameter / 2);
this.endFill();
this._x = -100;
};
Array.prototype.copy = function (arrayToCopy) {
for (var _local3 in arrayToCopy) {
this[_local3] = arrayToCopy[_local3];
}
};
_global.debug = function (str) {
_root.debugger = str;
};
_global.warning = function (warn, func, arg) {
_root.Areyousure._visible = true;
_root.Areyousure.warning = warn;
_root.Areyousure.func = func;
_root.Areyousure.arg = arg;
};
setUp();
onEnterFrame = update;
Panel.Seperate.onRelease = seperateJoints;
Panel.Frame.onRelease = newFrame;
Panel.Pbtn.onRelease = playAnim;
Panel.Sbtn.onRelease = stopAnim;
stop();
Instance of Symbol 21 MovieClip in Frame 2
onClipEvent (load) {
swapDepths(100050);
}
Instance of Symbol 52 MovieClip "Panel" in Frame 2
onClipEvent (load) {
swapDepths(100000);
_x = 30;
_y = 100;
}
onClipEvent (enterFrame) {
frameNum = "Frame:" + (_root.frameNum + 1);
_visible = (((!_root.export._visible) and (!_root.importpanel._visible)) and (!_root.Help._visible));
}
Instance of Symbol 62 MovieClip "options" in Frame 2
onClipEvent (load) {
swapDepths(100005);
_visible = false;
}
Instance of Symbol 74 MovieClip "export" in Frame 2
onClipEvent (load) {
var code = "";
_visible = false;
swapDepths(100020);
}
Instance of Symbol 82 MovieClip "importpanel" in Frame 2
onClipEvent (load) {
_visible = false;
swapDepths(100025);
}
Instance of Symbol 92 MovieClip "Help" in Frame 2
onClipEvent (load) {
_visible = false;
swapDepths(100030);
}
Instance of Symbol 102 MovieClip "Areyousure" in Frame 2
onClipEvent (load) {
swapDepths(100010);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_visible ? 180 : -200);
}
Symbol 3 MovieClip [Checkbox] Frame 1
function update() {
if (hitTest(_root._xmouse, _root._ymouse) or (_root.selectedTool == tool)) {
gotoAndStop ("Selected");
} else {
gotoAndStop ("Normal");
}
}
function select() {
if (hitTest(_root._xmouse, _root._ymouse)) {
_root.selectedTool = tool;
debug("Using " + tool.toLowerCase());
}
}
stop();
onEnterFrame = update;
onMouseDown = select;
Symbol 15 Button
on (release) {
_root.play();
}
Symbol 17 MovieClip Frame 1
_root.stop();
stop();
Instance of Symbol 11 MovieClip in Symbol 17 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_parent.gotoAndStop(2);
}
}
Symbol 20 Button
on (rollOver) {
debug("Scripted by Namzorg");
}
Symbol 25 MovieClip Frame 1
function update() {
if (((hitTest(_root._xmouse, _root._ymouse) or pressed) and (!_root.options._visible)) and (!_root.export._visible)) {
gotoAndStop(_root.selectedTool);
if (pressed) {
_x = _root._xmouse;
_y = _root._ymouse;
}
} else {
gotoAndStop ("Normal");
}
if (_root.Waist.pressed and (_name != "Waist")) {
_x = (_x + (_root._xmouse - _root.lastx));
_y = (_y + (_root._ymouse - _root.lasty));
}
}
function drag() {
if ((hitTest(_root._xmouse, _root._ymouse) and (!_root.options._visible)) and _root.Panel._visible) {
pressed = true;
debug(_name + " selected");
}
}
function letGo() {
pressed = false;
}
var pressed = false;
var cx = Math.round(_x);
var cy = Math.round(_y);
var lx;
var ly;
var kl = new Object();
Key.addListener(kl);
kl.onKeyUp = function () {
if (!_root.Waist.pressed) {
var _local2 = Key.getCode();
if (_local2 == 38) {
_y = (_y-1);
} else if (_local2 == 40) {
_y = (_y+1);
} else if (_local2 == 37) {
_x = (_x-1);
} else if (_local2 == 39) {
_x = (_x+1);
}
}
};
onMouseDown = drag;
onMouseUp = letGo;
Symbol 25 MovieClip Frame 2
stop();
Symbol 29 Button
on (keyPress "s") {
_root.seperateJoints();
}
Symbol 30 Button
on (keyPress "<Space>") {
_root.newFrame();
}
Symbol 32 MovieClip Frame 1
function update() {
var _local2 = hitTest(_root._xmouse, _root._ymouse);
if (_local2 or _root.onionSkinning) {
gotoAndStop ("Selected");
} else {
gotoAndStop ("Normal");
}
}
function select() {
var _local2 = hitTest(_root._xmouse, _root._ymouse);
if (_local2 and (!_root.onionSkinning)) {
_root.onionSkinning = true;
debug("Onion skinning is on");
} else if (_local2 and _root.onionSkinning) {
_root.onionSkinning = false;
debug("Onion skinning is off");
}
}
stop();
onEnterFrame = update;
onMouseDown = select;
Symbol 35 MovieClip Frame 1
function update() {
var _local2 = hitTest(_root._xmouse, _root._ymouse);
if (_local2 or _root.options._visible) {
gotoAndStop ("Selected");
} else {
gotoAndStop ("Normal");
}
}
function select() {
var _local2 = hitTest(_root._xmouse, _root._ymouse);
if (_local2 and (!_root.options._visible)) {
_root.options._visible = true;
debug("Show options menu");
} else if (_local2 and _root.options._visible) {
_root.options._visible = false;
debug("Hide options menu");
}
}
stop();
onEnterFrame = update;
onMouseDown = select;
Symbol 36 Button
on (keyPress "<Enter>") {
_root.playAnim();
}
Symbol 37 Button
on (keyPress "'") {
_root.stopAnim();
}
Symbol 39 Button
on (release, keyPress ",") {
if (!_root.playing) {
if (_root.frameNum > 0) {
_root.generateFrame(--_root.frameNum);
}
}
}
Symbol 40 Button
on (release, keyPress ".") {
if (!_root.playing) {
if (_root.frameNum < _root.maxFrames) {
_root.generateFrame(++_root.frameNum);
}
}
}
Symbol 42 Button
on (release, keyPress "e") {
_root.export._visible = true;
}
Symbol 44 Button
on (release, keyPress "i") {
_root.importpanel._visible = true;
}
Symbol 52 MovieClip Frame 1
Pframe._x = (Pbtn._x = -15);
Nframe._x = (Sbtn._x = 15);
Linkbtn.useHandCursor = true;
Linkbtn.onRelease = function () {
getURL ("http://www.stickslaughter.com", "_blank");
};
Instance of Symbol 32 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
_x = -15;
kl = new Object();
Key.addListener(kl);
kl.onKeyUp = function () {
var _local2 = Key.getCode();
if (_local2 == 83) {
_root.onionSkinning = !_root.onionSkinning;
}
};
}
Instance of Symbol 35 MovieClip in Symbol 52 MovieClip Frame 1
onClipEvent (load) {
_x = 15;
kl = new Object();
Key.addListener(kl);
kl.onKeyUp = function () {
var _local2 = Key.getCode();
if (_local2 == 79) {
_root.options._visible = !_root.options._visible;
}
};
}
Symbol 56 Button
on (release) {
if (!_root.playing) {
warning("Are you sure you want to delete this frame?", "deleteFrame", "frameNum");
}
}
Symbol 58 Button
on (release) {
if (!_root.playing) {
warning("Are you sure you want to erase this animation?", "resetStage", "");
}
}
Symbol 60 Button
on (release) {
if (!_root.playing) {
_root.Help.tooltip = "Put your mouse over the objects on the right to find out what they do.";
_root.Help._visible = true;
_root.options._visible = false;
}
}
Symbol 64 Button
on (release) {
_root.export.code = _root.exportForAS();
_root.export.gotoAndStop(2);
}
Symbol 65 Button
on (release) {
_root.export.code = _root.exportForSA(true);
_root.export.gotoAndStop(2);
}
Symbol 69 Button
on (release) {
_root.export._visible = false;
}
Symbol 72 Button
on (release) {
_root.export.gotoAndStop(1);
_root.export._visible = false;
}
Symbol 74 MovieClip Frame 1
ASe.text = "What does this do?\nExporting as ActionScript means you can copy the code and paste it in the first frame's actions of a Flash document and it will generate the movie.";
SAe.text = "What does this do?\nExporting as Stick Animator v2.0 code allows you to copy the code, and later paste it back into Stick Animator v2.0. This means you can edit your movies.";
stop();
Symbol 76 Button
on (release) {
_root.imprt(_root.importpanel.importCode);
_root.importpanel._visible = false;
_root.importpanel.importCode = "";
}
Symbol 78 Button
on (release) {
_root.importpanel._visible = false;
}
Symbol 82 MovieClip Frame 1
whatdoesthisdo = "What does this do?\nImporting means that you can edit old animations. Just copy the Stick Animator v2.0 code from that animation, and paste in the bar above, then click the button below.";
Symbol 86 MovieClip Frame 1
function displayTip(tID) {
var _local2 = "Help - ";
if (tID == "OS") {
_local2 = _local2 + "Onion skinning\nOnion skinning is used to display the previous two frames of the animation (if they exist). This helps you to make smoother animations. By default onion skinning is on, click to turn it off, and again to turn it back on";
} else if (tID == "Options") {
_local2 = _local2 + "Options\nClick this button to open up the options panel. In the options panel you will be able to change the frame rate, delete frames, or reset the entire animation.";
} else if (tID == "Rotate") {
_local2 = _local2 + "Rotate\nTo use this tool, click on a joint, and drag it. This is the primary tool used in Stick Animator v2.0. If you accidentaly get two or more joints stuck together, click the separate joints button.";
} else if (tID == "Stretch") {
_local2 = _local2 + "Stretch\nThis tool is used to increase and decrease the length of the limbs. To use it, click a joint and drag. You can also expand and shrink the head by dragging the joint above it.";
} else if (tID == "Separate") {
_local2 = _local2 + "Separate joints\nClick this button if you get two or more joints stuck together, or simply want to reset the stick to the default position. When you click the button, the stick will automatically change back to its original position.";
} else if (tID == "Newframe") {
_local2 = _local2 + "New frame\nThe new frame button is used to create a new frame, and edit existing frames. When you are working with the last frame of your movie, and click this, it will create a new frame. However, if you are working on a previous frame in the movie and you click this, it will save the changes you have made to that frame.";
} else if (tID == "Pframe") {
_local2 = _local2 + "Previous frame\nClicking this button will take you back one frame so you can edit it.";
} else if (tID == "Nframe") {
_local2 = _local2 + "Next frame\nClicking this button will take you forward one frame so you can edit it.";
} else if (tID == "Pbtn") {
_local2 = _local2 + "Play\nThis button plays the movie you have created so far.";
} else if (tID == "Sbtn") {
_local2 = _local2 + "Stop\nIf the movie is playing, this will stop it and take you to the last frame of your animation.";
} else if (tID == "Export") {
_local2 = _local2 + "Export\nOpens the export panel where you can choose how to export your movie.";
} else if (tID == "Import") {
_local2 = _local2 + "Import\nOpens the import panel where you can import previous animations you have created.";
} else if (tID == "Stick") {
_local2 = _local2 + "Stick figure\nThis is the stick figure you can animate using Stick Animator v2.0.";
}
_root.Help.tooltip = _local2;
}
for (var i in this) {
this[i].onRollOver = function () {
displayTip(this._name);
};
this[i].useHandCursor = true;
}
Symbol 90 Button
on (release) {
_root.Help.tooltip = "";
_root.Help._visible = false;
}
Symbol 96 MovieClip Frame 1
_visible = false;
swapDepths(1000000);
kL = new Object();
Key.addListener(kL);
kL.onKeyUp = function () {
var _local1 = Key.getCode();
if (_local1 == 192) {
_visible = (!_visible);
}
};
Symbol 98 Button
on (release) {
_root[_root.Areyousure.func](_root[_root.Areyousure.arg]);
_root.Areyousure._visible = false;
}
Symbol 99 Button
on (release) {
_root.Areyousure._visible = false;
}