{"id":13744081,"url":"https://github.com/danro/tweenman-as2","last_synced_at":"2025-06-15T04:07:44.817Z","repository":{"id":1073232,"uuid":"914469","full_name":"danro/tweenman-as2","owner":"danro","description":"TweenMan AS2 ActionScript tweening library","archived":false,"fork":false,"pushed_at":"2010-09-17T07:04:10.000Z","size":112,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T16:15:11.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-16T04:16:05.000Z","updated_at":"2017-12-29T07:22:38.000Z","dependencies_parsed_at":"2022-07-06T05:01:47.312Z","dependency_job_id":null,"html_url":"https://github.com/danro/tweenman-as2","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/danro/tweenman-as2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danro%2Ftweenman-as2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danro%2Ftweenman-as2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danro%2Ftweenman-as2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danro%2Ftweenman-as2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danro","download_url":"https://codeload.github.com/danro/tweenman-as2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danro%2Ftweenman-as2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259919461,"owners_count":22932073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:02.728Z","updated_at":"2025-06-15T04:07:44.798Z","avatar_url":"https://github.com/danro.png","language":"ActionScript","readme":"`package com.tweenman`\n\nTweenMan AS2 ActionScript tweening library\n==========================================\n\n\tVersion: 1.5 AS2\n\t---------------------------------------------------------------------------------\n\tTweenMan is a complicated man, and no one understands him but his woman...\n\tInitially influenced by Jack Doyle's TweenLite engine, TweenMan is now his own man \n\tattempting to provide extended tweening functionality while remaining fit and slim.\n\t\n\tWeighing in at approximately 10k compiled, TweenMan does a few things you probably \n\thaven't seen other engines do. He can tween the scrollRect property of clips and \n\ttween just about every filter's properties including the color of glows, bevels,\n\tetc., and he can accomplish this by using time-based or frame-based animation.\n\t\n\tFor updates and examples, visit: http://www.tweenman.com\n\n\tAuthor: Dan Rogers - dan@danro.net\n\n\tSpecial Thanks:\tJack Doyle for sharing TweenLite (greensock.com)\n\t\t\t\t\tMario Klingemann for sharing ColorMatrix (quasimondo.com)\n\t\t\t\t\tRobert Penner for his AS2 easing functions (robertpenner.com)\n\n\tBasic Usage\n\t---------------------------------------------------------------------------------\n\timport com.tweenman.TweenMan;\n\timport com.tweenman.easing.*;\n\n\t// time-based _alpha tween\n\tTweenMan.addTween(target, { time: 1, _alpha: 0 });\n\n\t// frame-based scrollRect tween\n\tTweenMan.addTween(target, { frames: 50, rectangle: [0,0,100,100], ease: Back.easeOut });\n\n\t// time-based ColorMatrixFilter tween\n\tTweenMan.addTween(target, { time: 2, colormatrix: { saturation: 0, contrast: 2 } });\n\t\n\t// tween an array\n\tvar myArray:Array = [1, 4, 5, 6];\n\tTweenMan.addTween(myArray, { time: 1, array: [0, 3, 4, 4] });\n\n\t// remove tweens by property\n\tTweenMan.removeTweens(target, \"_alpha\", \"rectangle\", \"color\");\n\t\n\t// see if a tween is active\n\tTweenMan.isTweening(target, \"color\");\n\n\n\tTween Properties\n\t---------------------------------------------------------------------------------\n\ttime\t\t\t\t\ttime or duration of tween in seconds\n\tduration\t\t\t\teqivalent to time, duration in seconds\n\tframes\t\t\t\t\tframe-based duration, overrides time/duration if set\n\tease\t\t\t\t\teasing function, default is Quartic.easeOut\n\tdelay\t\t\t\t\tdelay before start, in seconds or frames depending on setting\n\tonComplete\t\t\t\tcallback function gets called when tween finishes\n\tonCompleteParams\t\tparams for onComplete function\n\tonUpdate\t\t\t\tcallback function gets called when tween updates\n\tonUpdateParams\t\t\tparams for onUpdate function\n\tonStart\t\t\t\t\tcallback function gets called when tween starts\n\tonStartParams\t\t\tparams for onStart function\n\teaseParams\t\t\t\tparams for ease function, mostly Back and Elastic\n\tarray\t\t\t\t\tif the target is an array, this property sets the end values\n\n\n\tVirtual Properties  \n\t  { prop: value } indicates tweenable sub-properties and default values\n\t---------------------------------------------------------------------------------\n\tvisible\t\t\tnumber or boolean\t\tsame as _alpha but toggles visibility\n\tframe\t\t\tnumber\t\t\t\t\tframe number of a MovieClip\n\tscale\t\t\tnumber\t\t\t\t\t_xscale and _yscale properties combined\n\tcolor\t\t\tobject\t\t\t\t\ttransform a target using ColorTransform\n\t  { redMultiplier: 1.0, greenMultiplier: 1.0, blueMultiplier: 1.0, alphaMultiplier: 1.0, \n\t\tredOffset: 0, greenOffset: 0, blueOffset: 0, alphaOffset: 0, brightness: 0,\n\t\ttintColor: 0x000000, tintMultiplier: 0, burn: 0 }\n\t\n\trectangle\t\t[0,0,100,100]\t\t\tscrollRect property of a DisplayObject\n\tvolume\t\t\tnumber\t\t\t\t\tvolume of a MovieClip sound\n\tpan\t\t\t\tnumber\t\t\t\t\tpan of a MovieClip sound\n\t\n\tcolormatrix\t\tobject\t\t\t\t\tColorMatrixFilter\n\t  { brightness: 0, contrast: 0, saturation: 1, hue: 0, colorize: 0x000000, \n\t\tcolorizeAmount: 0, blend: false } // set blend for additive blending\n\t\n\tbevel\t\t\tobject\t\t\t\t\tBevelFilter\n\t  { distance: 4.0,  angle: 45, highlightColor: 0xFFFFFF, highlightAlpha: 1.0, \n\t\t shadowColor: 0x000000, shadowAlpha: 1.0, blurX: 4.0, blurY: 4.0, strength: 0 }\n\t\n\tblur\t\t\tobject\t\t\t\t\tBlurFilter\n\t  { blurX: 0.0, blurY: 0.0 }\n\t\n\tconvolution\t\tobject\t\t\t\t\tConvolutionFilter\n\t  { divisor: 1.0, bias: 0.0, color: 0, alpha: 0.0 }\n\t\n\tdisplace\t\tobject\t\t\t\t\tDisplacementMapFilter\n\t  { scaleX: 0.0, scaleY: 0.0, color: 0, alpha: 0.0 }\n\t\n\tdropshadow\t\tobject\t\t\t\t\tDropShadowFilter\n\t  { distance: 0.0, angle: 45, color: 0, alpha: 1.0, blurX: 0.0, blurY: 0.0, strength: 0 }\n\t\n\tglow\t\t\tobject\t\t\t\t\tGlowFilter\n\t  { alpha: 1, blurX: 0.0, blurY: 0.0, strength: 0, color: 0 }\n\n\n\tTweenMan is Licensed under the MIT License\n\t---------------------------------------------------------------------------------\n\tCopyright (c) 2008 Dan Rogers\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n\nSee Also\n--------\n\n* [Examples](http://github.com/danro/tweenman-examples)\n* [TweenMan AS3](http://github.com/danro/tweenman-as3)\n","funding_links":[],"categories":["Frameworks"],"sub_categories":["Animation Framework"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanro%2Ftweenman-as2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanro%2Ftweenman-as2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanro%2Ftweenman-as2/lists"}