STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/67113188?noj=FRM67113188-22DC" width="1" height="1"></div>

Penguins.swf

This is the info page for
Flash #78756

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Frame 1
Application.main();
Symbol 2 MovieClip [__Packages.Application] Frame 0
class Application extends MovieClip { var onEnterFrame, penguins, getNextHighestDepth, link, _ymouse, _xmouse; function Application () { super(); } function init() { onEnterFrame = getStageDimensions; } function getStageDimensions() { if (Stage.width > 0) { delete onEnterFrame; setUp(); } } function setUp() { _root.bgBox = _root.createEmptyMovieClip("bgBox", -1000); _root.bgColor = 16777215 /* 0xFFFFFF */; var _local4 = 2; if ((_level0.up_backgroundColor != null) && (_level0.up_backgroundColor != "")) { _root.bgColor = parseInt("0x" + _level0.up_backgroundColor); } if ((_level0.up_numPenguins != null) && (_level0.up_numPenguins != "")) { numPenguins = _level0.up_numPenguins; } if ((_level0.up_numBabies != null) && (_level0.up_numBabies != "")) { _local4 = _level0.up_numBabies; } if (((_level0.up_backgroundImageCached != null) && (_level0.up_backgroundImageCached != "")) && (_level0.up_backgroundImageCached != "http://")) { createBackgroundImage(_level0.up_backgroundImageCached); } else if (((_level0.up_backgroundImage != null) && (_level0.up_backgroundImage != "")) && (_level0.up_backgroundImage != "http://")) { createBackgroundImage(_level0.up_backgroundImage); } var _local11; var _local8 = new ContextMenu(); _local8.hideBuiltInItems(); var _local10 = new ContextMenuItem("Find more creatures at aBowman.com", function () { this.getURL("http://aBowman.com/google-modules/", "_top"); }); _local8.customItems.push(_local10); _root.menu = _local8; penguins = new Array(); var _local5; var _local3 = 0; while (_local3 < numPenguins) { if (_local4 > 0) { _local5 = true; } else { _local5 = false; } penguins[_local3] = Penguin.createMovie(this, getNextHighestDepth(), {x:Math.random() * Stage.width, y:Math.random() * Stage.height, baby:_local5}); _local4--; _local3++; } _local11 = com.abowman.graphics.Draw.calcGradient(_root.bgColor, 80); onEnterFrame = update; _local11 = com.abowman.graphics.Draw.calcGradient(_root.bgColor, 80); link = ABowmanLink2.create(this, getNextHighestDepth(), "http://aBowman.com/google-modules/penguins", _local11); link._xscale = (link._yscale = 95); link._x = 1; Stage.align = "TL"; Stage.scaleMode = "noScale"; var _local9 = new Object(); _local9.onResize = mx.utils.Delegate.create(this, function () { if (Stage.height < 3) { this.onEnterFrame = null; } else { this.onEnterFrame = this.update; } _root.backgroundImage._x = Math.max((Stage.width / 2) - (_root.backgroundImage._width / 2), 0); _root.backgroundImage._y = Math.max((Stage.height / 2) - (_root.backgroundImage._height / 2), 0); this.drawBackground(0, 0, Stage.width, Stage.height); }); Stage.addListener(_local9); drawBackground(0, 0, Stage.width, Stage.height); update(); } function onMouseMove() { noMsCnt = 0; yMs = pyMs; pyMs = _ymouse; pxMs = _xmouse; xMs = _xmouse; } function createBackgroundImage(path) { _root.createEmptyMovieClip("backgroundImage", -200); _root.backgroundImage.createEmptyMovieClip("container_mc", 0); _root.backgroundImage.container_mc.loadMovie(path); _root.backgroundImage.onEnterFrame = function () { if (this.container_mc._width > 0) { this._x = Math.max((Stage.width / 2) - (this.container_mc._width / 2), 0); this._y = Math.max((Stage.height / 2) - (this.container_mc._height / 2), 0); delete this.onEnterFrame; } }; } function drawBackground(x, y, w, h) { _root.bgBox.clear(); _root.bgBox.beginFill(_root.bgColor); com.abowman.graphics.Draw.drawRect(_root.bgBox, x, y, w, h); _root.bgBox.endFill(); } function update() { noMsCnt++; var _local3; var _local6; var _local5; var _local8; var _local7; var _local4 = 0; while (_local4 < penguins.length) { _local3 = penguins[_local4]; _local6 = _local3.posX; _local5 = _local3.posY; _local3.update(); var _local2 = _local4 + 1; while (_local2 < penguins.length) { if (((_local5 < penguins[_local2].posY) && (_local3.getDepth() > penguins[_local2].getDepth())) || ((_local5 > penguins[_local2].posY) && (_local3.getDepth() < penguins[_local2].getDepth()))) { _local3.swapDepths(penguins[_local2]); } _local2++; } _local4++; } } static function createMovie(parent, depth) { var _local1 = Application(parent.attachMovie(symbolName, "Application" + depth, depth)); _local1.init(); return(_local1); } static function main(mc) { createMovie(_root, _root.getNextHighestDepth()); } static var symbolName = "__Packages.Application"; static var symbolLinked = Object.registerClass(symbolName, Application); var numPenguins = 5; var noMsCnt = 1000; var pyMs = 0; var pxMs = 0; var yMs = 0; var xMs = 0; }
Symbol 3 MovieClip [__Packages.ABowmanLink2] Frame 0
class ABowmanLink2 extends MovieClip { var url, aBowmanCon, createEmptyMovieClip, getNextHighestDepth, aBowman, aBowmanMask; function ABowmanLink2 () { super(); } static function create(parent, depth, url, color) { var _local1 = ABowmanLink2(parent.attachMovie(symbolName, "Link" + depth, depth)); _local1.init(color, url); return(_local1); } function init(color, url) { this.url = url; aBowmanCon = createEmptyMovieClip("aBowmanCon", getNextHighestDepth()); aBowman = aBowmanCon.createEmptyMovieClip("aBowman", aBowmanCon.getNextHighestDepth()); aBowmanMask = aBowmanCon.createEmptyMovieClip("aBowmanMask", aBowmanCon.getNextHighestDepth()); aBowman.onRollOver = function () { this._parent.aBowmanMask.onEnterFrame = this._parent.aBowmanMask.expand; }; aBowman.onRollOut = function () { this._parent.aBowmanMask.onEnterFrame = this._parent.aBowmanMask.shrink; }; aBowman.onRelease = function () { this.getURL(url, "_top"); }; aBowmanMask.maxWidth = mask_maxWidth; aBowmanMask.minWidth = mask_minWidth; aBowmanMask.height = mask_height; aBowmanMask.width = aBowmanMask.minWidth; aBowmanMask.boxX = -2; aBowmanMask.expand = function () { this.width = this.width + ((this.maxWidth - this.width) * 0.2); if ((this.maxWidth - this.width) < 0.1) { delete this.onEnterFrame; } this.render(); }; aBowmanMask.shrink = function () { this.width = this.width - ((this.width - this.minWidth) * 0.2); if ((this.width - this.minWidth) < 0.1) { delete this.onEnterFrame; } this.render(); }; aBowmanMask.render = function () { this.clear(); this.beginFill(0); this.lineTo(this.boxX, 0); this.lineTo(this.boxX + this.width, 0); this.lineTo(this.boxX + this.width, this.height); this.lineTo(this.boxX, this.height); this.lineTo(this.boxX, 0); this.endFill(); }; aBowmanMask.render(); aBowman.setMask(aBowmanMask); var _local2 = new TextFormat(); _local2.size = 20; _local2.font = "Pupcat"; _local2.color = color; aBowman.createTextField("txt", aBowman.getNextHighestDepth(), 0, 0, 50, 50); aBowman.txt.antiAliasType = "advanced"; aBowman.txt.gridFitType = "subpixel"; aBowman.txt.autoSize = true; aBowman.txt.text = "aBowman"; aBowman.txt.embedFonts = true; aBowman.txt.setTextFormat(_local2); } static var symbolName = "__Packages.ABowmanLink2"; static var symbolLinked = Object.registerClass(symbolName, ABowmanLink2); var mask_maxWidth = 80; var mask_minWidth = 23; var mask_height = 25; }
Symbol 4 MovieClip [__Packages.Logo] Frame 0
class Logo extends MovieClip { var lineStyle, beginFill, endFill, moveTo, curveTo, lineTo, _rotation; function Logo () { super(); } function render() { lineStyle(4, lineColor); beginFill(fillColor, 0); com.abowman.graphics.Draw.drawOval(this, -13, 30, 10, 7); com.abowman.graphics.Draw.drawOval(this, 13, 30, 10, 7); com.abowman.graphics.Draw.drawOval(this, 0, 43, 7, 10); endFill(); moveTo(0, 30); curveTo(1, 16, -6, 9); moveTo(0, 30); curveTo(1, 16, -10, 13); moveTo(-6, 9); lineTo(-10, 13); _rotation = -45; } static function create(parent, depth, color) { var _local1 = Logo(parent.attachMovie(symbolName, "Logo" + depth, depth)); _local1.init(color); return(_local1); } function init(color) { if (color != null) { lineColor = color; } render(); } static var symbolName = "__Packages.Logo"; static var symbolLinked = Object.registerClass(symbolName, Logo); var lineColor = 8421504; var fillColor = 16777215; }
Symbol 5 MovieClip [__Packages.com.abowman.graphics.Draw] Frame 0
class com.abowman.graphics.Draw { function Draw () { } static function drawOval(mc, x, y, rx, ry) { mc.moveTo(x + rx, y); mc.curveTo(rx + x, (0.4142 * ry) + y, (0.7071 * rx) + x, (0.7071 * ry) + y); mc.curveTo((0.4142 * rx) + x, ry + y, x, ry + y); mc.curveTo((-0.4142 * rx) + x, ry + y, (-0.7071 * rx) + x, (0.7071 * ry) + y); mc.curveTo((-rx) + x, (0.4142 * ry) + y, (-rx) + x, y); mc.curveTo((-rx) + x, (-0.4142 * ry) + y, (-0.7071 * rx) + x, (-0.7071 * ry) + y); mc.curveTo((-0.4142 * rx) + x, (-ry) + y, x, (-ry) + y); mc.curveTo((0.4142 * rx) + x, (-ry) + y, (0.7071 * rx) + x, (-0.7071 * ry) + y); mc.curveTo(rx + x, (-0.4142 * ry) + y, rx + x, y); } static function drawRect(mc, x1, y1, width, height) { mc.moveTo(x1, y1); mc.lineTo(x1 + width, y1); mc.lineTo(x1 + width, y1 + height); mc.lineTo(x1, y1 + height); mc.lineTo(x1, y1); } static function drawWedge(mc, x, y, startAngle, arc, radius, yRadius) { if (arguments.length < 5) { return(undefined); } mc.moveTo(x, y); if (yRadius == undefined) { yRadius = radius; } var _local20; var _local2; var _local3; var _local5; var _local14; var _local19; var _local18; var _local13; var _local11; var _local12; var _local10; if (Math.abs(arc) > 360) { arc = 360; } _local14 = Math.ceil(Math.abs(arc) / 45); _local20 = arc / _local14; _local2 = (-(_local20 / 180)) * Math.PI; _local3 = (-(startAngle / 180)) * Math.PI; if (_local14 > 0) { _local19 = x + (Math.cos((startAngle / 180) * Math.PI) * radius); _local18 = y + (Math.sin(((-startAngle) / 180) * Math.PI) * yRadius); mc.lineTo(_local19, _local18); var _local4 = 0; while (_local4 < _local14) { _local3 = _local3 + _local2; _local5 = _local3 - (_local2 / 2); _local13 = x + (Math.cos(_local3) * radius); _local11 = y + (Math.sin(_local3) * yRadius); _local12 = x + (Math.cos(_local5) * (radius / Math.cos(_local2 / 2))); _local10 = y + (Math.sin(_local5) * (yRadius / Math.cos(_local2 / 2))); mc.curveTo(_local12, _local10, _local13, _local11); _local4++; } mc.lineTo(x, y); } } static function drawArc(mc, x, y, radius, arc, startAngle, yRadius) { if (arguments.length < 5) { return(null); } if (yRadius == undefined) { yRadius = radius; } var _local17; var _local3; var _local2; var _local5; var _local14; var _local10; var _local8; var _local9; var _local7; var _local13; var _local12; if (Math.abs(arc) > 360) { arc = 360; } _local14 = Math.ceil(Math.abs(arc) / 45); _local17 = arc / _local14; _local3 = (-(_local17 / 180)) * Math.PI; _local2 = (-(startAngle / 180)) * Math.PI; _local10 = x - (Math.cos(_local2) * radius); _local8 = y - (Math.sin(_local2) * yRadius); if (_local14 > 0) { var _local4 = 0; while (_local4 < _local14) { _local2 = _local2 + _local3; _local5 = _local2 - (_local3 / 2); _local9 = _local10 + (Math.cos(_local2) * radius); _local7 = _local8 + (Math.sin(_local2) * yRadius); _local13 = _local10 + (Math.cos(_local5) * (radius / Math.cos(_local3 / 2))); _local12 = _local8 + (Math.sin(_local5) * (yRadius / Math.cos(_local3 / 2))); mc.curveTo(_local13, _local12, _local9, _local7); _local4++; } } return({x:_local9, y:_local7}); } static function calcGradient(hex, percent) { var _local2 = hexToRGB(hex); var _local1 = RGBToHLS(_local2.r, _local2.g, _local2.b); _local1.l = _local1.l * (percent / 100); if (_local1.l > 240) { _local1.l = 240; } if (_local1.l < 0) { _local1.l = 0; } _local2 = HLSToRGB(_local1.h, _local1.l, _local1.s); return(RGBToHex(_local2.r, _local2.g, _local2.b)); } static function hexToRGB(hex) { var _local1 = new Object(); _local1.r = hex >> 16; var _local2 = hex ^ (_local1.r << 16); _local1.g = _local2 >> 8; _local1.b = _local2 ^ (_local1.g << 8); return(_local1); } static function RGBToHex(r, g, b) { var _local1 = ((r << 16) ^ (g << 8)) ^ b; return(_local1); } static function RGBToHLS(r, g, b) { var _local9; var _local8; var _local7; var _local1 = Math.max(Math.max(r, g), b) / 255; var _local5 = Math.min(Math.min(r, g), b) / 255; var _local2 = _local1 - _local5; _local8 = (_local1 + _local5) / 2; _local7 = ((_local1 == _local5) ? 0 : (((_local8 <= 0.5) ? ((_local2 / _local8) / 2) : (_local2 / (2 - (_local8 * 2)))))); if ((r / 255) == _local1) { _local9 = ((g - b) / _local2) / 255; } else if ((g / 255) == _local1) { _local9 = 2 + (((b - r) / _local2) / 255); } else if ((b / 255) == _local1) { _local9 = 4 + (((r - g) / _local2) / 255); } _local9 = _local9 * 40; if (_local9 < 0) { _local9 = _local9 + 240; } _local9 = Math.round(_local9); return({h:(isNaN(_local9) ? 0 : (_local9)), l:Math.round(_local8 * 240), s:Math.round(_local7 * 240)}); } static function HLSToRGB(h, l, s) { var _local10; var _local11; var _local9; if (s == 0) { _local9 = Math.round((l / 240) * 255); _local11 = _local9; _local10 = _local11; } else { h = h / 240; l = l / 240; s = s / 240; var _local2; var _local1; var _local5 = ((l < 0.5) ? (l * (s + 1)) : ((l + s) - (l * s))); var _local4 = (l * 2) - _local5; var _local3 = 0; while (_local3 < 3) { switch (_local3) { case 0 : _local1 = h + 0.333333333333333; break; case 1 : _local1 = h; break; case 2 : _local1 = h - 0.333333333333333; } if (_local1 < 0) { _local1++; } else if (_local1 > 1) { _local1--; } if ((_local1 * 6) < 1) { _local2 = _local4 + (((_local5 - _local4) * 6) * _local1); } else if ((_local1 * 2) < 1) { _local2 = _local5; } else if ((_local1 * 3) < 2) { _local2 = _local4 + (((_local5 - _local4) * (0.666666666666667 - _local1)) * 6); } else { _local2 = _local4; } switch (_local3) { case 0 : _local10 = Math.round(_local2 * 255); break; case 1 : _local11 = Math.round(_local2 * 255); break; case 2 : _local9 = Math.round(_local2 * 255); } _local3++; } } return({r:_local10, g:_local11, b:_local9}); } }
Symbol 6 MovieClip [__Packages.Penguin] Frame 0
class Penguin extends MovieClip { var rFtBgnX, rFtX, rFtBgnY, rFtY, lFtBgnX, lFtX, lFtBgnY, lFtY, hdRot, rot, stride, fpStep, bkLen, tx, ty, side, posX, posY, nk, createEmptyMovieClip, getNextHighestDepth, bd, tl, fin1LL, fin2LL, fin2, bdFl, bdMsk, fin1UL, fin2UL, fin1, hd, bkH, hdBotL, eyes, hdTopL, fAng, fAng2, restNum, radius, onPress, onReleaseOutside, onRelease, pxm, _xmouse, pym, _ymouse, pMC, numFlaps, numFlapsT, fSet, pickedUp, neckX, neckY, fRot, ratio2, ratio1, pFSin, clear, lineStyle, moveTo, lineTo, endFill, showButt; function Penguin () { super(); } static function createMovie(parent, depth, args) { var _local1 = Penguin(parent.attachMovie(symbolName, "Penguin" + depth, depth)); _local1.init(args); _local1.pMC = parent; return(_local1); } function init(args) { bkAngle = 1.25663706143592; rFtBgnX = (rFtX = args.x); rFtBgnY = (rFtHt = (rFtY = args.y)); lFtBgnX = (lFtX = args.x); lFtBgnY = (lFtHt = (lFtY = args.y)); hdRot = (rot = (rFtAng = (lFtAng = (dir = (Math.random() * Math.PI) * 2)))); stride = 0; fpStep = int(9 + (Math.random() * 5)); count2 = (count = int(Math.random() * fpStep)); ht = (iht = (finLen = 18 + (Math.random() * 2))); lean = (hdRd = 5); bkLen = 10; if (args.baby) { finLen = (iht = (ht = int(10 + (Math.random() * 3)))); lean = (hdRd = 4); sholdRd = 9; btRd = 10; finRd = 9; belCol = 10066329 /* 0x999999 */; bacCol = 10066329 /* 0x999999 */; finTCol = 10066329 /* 0x999999 */; finBCol = 10066329 /* 0x999999 */; bkCol = 6710886 /* 0x666666 */; bkLen = 7; tlLen = 10; eyeRd = 3; fpStep = int(6 + (Math.random() * 2)); count2 = (count = int(Math.random() * fpStep)); mStride = 8; ftSize = 1; } if (args.dir != null) { rFtAng = (lFtAng = (dir = args.dir)); } if ((args.tx != null) && (args.ty != null)) { tx = args.tx; ty = args.ty; needDest = false; } if (args.fpStep != null) { fpStep = args.fpStep; } if (args.stride != null) { stride = args.stride; } side = 1; posX = args.x; posY = args.y; nk = createEmptyMovieClip("nk", getNextHighestDepth()); bd = createEmptyMovieClip("bd", getNextHighestDepth()); bd._x = args.x; bd._y = args.y; tl = bd.createEmptyMovieClip("tl", bd.getNextHighestDepth()); var _local3 = bd.getNextHighestDepth(); fin1LL = _local3++; fin2LL = _local3++; fin2 = bd.createEmptyMovieClip("fin2", fin2LL); bdFl = bd.createEmptyMovieClip("bdFl", _local3++); bdMsk = bd.createEmptyMovieClip("bdMsk", _local3++); bdFl.setMask(bdMsk); fin1UL = _local3++; fin2UL = _local3++; fin1 = bd.createEmptyMovieClip("fin1", fin1UL); hd = createEmptyMovieClip("hd", getNextHighestDepth()); hd.lineStyle(1); hd.beginFill(bkCol); hd.lineStyle(1, 0); hd.moveTo(-hdRd, 0); hd.curveTo((-hdRd) * 0.92, (-hdRd) * 0.92, 0, -hdRd); hd.curveTo(hdRd * 0.92, (-hdRd) * 0.92, hdRd, 0); hd.curveTo(hdRd, hdRd, 0, hdRd); hd.curveTo(-hdRd, hdRd, -hdRd, 0); hd.endFill(); bkH = hd.createEmptyMovieClip("bkH", hd.getNextHighestDepth()); hdBotL = bkH.getDepth(); eyes = hd.createEmptyMovieClip("eyes", hd.getNextHighestDepth()); hdTopL = hd.getNextHighestDepth(); fAng = minFAng; fAng2 = minFAng; restNum = Math.random() * 200; radius = btRd * 0.7; onPress = function () { this.pickedUp = true; this.numFlaps = 0; this.numFlapsT = 1 + int(Math.random() * 8); this.fSet = false; this.fCent = 1.25663706143592; }; onReleaseOutside = (onRelease = function () { this.pickedUp = false; }); update(); } function update() { var _local46 = _xmouse - pxm; var _local48 = _ymouse - pym; var _local27; var _local33; var _local65 = 0; var _local29; if (restCnt > restNum) { needDest = true; restCnt = 0; restNum = 100 + (Math.random() * 100); } if (pMC.noMsCnt < restNum) { tx = pMC.xMs; ty = pMC.yMs + ht; } if (needDest) { tx = Math.random() * Stage.width; ty = Math.random() * Stage.height; needDest = false; var _local101 = int(Math.random() * 3); if (_local101 == 1) { numFlaps = 0; numFlapsT = 1 + int(Math.random() * 8); fSet = false; fCent = 1.25663706143592; } else if (_local101 == 2) { fSet = false; fCent = 1.25663706143592; } else { fSet = false; fCent = minFAng; } } if (rFtTime < fpStep) { if (pickedUp) { rFtBgnX = rFtBgnX + _local46; rFtBgnY = rFtBgnY + _local48; } var _local21 = ++rFtTime; var _local47 = rFtBgnX; var _local45 = rFtChX; var _local86 = fpStep; _local21 = _local21 / (_local86 / 2); if (_local21 < 1) { rFtX = (((_local45 / 2) * _local21) * _local21) + _local47; } else { _local21--; rFtX = (((-_local45) / 2) * ((_local21 * (_local21 - 2)) - 1)) + _local47; } _local21 = rFtTime; _local47 = rFtBgnY; _local45 = rFtChY; _local21 = _local21 / (_local86 / 2); if (_local21 < 1) { rFtY = (((_local45 / 2) * _local21) * _local21) + _local47; } else { _local21--; rFtY = (((-_local45) / 2) * ((_local21 * (_local21 - 2)) - 1)) + _local47; } } else if (pickedUp) { rFtX = rFtX + _local46; rFtY = rFtY + _local48; } if (lFtTime < fpStep) { if (pickedUp) { lFtBgnX = lFtBgnX + _local46; lFtBgnY = lFtBgnY + _local48; } var _local21 = ++lFtTime; var _local47 = lFtBgnX; var _local45 = lFtChX; var _local86 = fpStep; _local21 = _local21 / (_local86 / 2); if (_local21 < 1) { lFtX = (((_local45 / 2) * _local21) * _local21) + _local47; } else { _local21--; lFtX = (((-_local45) / 2) * ((_local21 * (_local21 - 2)) - 1)) + _local47; } _local21 = lFtTime; _local47 = lFtBgnY; _local45 = lFtChY; _local21 = _local21 / (_local86 / 2); if (_local21 < 1) { lFtY = (((_local45 / 2) * _local21) * _local21) + _local47; } else { _local21--; lFtY = (((-_local45) / 2) * ((_local21 * (_local21 - 2)) - 1)) + _local47; } } else if (pickedUp) { lFtX = lFtX + _local46; lFtY = lFtY + _local48; } var _local3; var _local2; if (pickedUp) { posX = posX + _local46; posY = posY + _local48; } else { posX = (rFtX + lFtX) / 2; posY = (rFtY + lFtY) / 2; } var _local108; var _local12; var _local11; _local3 = tx - posX; _local2 = ty - posY; dir = Math.atan2(_local2, _local3); var _local60 = dir; _local108 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); var _local4; var _local20 = pMC.penguins; if (!pickedUp) { var _local10 = 0; while (_local10 < _local20.length) { _local4 = _local20[_local10]; if (this != _local4) { var _local5 = _local4.btRd + btRd; _local12 = _local4.posX; _local11 = _local4.posY; _local3 = _local4.posX - posX; _local2 = _local4.posY - posY; var _local17; _local3 = _local12 - posX; _local2 = _local11 - posY; if ((Math.abs(_local3) <= _local5) || (Math.abs(_local2) <= _local5)) { _local17 = Math.sqrt((_local3 * _local3) + (_local2 * _local2)); if (_local17 <= _local5) { var _local9 = Math.atan2(posY - _local11, posX - _local12); var _local6 = dir - _local9; _local6 = _local6 % (Math.PI*2); if (_local6 < 0) { _local6 = _local6 + (Math.PI*2); } var _local14 = (Math.cos(_local9) * _local5) + _local12; var _local13 = (Math.sin(_local9) * _local5) + _local11; var _local8 = posX - _local14; var _local7 = posY - _local13; rFtX = rFtX - _local8; rFtY = rFtY - _local7; lFtX = lFtX - _local8; lFtY = lFtY - _local7; rFtBgnX = rFtBgnX - _local8; rFtBgnY = rFtBgnY - _local7; lFtBgnX = lFtBgnX - _local8; lFtBgnY = lFtBgnY - _local7; posX = _local14; posY = _local13; if (_local6 < Math.PI) { dir = Math.atan2(_local2, _local3) - (Math.PI/2); } else { dir = Math.atan2(_local2, _local3) + (Math.PI/2); } } } } _local10++; } } count++; var _local64 = Math.cos(dir); var _local58 = Math.sin(dir); if (count == fpStep) { cSway = 0.02 + Math.max(Math.min(cSway + chSway, mSway), 0); if (side == RIGHT) { var _local112 = (posX + (_local64 * stride)) + ((side * _local58) * radius); var _local111 = (posY + ((_local58 * stride) * grade)) - (((side * _local64) * radius) * grade); rFtBgnX = rFtX; rFtChX = _local112 - rFtBgnX; rFtBgnY = rFtY; rFtChY = _local111 - rFtBgnY; rFtTime = 0; } else { var _local112 = (posX + (_local64 * stride)) + ((side * _local58) * radius); var _local111 = (posY + ((_local58 * stride) * grade)) - ((((side * _local64) * radius) * grade) * grade); lFtBgnX = lFtX; lFtChX = _local112 - lFtBgnX; lFtBgnY = lFtY; lFtChY = _local111 - lFtBgnY; lFtTime = 0; } side = side * -1; } if (pickedUp) { stride = 0; chSway = -0.03; } else if (_local108 < btRd) { stride = -mStride; chSway = 0.03; } else if (_local108 < (btRd + 20)) { stride = 0; restCnt++; chSway = -0.03; } else { stride = mStride; chSway = 0.03; } dir = dir % (Math.PI*2); if (dir < 0) { dir = dir + (Math.PI*2); } _local29 = rot - dir; _local29 = _local29 % (Math.PI*2); if (_local29 < 0) { _local29 = _local29 + (Math.PI*2); } count2++; _local65 = Math.sin(((count2 / (fpStep * 2)) * Math.PI) * 2) * cSway; if (!pickedUp) { rot = rot - (_local65 * 0.5); if ((_local29 > 0.34) && (_local29 < Math.PI)) { rot = rot - angSpeed; } else if ((_local29 < 5.94318530717959) && (_local29 > Math.PI)) { rot = rot + angSpeed; } } var _local23 = rot - _local60; _local23 = _local23 % (Math.PI*2); if (_local23 < 0) { _local23 = _local23 + (Math.PI*2); } if (Math.abs(_local23) > Math.PI) { if (_local23 > 0) { _local23 = _local23 - (Math.PI*2); } else { _local23 = _local23 + (Math.PI*2); } } if (_local23 >= (Math.PI/2)) { _local60 = rot - (Math.PI/2); } else if (_local23 <= -1.5707963267949) { _local60 = rot + (Math.PI/2); } var _local30 = hdRot - _local60; if (Math.abs(_local30) > Math.PI) { if (_local30 > 0) { _local30 = _local30 - (Math.PI*2); } else { _local30 = (Math.PI*2) + _local30; } } hdRot = hdRot - (_local30 * 0.4); hdRot = hdRot % (Math.PI*2); if (hdRot < 0) { hdRot = hdRot + (Math.PI*2); } if (!pickedUp) { if (side == LEFT) { var _local28 = rFtAng - dir; _local28 = _local28 % (Math.PI*2); if (_local28 < 0) { _local28 = _local28 + (Math.PI*2); } if ((_local28 > 0.1) && (_local28 < Math.PI)) { rFtAng = rFtAng - (angSpeed * 2); } else if ((_local28 < 6.18318530717959) && (_local28 > Math.PI)) { rFtAng = rFtAng + (angSpeed * 2); } } else { var _local28 = lFtAng - dir; _local28 = _local28 % (Math.PI*2); if (_local28 < 0) { _local28 = _local28 + (Math.PI*2); } if ((_local28 > 0.1) && (_local28 < Math.PI)) { lFtAng = lFtAng - (angSpeed * 2); } else if ((_local28 < 6.18318530717959) && (_local28 > Math.PI)) { lFtAng = lFtAng + (angSpeed * 2); } } } var _local98 = Math.sin(rot); neckX = Math.cos(-1.5707963267949 + (_local65 * _local98)) * ht; neckY = Math.sin(-1.5707963267949 + (_local65 * 2)) * ht; var _local76 = Math.atan2(neckY, neckX); bd._y = posY - (btRd * 0.8); fRot = rot; nk._y = (hd._y = (bd._y + neckY) + ((Math.sin(_local76) * sholdRd) * ratio2)); nk._x = (hd._x = ((posX + neckX) + ((Math.cos(_local76) * sholdRd) * ratio2)) + (lean * Math.cos(hdRot))); bd._rotation = ((_local76 * 180) / Math.PI) + 90; rot = rot % (Math.PI*2); if (rot < 0) { rot = rot + (Math.PI*2); } fRot = fRot % (Math.PI*2); if (fRot < 0) { fRot = fRot + (Math.PI*2); } var _local18 = Math.sqrt((neckX * neckX) + (neckY * neckY)); ratio2 = ht / iht; ratio1 = 1 - ratio2; bd._x = posX; if (fSet && (numFlaps < numFlapsT)) { fc = fc + fVel; var _local66 = Math.sin(fc); fAng = fCent + (_local66 * fRan); if (((pFSin > 0) && (_local66 < 0)) || ((pFSin < 0) && (_local66 > 0))) { numFlaps++; if (numFlaps == numFlapsT) { fSet = false; fCent = minFAng; } } pFSin = _local66; } if (!fSet) { fAng = fAng + ((fCent - fAng) * 0.3); if (Math.abs(fCent - fAng) < 0.05) { fSet = true; } } if (count == fpStep) { count = 0; if (count2 == (fpStep * 2)) { count2 = 0; } } var _local26 = 3 * ftSize; var _local53 = 2 * ftSize; clear(); lineStyle(3, 14859777); _local27 = rFtX + (Math.cos(rFtAng - Math.PI) * _local53); _local33 = rFtY + ((Math.sin(rFtAng - Math.PI) * _local53) * grade); moveTo(_local27, _local33); lineTo(rFtX + (Math.cos(0.392699081698724 + rFtAng) * _local26), rFtY + ((Math.sin(0.392699081698724 + rFtAng) * _local26) * grade)); lineTo(rFtX + (Math.cos(rFtAng - 0.392699081698724) * _local26), rFtY + ((Math.sin(rFtAng - 0.392699081698724) * _local26) * grade)); lineTo(_local27, _local33); _local27 = lFtX + (Math.cos(lFtAng - Math.PI) * _local53); _local33 = lFtY + ((Math.sin(lFtAng - Math.PI) * _local53) * grade); moveTo(_local27, _local33); lineTo(lFtX + (Math.cos(0.392699081698724 + lFtAng) * _local26), lFtY + ((Math.sin(0.392699081698724 + lFtAng) * _local26) * grade)); lineTo(lFtX + (Math.cos(lFtAng - 0.392699081698724) * _local26), lFtY + ((Math.sin(lFtAng - 0.392699081698724) * _local26) * grade)); lineTo(_local27, _local33); endFill(); var _local34 = 0; var _local19 = btRd - (_local34 * (btRd - sholdRd)); var _local16 = btRd; var _local15 = btRd; var _local22 = _local19 * 0.92; var _local32 = btRd; var _local79 = Math.cos(rot); var _local50 = 0; var _local49 = btRd; var _local117 = 0.25; var _local31 = btRd; tl.clear(); tl.beginFill(bacCol); tl.lineStyle(1); tl.lineTo(_local50 - _local31, _local49 - _local31); tl.curveTo(_local50 - _local31, _local49 - (_local31 * 0.5), _local50 - (_local79 * tlLen), _local49 - ((_local98 * tlLen) * _local117)); tl.curveTo(_local50 + _local31, _local49 - (_local31 * 0.5), _local50 + btRd, _local49 - _local31); tl.lineTo(0, 0); tl.endFill(); if (_local18 != 0) { _local34 = Math.sin(((_local18 / iht) * Math.PI) / 2); } var _local24 = (ratio2 * _local79) * lean; var _local51 = (ratio2 * (-_local79)) * 10; _local51 = 0; var _local25 = (-_local22) - _local18; var _local71 = (-_local18) - ((_local19 * _local34) * 1.2); var _local84 = _local19 - (_local34 * _local19); var _local72 = (_local32 * 1.8) * _local34; var _local105 = _local32 - (_local34 * _local32); var _local109; var _local106; var _local91; var _local87; bd.clear(); bd.lineStyle(2); if ((rot < (Math.PI/2)) || (rot > 4.71238898038469)) { bd.moveTo(btRd, 0); bd.curveTo(_local16, _local15, _local51, _local16); bd.curveTo(-_local16, _local16, -btRd, 0); bd.curveTo(-_local22, _local25, _local24, (-_local19) - _local18); bd.curveTo(_local22, _local25, btRd, 0); bdMsk.clear(); bdMsk.beginFill(0); bdMsk.moveTo(btRd, 0); bdMsk.curveTo(_local16, _local15, _local51, _local16); bdMsk.curveTo(-_local16, _local16, -btRd, 0); bdMsk.curveTo(-_local22, _local25, _local24, (-_local19) - _local18); bdMsk.curveTo(_local22, _local25, btRd, 0); bdMsk.endFill(); } else { bd.moveTo(-btRd, 0); bd.curveTo(-_local16, _local16, _local51, _local16); bd.curveTo(_local16, _local16, btRd, 0); bd.curveTo(_local22, _local25, _local24, (-_local19) - _local18); bd.curveTo(-_local22, _local25, -btRd, 0); bdMsk.clear(); bdMsk.beginFill(0); bdMsk.moveTo(-btRd, 0); bdMsk.curveTo(-_local16, _local16, _local51, _local16); bdMsk.curveTo(_local16, _local16, btRd, 0); bdMsk.curveTo(_local22, _local25, _local24, (-_local19) - _local18); bdMsk.curveTo(-_local22, _local25, -btRd, 0); bdMsk.endFill(); } var _local52 = (fRot + (Math.PI/2)) % (Math.PI*2); var _local40 = (fRot - (Math.PI/2)) % (Math.PI*2); if (_local52 < 0) { _local52 = _local52 + (Math.PI*2); } if (_local40 < 0) { _local40 = _local40 + (Math.PI*2); } if (_local52 > Math.PI) { _local109 = _local19; _local91 = _local32; } else { _local109 = _local84; _local91 = _local105; } if (_local40 > Math.PI) { _local106 = _local19; _local87 = _local32; } else { _local106 = _local84; _local87 = _local105; } var _local95 = Math.cos(_local52); var _local100 = Math.sin(_local52); var _local92 = Math.cos(_local40); var _local99 = Math.sin(_local40); var _local73 = 0; var _local70 = 0; if (showButt) { _local73 = (_local18 - iht) - (ratio1 * iht); _local71 = _local71 - (ratio1 * iht); } else { _local70 = (iht * 1.4) - _local18; _local72 = _local72 + (ratio1 * iht); } bdFl.clear(); bdFl.beginFill(belCol); bdFl.moveTo(btRd, btRd); bdFl.lineTo(btRd, (-ht) - btRd); bdFl.lineTo(-btRd, (-ht) - btRd); bdFl.lineTo(-btRd, btRd); bdFl.lineTo(btRd, btRd); bdFl.endFill(); if (bacCol != belCol) { var _local110 = _local95 * _local19; var _local82 = (_local73 - _local18) + (_local100 * _local109); var _local107 = _local92 * _local19; var _local80 = (_local73 - _local18) + (_local99 * _local106); var _local59 = _local95 * _local32; var _local69 = _local70 - (_local100 * _local91); var _local56 = _local92 * _local32; var _local68 = _local70 - (_local99 * _local87); bdFl.beginFill(bacCol); var _local83; if (rot > Math.PI) { _local83 = 1.9; } else { _local83 = 1.6; } if (_local40 > Math.PI) { bdFl.moveTo(-_local15, _local15); bdFl.lineTo(_local56, _local68 + _local15); bdFl.lineTo(_local56, _local68); bdFl.curveTo(_local24, _local72, _local59, _local69); bdFl.lineTo(_local110, _local82); bdFl.curveTo(_local24, (_local83 * _local71) + _local18, _local107, _local80); bdFl.lineTo(_local56, _local80 - _local15); bdFl.lineTo(-_local15, (-ht) - _local15); bdFl.lineTo(-_local15, _local15); } else { bdFl.moveTo(_local15, _local15); bdFl.lineTo(_local59, _local69 + _local15); bdFl.lineTo(_local59, _local69); bdFl.curveTo(_local24, _local72, _local56, _local68); bdFl.lineTo(_local107, _local80); bdFl.curveTo(_local24, (_local83 * _local71) + _local18, _local110, _local82); bdFl.lineTo(_local59, _local82 - _local15); bdFl.lineTo(_local15, (-ht) - _local15); bdFl.lineTo(_local15, _local15); } bdFl.endFill(); } var _local102 = Math.cos(hdRot); var _local96 = Math.sin(hdRot); _local27 = (-hdRd) - (Math.sin(hdRot + (Math.PI/2)) * lean); _local33 = hdRd + (Math.sin(hdRot - (Math.PI/2)) * lean); nk.clear(); nk.beginFill(bkCol); nk.lineStyle(2, 0); nk.moveTo(_local27, hdRd); nk.curveTo(-hdRd, (-hdRd) * 0.92, 0, (-hdRd) * 0.9); nk.curveTo(hdRd, (-hdRd) * 0.92, _local33, hdRd); nk.lineTo(_local27, hdRd); nk.endFill(); bkH.clear(); bkH.beginFill(bkCol); var _local93 = _local102 * bkLen; var _local88 = (_local96 * bkLen) * grade; var _local63 = _local102 * hdRd; var _local61 = _local96 * hdRd; bkH.lineTo(-_local61, _local63); nk.lineStyle(1, 0); nk.moveTo(-_local61, _local63); nk.lineTo(_local93, _local88); nk.lineTo(_local61, -_local63); bkH.lineTo(_local93, _local88); bkH.lineTo(_local61, -_local63); bkH.lineTo(0, 0); bkH.endFill(); var _local42 = Math.cos(hdRot + (Math.PI/2)) * eyeRd; var _local41 = (Math.sin(hdRot + (Math.PI/2)) * eyeRd) * 0.1; var _local44 = Math.cos(hdRot - (Math.PI/2)) * eyeRd; var _local43 = (Math.sin(hdRot - (Math.PI/2)) * eyeRd) * 0.1; eyes.clear(); if ((hdRot < 2.4) || (hdRot > 4.7)) { eyes.lineStyle(2, 16777215); eyes.moveTo(_local42, _local41); eyes.lineTo(_local42 + 0.5, _local41); eyes.lineStyle(2, bkCol); if (hdRot > Math.PI) { eyes.moveTo((_local42 - 2) + (Math.sin(hdRot * 0.5) * 2), _local41); eyes.lineTo(((_local42 - 2) + (Math.sin(hdRot * 0.5) * 2)) + 0.5, _local41); } else { eyes.moveTo((_local42 + 5) - (Math.sin(hdRot * 0.5) * 5), _local41); eyes.lineTo(((_local42 + 5) - (Math.sin(hdRot * 0.5) * 5)) + 0.5, _local41); } } if ((hdRot > 0.75) && (hdRot < 4.7)) { eyes.lineStyle(2, 16777215); eyes.moveTo(_local44, _local43); eyes.lineTo(_local44 + 0.5, _local43); eyes.lineStyle(2, bkCol); if (hdRot > Math.PI) { eyes.moveTo(_local44 + (Math.sin((hdRot + (Math.PI/4)) * 0.5) * 2), _local43); eyes.lineTo((_local44 + (Math.sin((hdRot + (Math.PI/4)) * 0.5) * 2)) + 0.5, _local43); } else { eyes.moveTo(_local44 - (Math.sin((hdRot - (Math.PI/4)) * 0.5) * 5), _local43); eyes.lineTo((_local44 - (Math.sin((hdRot - (Math.PI/4)) * 0.5) * 5)) + 0.5, _local43); } } var _local81; var _local77; var _local78; var _local75; var _local74; if ((fRot >= (Math.PI/2)) && (fRot <= 4.71238898038469)) { if (fin2.getDepth() != fin2LL) { fin2.swapDepths(fin2LL); fin1.swapDepths(fin1UL); } } else if (fin1.getDepth() != fin1LL) { fin2.swapDepths(fin2UL); fin1.swapDepths(fin1LL); } if (((fAng2 > 1) && (fRot >= 1.25663706143592)) && (fRot <= 1.88495559215388)) { fin2.swapDepths(fin2UL); fin1.swapDepths(fin1UL); } var _local97 = Math.cos(fRot); var _local103 = Math.sin(fRot); var _local62 = fAng2; var _local39 = Math.sin(fAng) * finLen; var _local104 = Math.sqrt((finLen * finLen) - (_local39 * _local39)); var _local36 = Math.cos((fRot + f1ang) - 0.314159265358979) * finRd; var _local35 = (neckY + (3 * ratio2)) + ((Math.sin((fRot + f1ang) - 0.314159265358979) * finRd) * ratio1); var _local89 = Math.cos(fRot + f1ang) * finRd; var _local85 = neckY + ((Math.sin(fRot + f1ang) * finRd) * ratio1); var _local54 = _local36 + (Math.cos(((fRot - (Math.PI/2)) + _local62) - 0.314159265358979) * _local39); var _local67 = (_local35 + (ratio2 * _local104)) + (Math.sin(((fRot - (Math.PI/2)) + _local62) - 0.314159265358979) * (_local39 * ratio1)); var _local113 = (_local36 - ((_local36 - _local54) * 0.7)) + (_local97 * 10); var _local114 = ((_local35 - ((_local35 - _local67) * 0.7)) - (5 * ratio2)) + ((_local103 * 10) * ratio1); var _local38 = Math.cos((fRot + f2ang) + 0.314159265358979) * finRd; var _local37 = (neckY + (3 * ratio2)) + ((Math.sin((fRot + f2ang) + 0.314159265358979) * finRd) * ratio1); var _local94 = Math.cos(fRot + f2ang) * finRd; var _local90 = neckY + ((Math.sin(fRot + f2ang) * finRd) * ratio1); var _local57 = _local38 + (Math.cos(((fRot + (Math.PI/2)) - _local62) + 0.314159265358979) * _local39); var _local55 = (_local37 + (ratio2 * _local104)) + (Math.sin(((fRot + (Math.PI/2)) - _local62) + 0.314159265358979) * (_local39 * ratio1)); var _local115 = (_local38 - ((_local38 - _local57) * 0.7)) + (_local97 * 10); var _local116 = ((_local37 - ((_local37 - _local55) * 0.7)) - (5 * ratio2)) + ((_local103 * 10) * ratio1); fin1.clear(); if (finBCol != finTCol) { _local81 = _local54 - _local36; _local77 = _local67 - _local35; _local78 = _local54 - _local89; _local75 = _local67 - _local85; _local74 = (_local81 * _local75) - (_local77 * _local78); if (_local74 > 0) { fin1.beginFill(finBCol); fin1.lineStyle(1, finBCol); } else { fin1.beginFill(finTCol); } } else { fin1.beginFill(finTCol); fin2.lineStyle(1, finBCol); } fin1.moveTo(_local36, _local35); fin1.lineTo(_local89, _local85); fin1.lineStyle(1); fin1.curveTo(_local113, _local114, _local54, _local67); fin1.lineStyle(1, 6710886); fin1.lineTo(_local36, _local35); fin1.endFill(); fin2.clear(); if (finBCol != finTCol) { _local81 = _local57 - _local38; _local77 = _local55 - _local37; _local78 = _local57 - _local94; _local75 = _local55 - _local90; _local74 = (_local81 * _local75) - (_local77 * _local78); if (_local74 > 0) { fin2.beginFill(finTCol); fin2.lineStyle(1, finTCol); } else { fin2.beginFill(finBCol); fin2.lineStyle(1, finBCol); } } else { fin2.beginFill(finTCol); fin2.lineStyle(1, finBCol); } fin2.moveTo(_local38, _local37); fin2.lineTo(_local94, _local90); fin2.lineStyle(1); fin2.curveTo(_local115, _local116, _local57, _local55); fin2.lineStyle(1, 6710886); fin2.lineTo(_local38, _local37); fin2.endFill(); pym = _ymouse; pxm = _xmouse; } static var symbolName = "__Packages.Penguin"; static var symbolLinked = Object.registerClass(symbolName, Penguin); var grade = 0.5; var angSpeed = 0.05; var RIGHT = -1; var LEFT = 1; var count = 0; var count2 = 0; var ht = 20; var iht = 20; var mSway = 0.10471975511966; var hdRd = 6; var sholdRd = 13; var btRd = 13; var finRd = 11; var f1ang = -1.5707963267949; var f2ang = (Math.PI/2); var fin1Front = true; var finLen = 20; var belCol = 16777215; var bacCol = 1118481; var finTCol = 0; var finBCol = 16777215; var bkCol = 0; var dir = 0; var lean = 5; var bkAngle = (Math.PI*2); var minFAng = 0.15; var restCnt = 0; var fc = 0; var fVel = 0.3; var fCent = (Math.PI/2); var fRan = (Math.PI/4); var mStride = 12; var cSway = 0; var rFtTime = 0; var rFtChX = 0; var rFtChY = 0; var rFtHt = 0; var rFtAng = 0; var lFtTime = 0; var lFtChX = 0; var lFtChY = 0; var lFtHt = 0; var lFtAng = 0; var dist = 0; var needDest = true; var tlLen = 15; var eyeRd = 4; var chSway = 0; var ftSize = 2; }
Symbol 7 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }

Library Items

Symbol 1 Font [Pupcat]
Symbol 2 MovieClip [__Packages.Application]
Symbol 3 MovieClip [__Packages.ABowmanLink2]
Symbol 4 MovieClip [__Packages.Logo]
Symbol 5 MovieClip [__Packages.com.abowman.graphics.Draw]
Symbol 6 MovieClip [__Packages.Penguin]
Symbol 7 MovieClip [__Packages.mx.utils.Delegate]

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "Pupcat"
ExportAssets (56)Timeline Frame 1Symbol 2 as "__Packages.Application"
ExportAssets (56)Timeline Frame 1Symbol 3 as "__Packages.ABowmanLink2"
ExportAssets (56)Timeline Frame 1Symbol 4 as "__Packages.Logo"
ExportAssets (56)Timeline Frame 1Symbol 5 as "__Packages.com.abowman.graphics.Draw"
ExportAssets (56)Timeline Frame 1Symbol 6 as "__Packages.Penguin"
ExportAssets (56)Timeline Frame 1Symbol 7 as "__Packages.mx.utils.Delegate"




http://swfchan.com/16/78756/info.shtml
Created: 3/4 -2019 12:01:26 Last modified: 3/4 -2019 12:01:26 Server time: 22/12 -2024 05:05:43