[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 1 (103 B)
_quality = "MEDIUM";
Mouse.hide();
dist = 20;
left_mc.offset = dist;
right_mc.offset = dist * -1;
Symbol 12 MovieClip Frame 1 (454 B)
stop();
if (_parent._name != "right_mc") {
gotoAndStop (2);
}
cock_mc.gotoAndStop(_totalframes);
maxdist = 400;
onEnterFrame = function () {
mouseX = (2 * _xmouse) + _parent.offset;
mouseY = 2 * _ymouse;
ang = Math.atan2(mouseY, mouseX);
dist = Math.sqrt((mouseX * mouseX) + (mouseY * mouseY));
cock_mc._rotation = ((ang * 180) / Math.PI) + 180;
cock_mc.gotoAndStop(Math.ceil(((maxdist - dist) / maxdist) * cock_mc._totalframes));
};