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>

pendulumClockV2.swf

This is the info page for
Flash #78762

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


ActionScript [AS1/AS2]
Frame 1
Application.main(this);
Symbol 20480 MovieClip [__Packages.ClockHand] Frame 0
#initclip if (!ClockHand) { //(_global.ClockHand = function () { super(); }) extends MovieClip var _local1 = (_global.ClockHand /* register */).prototype; _local1.render = function () { if (this.radius > 0) { this.drawTip(); } this.lineStyle(2, this.lineColor); this.moveTo(0, 0); this.lineTo(0, -this.len); }; (_global.ClockHand /* register */).create = function (parent, len, radius, depth, color) { var _local7 = ClockHand(parent.attachMovie(ClockHand.symbolName, "ClockHand" + depth, depth)); _local7.init(len, radius, color); return(_local7); }; _local1.init = function (len, radius, color) { this.len = len; this.radius = radius; this.lineColor = color; this.fillColor = color; this.render(); }; _local1.drawTip = function () { var _local2 = (-this.len) / 1.7; var _local3 = ((-this.len) - _local2) / 1.5; this.lineStyle(0, this.lineColor); this.beginFill(this.fillColor); this.moveTo(this.radius, _local2); this.curveTo(0, _local2 + (2 * this.radius), -this.radius, _local2); this.lineTo(0, _local2 + _local3); this.lineTo(this.radius, _local2); this.endFill(); }; ASSetPropFlags(_local1, null, 1); (_global.ClockHand /* register */).symbolName = "__Packages.ClockHand"; (_global.ClockHand /* register */).symbolLinked = Object.registerClass(ClockHand.symbolName, ClockHand); _local1.lineColor = 0; _local1.fillColor = 0; } #endinitclip
Symbol 20481 MovieClip [__Packages.RomanNumeral] Frame 0
#initclip if (!RomanNumeral) { //(_global.RomanNumeral = function () { super(); }) extends MovieClip var _local1 = (_global.RomanNumeral /* register */).prototype; _local1.render = function () { this.lineStyle(4, this.lineColor); if (this.num < 4) { var _local2 = 0; for ( ; _local2 < this.num ; _local2++) { this.drawI(); this.x = this.x + 30; } } if (this.num == 4) { this.drawI(); this.x = this.x + 30; this.drawV(); } if ((this.num >= 5) && (this.num < 9)) { this.drawV(); this.x = this.x + 70; var _local3 = 0; for ( ; _local3 < (this.num - 5) ; _local3++) { this.drawI(); this.x = this.x + 30; } } if (this.num == 9) { this.drawI(); this.x = this.x + 30; this.drawX(); } if ((this.num >= 10) && (this.num < 13)) { this.drawX(); this.x = this.x + 70; var _local4 = 0; for ( ; _local4 < (this.num - 10) ; _local4++) { this.drawI(); this.x = this.x + 30; } } }; (_global.RomanNumeral /* register */).create = function (parent, num, depth, lineColor, fillColor) { var _local7 = RomanNumeral(parent.attachMovie(RomanNumeral.symbolName, "RomanNumeral" + depth, depth)); _local7.init(num, lineColor, fillColor); return(_local7); }; _local1.init = function (num, lineColor, fillColor) { this.num = num; if (lineColor != null) { this.lineColor = lineColor; } if (fillColor != null) { this.fillColor = fillColor; } this.render(); }; _local1.drawX = function () { this.moveTo(this.x + 0, 0); this.lineTo(this.x + 30, 0); this.moveTo(this.x + 40, 0); this.lineTo(this.x + 70, 0); this.moveTo(this.x + 0, 100); this.lineTo(this.x + 30, 100); this.moveTo(this.x + 40, 100); this.lineTo(this.x + 70, 100); this.beginFill(this.fillColor); this.moveTo(this.x + 10, 0); this.lineTo(this.x + 50, 100); this.lineTo(this.x + 60, 100); this.lineTo(this.x + 20, 0); this.lineTo(this.x + 10, 0); this.endFill(); this.moveTo(this.x + 55, 0); this.lineTo(this.x + 15, 100); }; _local1.drawV = function () { this.moveTo(this.x + 0, 0); this.lineTo(this.x + 30, 0); this.moveTo(this.x + 40, 0); this.lineTo(this.x + 70, 0); this.beginFill(this.fillColor); this.moveTo(this.x + 10, 0); this.lineTo(this.x + 35, 100); this.lineTo(this.x + 39, 77); this.lineTo(this.x + 20, 0); this.lineTo(this.x + 10, 0); this.endFill(); this.moveTo(this.x + 55, 0); this.lineTo(this.x + 35, 100); }; _local1.drawI = function () { this.moveTo(this.x + 0, 0); this.lineTo(this.x + 30, 0); this.moveTo(this.x + 0, 100); this.lineTo(this.x + 30, 100); this.beginFill(this.fillColor); this.moveTo(this.x + 10, 0); this.lineTo(this.x + 10, 100); this.lineTo(this.x + 20, 100); this.lineTo(this.x + 20, 0); this.lineTo(this.x + 10, 0); this.endFill(); }; ASSetPropFlags(_local1, null, 1); (_global.RomanNumeral /* register */).symbolName = "__Packages.RomanNumeral"; (_global.RomanNumeral /* register */).symbolLinked = Object.registerClass(RomanNumeral.symbolName, RomanNumeral); _local1.lineColor = 0; _local1.fillColor = 0; _local1.x = 0; } #endinitclip
Symbol 20482 MovieClip [__Packages.Application] Frame 0
#initclip if (!Application) { //(_global.Application = function () { super(); }) extends MovieClip var _local1 = (_global.Application /* register */).prototype; _local1.init = function () { var _local2 = false; var _local3 = false; var _local4 = false; var _local5 = false; var _local6 = false; var _local7 = 0; var _local8 = 0; var _local9 = 16777215 /* 0xFFFFFF */; var _local10 = 0; var _local11 = 8421504 /* 0x808080 */; var _local12 = "aBowman"; var _local13 = 16777215 /* 0xFFFFFF */; var _local14 = 8421504 /* 0x808080 */; var _local15 = 1; var _local16 = 1; if ((_level0.up_logoText != null) && (_level0.up_logoText != "")) { _local12 = _level0.up_logoText; } if ((_level0.up_faceColor != null) && (_level0.up_faceColor != "")) { _local9 = _global.parseInt("0x" + _level0.up_faceColor); } if ((_level0.up_pendulumColor != null) && (_level0.up_pendulumColor != "")) { _local13 = _global.parseInt("0x" + _level0.up_pendulumColor); } if ((_level0.up_lineColor != null) && (_level0.up_lineColor != "")) { _local14 = _global.parseInt("0x" + _level0.up_lineColor); } if ((_level0.up_handColor != null) && (_level0.up_handColor != "")) { _local10 = _global.parseInt("0x" + _level0.up_handColor); } if ((_level0.up_numberColor != null) && (_level0.up_numberColor != "")) { _local11 = _global.parseInt("0x" + _level0.up_numberColor); } if ((_level0.up_quarterChime != null) && ((_level0.up_quarterChime != "") && (_level0.up_quarterChime != 0))) { _local2 = true; } if ((_level0.up_halfChime != null) && ((_level0.up_halfChime != "") && (_level0.up_halfChime != 0))) { _local3 = true; } if ((_level0.up_quarterTilChime != null) && ((_level0.up_quarterTilChime != "") && (_level0.up_quarterTilChime != 0))) { _local4 = true; } if ((_level0.up_tick != null) && ((_level0.up_tick != "") && (_level0.up_tick != 0))) { _local6 = true; } if ((_level0.up_hourChime != null) && ((_level0.up_hourChime != "") && (_level0.up_hourChime != 0))) { _local5 = true; } if ((_level0.up_hourOffset != null) && (_level0.up_hourOffset != "")) { _local7 = _global.parseInt(_level0.up_hourOffset); } if ((_level0.up_minOffset != null) && (_level0.up_minOffset != "")) { _local8 = _global.parseInt(_level0.up_minOffset); } this.clock = Clock.create(this, this.getNextHighestDepth(), {x:Stage.width / 2, y:(Stage.height / 2) - 20, radius:(Stage.height / 2) - 25, quarterChime:_local2, halfChime:_local3, quarterTilChime:_local4, hourChime:_local5, tick:_local6, hourOffset:_local7, minOffset:_local8, faceColor:_local9, lineColor:_local14, pendulumColor:_local13, logoText:_local12, numberColor:_local11, handColor:_local10}); }; (_global.Application /* register */).createMovie = function (parent, depth) { var _local4 = Application(parent.attachMovie(Application.symbolName, "Application" + depth, depth)); _local4.init(); return(_local4); }; (_global.Application /* register */).main = function (mc) { Application.createMovie(_root, _root.getNextHighestDepth()); }; ASSetPropFlags(_local1, null, 1); (_global.Application /* register */).symbolName = "__Packages.Application"; (_global.Application /* register */).symbolclocked = Object.registerClass(Application.symbolName, Application); _local1.num = 1; _local1.margin = 40; } #endinitclip
Symbol 20483 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); } }
Symbol 20484 MovieClip [__Packages.Clock] Frame 0
#initclip if (!Clock) { //(_global.Clock = function () { super(); }) extends MovieClip var _local1 = (_global.Clock /* register */).prototype; _local1.render = function () { var _local2 = this.ang; this.createTextField("tf", 0, this.x - 48, this.y + 10, 100, 30); var _local3 = new TextFormat(); _local3.size = 20; _local3.align = "center"; _local3.url = "http://aBowman.com/google-modules/"; _local3.target = "_top"; this.tf.font = "Times New Roman"; this.tf.textColor = this.lineColor; this.tf.align = "center"; this.tf.html = true; this.tf.text = this.logoText; this.tf.setTextFormat(_local3); this.lineStyle(1, this.lineColor); this.beginFill(this.faceColor); com.abowman.graphics.Draw.drawOval(this, this.x, this.y, this.radius, this.radius); this.endFill(); this.lineStyle(1, this.handColor); this.beginFill(this.handColor); com.abowman.graphics.Draw.drawOval(this, this.x, this.y, this.radius / 20, this.radius / 20); this.endFill(); this.lineStyle(1, this.lineColor); com.abowman.graphics.Draw.drawOval(this, this.x, this.y, this.innerRadius, this.innerRadius); var _local4 = 0; for ( ; _local4 < 60 ; _local4++) { if ((_local4 % 5) == 0) { this.lineStyle(3, this.lineColor); } else { this.lineStyle(1, this.lineColor); } this.moveTo((Math.sin(this.ang * _local4) * this.innerRadius) + this.x, (Math.cos(this.ang * _local4) * this.innerRadius) + this.y); this.lineTo((Math.sin(this.ang * _local4) * this.radius) + this.x, (Math.cos(this.ang * _local4) * this.radius) + this.y); } this.pend.lineStyle(2, this.lineColor); this.pend.beginFill(this.pendulumColor); com.abowman.graphics.Draw.drawOval(this.pend, 0, (this.radius + this.pLength) + this.pRadius, this.pRadius, this.pRadius); this.pend.endFill(); this.pend.moveTo(0, this.radius); this.pend.lineTo(0, this.radius + this.pLength); this.createNumbers(this.numberColor); }; (_global.Clock /* register */).create = function (parent, depth, args) { var _local5 = Clock(parent.attachMovie(Clock.symbolName, "Clock" + depth, depth)); _local5.init(args); return(_local5); }; _local1.init = function (args) { this.faceColor = args.faceColor; this.pendulumColor = args.pendulumColor; this.handColor = args.handColor; this.logoText = args.logoText; this.lineColor = args.lineColor; this.numberColor = args.numberColor; this.x = args.x; this.y = args.y; this.radius = args.radius; this.innerRadius = this.radius - 5; this.secHand = ClockHand.create(this, this.radius, 0, this.getDepth() + 1, this.handColor); this.secHand.moveTo(0, 0); this.secHand.lineTo(0, 15); com.abowman.graphics.Draw.drawOval(this.secHand, 0, 20, 5, 5); this.minHand = ClockHand.create(this, this.radius - 5, 3, this.getDepth() + 2, this.handColor); this.hrHand = ClockHand.create(this, this.radius / 1.5, 4, this.getDepth() + 3, this.handColor); this.pend = this.createEmptyMovieClip("s", this.getDepth() + 4); this.pend._x = (this.secHand._x = (this.minHand._x = (this.hrHand._x = this.x))); this.pend._y = (this.secHand._y = (this.minHand._y = (this.hrHand._y = this.y))); this.render(); this.hourOffset = args.hourOffset; this.minOffset = args.minOffset; if (this.hourOffset == null) { this.hourOffset = 0; } if (this.minOffset == null) { this.minOffset = 0; } this.do15Chime = args.quarterChime; this.do30Chime = args.halfChime; this.do45Chime = args.quarterTilChime; this.do60Chime = args.hourChime; if (this.do15Chime || (this.do30Chime || (this.do45Chime || (this.do60Chime)))) { this.hourChime = new Sound(); this.hourChime.onLoad = function (success) { if (success) { _root.hourChimeLoaded = true; } }; this.hourChime.loadSound("http://pendulumclockgadget.googlecode.com/svn/trunk/hourChime.mp3", false); this.chime = new Sound(); this.chime.onLoad = function (success) { if (success) { _root.chimeLoaded = true; } }; this.chime.loadSound("http://pendulumclockgadget.googlecode.com/svn/trunk/chime.mp3", false); } if (args.tick) { this.tickTock = new Array(); this.tickTock[0] = new Sound(); this.tickTock[0].onLoad = function (success) { if (success) { _root.tickLoaded = true; } }; this.tickTock[0].loadSound("http://pendulumclockgadget.googlecode.com/svn/trunk/tick.mp3", false); this.tickTock[1] = new Sound(); this.tickTock[1].onLoad = function (success) { if (success) { _root.tockLoaded = true; } }; this.tickTock[1].loadSound("http://pendulumclockgadget.googlecode.com/svn/trunk/tock.mp3", false); } var _local3 = new Date(); this.curHour = _local3.getHours(); this.curMin = _local3.getMinutes(); this.curSec = _local3.getSeconds(); }; _local1.onEnterFrame = function () { if (this.stopChimeAt != null) { if (this.hourChime.position >= this.stopChimeAt) { this.hourChime.stop(); this.stopChimeAt = null; this.volume = 100; this.hourChime.setVolume(this.volume); } else if (this.hourChime.position >= (this.stopChimeAt - 1000)) { this.volume = this.volume - 3; this.volume = Math.max(this.volume, 0); this.hourChime.setVolume(this.volume); } } var _local2 = new Date(); var _local3 = _local2.getMilliseconds(); var _local4 = _local2.getSeconds(); var _local5 = this.minOffset + _local2.getMinutes(); var _local6 = this.hourOffset + _local2.getHours(); if (_local6 != this.curHour) { this.curHour = _local6; if (_root.hourChimeLoaded) { this.hourChime.start(); } } if (_local5 != this.curMin) { this.curMin = _local5; if (_root.hourChimeLoaded) { if (this.do15Chime && ((_local5 % 60) == 15)) { this.hourChime.start(); this.stopChimeAt = 5000; } else if (this.do30Chime && ((_local5 % 60) == 30)) { this.hourChime.start(); this.stopChimeAt = 10200; } else if (this.do45Chime && ((_local5 % 60) == 45)) { this.hourChime.start(); this.stopChimeAt = 16200; } else if (this.do60Chime && ((_local5 % 60) == 0)) { this.hourChime.start(); this.stopChimeAt = 22000; this.playChimes = true; } } } if (_local4 != this.curSec) { this.curSec = _local4; if (_root.tickLoaded && (_root.tockLoaded)) { this.tickTock[_local4 % 2].start(); } if (_root.chimeLoaded) { if ((_local4 == 22) && (this.playChimes)) { this.playChimes = false; var _local7 = _local6; if (this.minOffset > 0) { _local7 = _local7 + 1; } _local7 = _local7 % 12; if (_local7 == 0) { _local7 = 12; } this.chime.start(0, _local7); } } } this.a = this.lastMil; this.lastMil = _local5; this.secHand._rotation = (_local4 * 6) + (_local4 / 100); this.minHand._rotation = (_local5 * 6) + (_local4 / 10); this.hrHand._rotation = (_local6 * 30) + (_local5 / 2); this.pend._rotation = Math.sin(Math.PI * ((_local4 % 2) + (_local3 / 1000))) * this.maxang; }; _local1.createNumbers = function (numberColor) { var _local5 = this.radius / 1.35; var _local6 = (Math.PI * 2) / 12; var _local8 = 1; for ( ; _local8 < 13 ; _local8++) { var _local3 = this.x + (Math.sin(((-_local6) * _local8) + Math.PI) * _local5); var _local4 = this.y + (Math.cos(((-_local6) * _local8) + Math.PI) * _local5); var _local7 = RomanNumeral.create(this, _local8, (this.getDepth() - 100) + _local8, numberColor, numberColor); _local7._xscale = (_local7._yscale = 20); _local7._x = _local3 - (_local7._width / 2); _local7._y = _local4 - (_local7._height / 2); } }; ASSetPropFlags(_local1, null, 1); (_global.Clock /* register */).symbolName = "__Packages.Clock"; (_global.Clock /* register */).symbolLinked = Object.registerClass(Clock.symbolName, Clock); _local1.lineColor = 8421504 /* 0x808080 */; _local1.fillColor = 16777215 /* 0xFFFFFF */; _local1.ang = (Math.PI * 2) / 60; _local1.pRadius = 15; _local1.pLength = 10; _local1.a = 1; _local1.maxang = 15; _local1.lastMil = 0; _local1.volume = 100; _local1.playChimes = false; } #endinitclip

Library Items

Symbol 20480 MovieClip [__Packages.ClockHand]
Symbol 20481 MovieClip [__Packages.RomanNumeral]
Symbol 20482 MovieClip [__Packages.Application]
Symbol 20483 MovieClip [__Packages.com.abowman.graphics.Draw]
Symbol 20484 MovieClip [__Packages.Clock]

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 20480 as "__Packages.ClockHand"
ExportAssets (56)Timeline Frame 1Symbol 20481 as "__Packages.RomanNumeral"
ExportAssets (56)Timeline Frame 1Symbol 20482 as "__Packages.Application"
ExportAssets (56)Timeline Frame 1Symbol 20483 as "__Packages.com.abowman.graphics.Draw"
ExportAssets (56)Timeline Frame 1Symbol 20484 as "__Packages.Clock"




http://swfchan.com/16/78762/info.shtml
Created: 3/4 -2019 11:57:59 Last modified: 3/4 -2019 11:57:59 Server time: 22/12 -2024 05:32:49