{"id":13744927,"url":"https://github.com/dbackeus/actionscript-prototypes","last_synced_at":"2025-02-22T05:19:34.022Z","repository":{"id":66409329,"uuid":"49585","full_name":"dbackeus/actionscript-prototypes","owner":"dbackeus","description":"Bunch of handy prototypes to make actionscript development easier. Inspired by ruby, rails and jQuery etc.","archived":false,"fork":false,"pushed_at":"2008-09-29T08:44:16.000Z","size":120,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T18:25:05.898Z","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/dbackeus.png","metadata":{"files":{"readme":"README.rdoc","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":"2008-09-05T16:03:35.000Z","updated_at":"2019-08-13T13:34:14.000Z","dependencies_parsed_at":"2023-02-20T03:35:15.478Z","dependency_job_id":null,"html_url":"https://github.com/dbackeus/actionscript-prototypes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackeus%2Factionscript-prototypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackeus%2Factionscript-prototypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackeus%2Factionscript-prototypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbackeus%2Factionscript-prototypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbackeus","download_url":"https://codeload.github.com/dbackeus/actionscript-prototypes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240128285,"owners_count":19752152,"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:18.628Z","updated_at":"2025-02-22T05:19:34.001Z","avatar_url":"https://github.com/dbackeus.png","language":"ActionScript","readme":"== Description\n\nSweet prototypes for actionscript that extend core classes with stuff to make your life easier.\n\nIn need of documentation and is under quite heavy development.\n\n== Usage\n\nMove the prototypes directory over to your .fla directory or add a classpath so your compiler can find it.\n\nImport the namespace before including:\n  import prototypes.*\n\nInclude everything with:\n  Prototype.includeAll()\n  \nInclude all functions from a specific prototype by:\n  MovieClipPrototype.includeAll()\n  \nInclude a specific function from a specific prototype by:\n  MovieClipPrototype.include( \"isMouseOver\" )\n  \nThe last one remains quite untested at the moment so can't promise that it works.\n\n== Gotchas\n\nTo use the extensions on Number directly on a number without using a variable you need to enclose it in parenthesis or the compiler will shoot syntax errors at you.\n\n  // Syntax error\n  trace( 1.day.ago )\n  \n  // Works just fine!\n  trace( (1).day.ago )\n  \n  // Also works\n  var n = 1\n  trace( n.day.ago )\n  \nSometimes you might want to use each on a non variableized array. The flash compiler has some truly weird behaviour when it comes to this. Here's the breakdown.\n\n  // Silent failure with adobe compiler, works with MTASC given that you specifically ended the previous line with a ;\n  ['asdf', 'qwer'].each( function(element) { trace(element) } )\n  \n  // Enclosing the whole thing in parenthesis makes it work on both compilers\n  (['asdf', 'qwer'].each( function(element) { trace(element) } )) \n  \n  // Works with the adobe compiler but not with MTASC\n  new Array('asdf', 'qwer').each( function(element) { trace(element) } ) \n  \n  // Pre assigning the array to a variable always works\n  var a = ['asdf', 'qwer]\n  a.each( function(element) { trace(element) } ) ","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbackeus%2Factionscript-prototypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbackeus%2Factionscript-prototypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbackeus%2Factionscript-prototypes/lists"}