{"id":13744959,"url":"https://github.com/nulab/asclip","last_synced_at":"2026-02-04T03:02:36.309Z","repository":{"id":2544380,"uuid":"3522149","full_name":"nulab/asclip","owner":"nulab","description":"ActionScript library for clipboard copy","archived":false,"fork":false,"pushed_at":"2020-06-29T01:09:18.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-03-20T09:55:35.226Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nulab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-23T04:04:30.000Z","updated_at":"2022-11-22T11:12:57.000Z","dependencies_parsed_at":"2022-07-14T18:47:25.201Z","dependency_job_id":null,"html_url":"https://github.com/nulab/asclip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nulab/asclip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulab%2Fasclip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulab%2Fasclip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulab%2Fasclip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulab%2Fasclip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nulab","download_url":"https://codeload.github.com/nulab/asclip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nulab%2Fasclip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263853282,"owners_count":23520117,"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:19.284Z","updated_at":"2026-02-04T03:02:36.263Z","avatar_url":"https://github.com/nulab.png","language":"ActionScript","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"readme":"# This repository is not maintained. We also recommend that you stop using this library because Flash will not be available after 2020.\n\nActionScript library for clipboard copy \n==================================================\n(Japanese follows English)\n\nWhat's this ?\n--------------------------------------\n\nASClip is a tiny ActionScript library which helps you to copy text onto clipboard. This works on most popular browsers: the latest version of Google Chrome, Firefox, Safari and IE with Flash Player 10 or later. \n\nIn loading this flash library, it dynamically generates a button for copying since mouse click should be occured on the flash itself for security reason. When user clicks the button, text will be copied. You can change look \u0026amp; feel of the button by setting label text or images.\n\nHow to use\n--------------------------------------\n\nDownload a Flash file from [here](https://github.com/nulab/asclip/raw/master/bin/asclip.swf) and save it to your desired location. You should set \"Flashvars\" parameter to control this library.\n\n\u003cspan style='font-weight:bold;'\u003eBasic parameters\u003c/span\u003e\n\u003cdl\u003e\n  \u003cdt\u003eclipString\u003c/dt\u003e\n  \u003cdd\u003eText to copy\u003c/dd\u003e\n  \u003cdt\u003egetClipString\u003c/dt\u003e\n  \u003cdd\u003eName of a function called when button is clicked. Return value of this function will be copied.\u003c/dd\u003e\n  \u003cdt\u003eonCopyCompleted\u003c/dt\u003e\n  \u003cdd\u003eName of a function executed after copy is done.\u003c/dd\u003e  \n\u003c/dl\u003e\nYou have to set parameter for either \"clipString\" or \"getClipString\" otherwise nothing will be copied. If you set both, \"getClipString\" is used.\n\nAn object is passed as an argument in calling functions specified by \"getClipString\" or \"onCopyCompleted\" and you can see whether shift key, control key or alt key are pressed or not from properties of the object. Here's an example that\n\"getPressedKey\" is set to \"getClipString\" parameter.\n```javascript\nvar getPressedKey = function(e){\n    if (e.shiftKey){\n        return 'shift key pressed';\n    }else if (e.ctrlKey){\n        return 'control key pressed';\n    }else if (e.altKey){\n        return 'alt key pressed';\n    }\n    return 'no keys pressed';\n}\n```\n\n\u003cspan style='font-weight:bold;'\u003eUI related parameters\u003c/span\u003e\n\u003cdl\u003e\n  \u003cdt\u003elabelString\u003c/dt\u003e\n  \u003cdd\u003eLabel displayed on a button\u003c/dd\u003e\n  \u003cdt\u003elabelSize\u003c/dt\u003e\n  \u003cdd\u003eSize of the label\u003c/dd\u003e\n  \u003cdt\u003elabelFont\u003c/dt\u003e\n  \u003cdd\u003eFont for the label\u003c/dd\u003e\n  \u003cdt\u003eimageNormal\u003c/dt\u003e\n  \u003cdd\u003ePath of an background image of a button\u003c/dd\u003e\n  \u003cdt\u003eimageOver\u003c/dt\u003e\n  \u003cdd\u003ePath of an background image of a button appeared in mouseover\u003c/dd\u003e\n  \u003cdt\u003eimagePress\u003c/dt\u003e\n  \u003cdd\u003ePath of an background image of a button appeared in mousedown\u003c/dd\u003e    \n\u003c/dl\u003e\n\n\u003cspan style='font-weight:bold;'\u003eHTML example (partial)\u003c/span\u003e\n```html\n \u003cobject classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"150\" height=\"36\" id=\"asclip\"\u003e\n    \u003cparam value=\"asclip.swf\" name=\"movie\"\u003e\n    \u003cparam name=\"FlashVars\" value=\"clipString=test\u0026amp;labelString=Copy%20the%20Link\u0026amp;labelFont=Arial%20Black\u0026amp;labelSize=14\"\u003e\n　  \u003cembed src=\"asclip.swf\" width=\"150\" height=\"36\" name=\"asclip\" quality=\"high\" allowscriptaccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"clipString=test\u0026amp;labelString=Copy%20the%20Link\u0026amp;labelFont=Arial%20Black\u0026amp;labelSize=14\" bgcolor=\"#eeeeee\"\u003e    \n \u003c/object\u003e\n```\n\nExamples\n--------------------------------------\n\nSee \u003ca href=\"http://nulab.github.io/asclip/\"\u003eexmaples here\u003c/a\u003e. You can get these files by checking out to gh-pages branch after clone of this repository.\n\n```bash\n$ git clone https://github.com/nulab/asclip.git\n$ git checkout gh-pages\n```\n\n\nWho uses this ?\n--------------------------------------\n1. [Cacoo](http://cacoo.com/)\n2. [Backlog](http://backlogtool.com/) ([for Japanese user](http://www.backlog.jp))\n\n\n\n# このリポジトリはメンテナンスされていません。また、Flashは2020年以降利用できなくなるため、このライブラリーの利用をやめることをお勧めします。\n\nこれは何？\n--------------------------------------\n\nASClip は Flashを使ったシステムのクリップボードに文字列をセットできるライブラリです。Flash Player 10 以降が利用できる Google Chrome, Firefox, Safari そして IE の各々の最新バージョンで動作します。\n\nセキュリティ上の制約からクリックイベントを Flash 上で発生させる必要があるため、このライブラリはローディング時にコピー処理用のボタンを動的に生成します。そのボタンをクリックした時に文字列がクリップボードにコピーされます。そのボタンに対してラベルや画像を設定することで見た目を柔軟に変更することが可能です。\n\n\n使い方\n--------------------------------------\n\n[ここ](https://github.com/nulab/asclip/raw/master/bin/asclip.swf) から Flash ファイルをダウンロードし、適当な場所に保存してください。HTML からその Flash をローディングする際に Flashvars という名前でパラメータを設定することで振る舞いを変更することができます。\n\n\u003cspan style='font-weight:bold;'\u003eコピー処理に関するパラメータ\u003c/span\u003e\n\u003cdl\u003e\n  \u003cdt\u003eclipString\u003c/dt\u003e\n  \u003cdd\u003eクリックした時にここで設定した文字列がクリップボードにコピーされます。\u003c/dd\u003e\n  \u003cdt\u003egetClipString\u003c/dt\u003e\n  \u003cdd\u003eクリックした時に呼び出される関数名を指定します。クリップボードにはその関数を実行した結果がコピーされます。\u003c/dd\u003e\n  \u003cdt\u003eonCopyCompleted\u003c/dt\u003e\n  \u003cdd\u003e文字列がコピーされた後に呼び出されるコールバック関数の名前を指定します。\u003c/dd\u003e  \n\u003c/dl\u003e\nclipString もしくは getClipString のどちらかを指定しない限り、クリップボードにコピーされません。両方が指定された場合は getClipString の値が優先されます。\n\ngetClipString や onCopyCompleted で指定した関数の実行時に、引数で渡されるオブジェクトのプロパティから、マウスクリック時にシフトキー、コントロールキー、alt キーが押されているかどうかの情報を取得することが出来ます。\ngetPressedKey という関数が getClipString に指定されている場合の例を以下に示します。\n```javascript\nvar getPressedKey = function(e){\n    if (e.shiftKey){\n        return 'shift key pressed';\n    }else if (e.ctrlKey){\n        return 'control key pressed';\n    }else if (e.altKey){\n        return 'alt key pressed';\n    }\n    return 'no keys pressed';\n}\n```\n\n\u003cspan style='font-weight:bold;'\u003eコピーボタンの見た目に関するパラメータ\u003c/span\u003e\n\u003cdl\u003e\n  \u003cdt\u003elabelString\u003c/dt\u003e\n  \u003cdd\u003eボタンに表示される文字列を指定します\u003c/dd\u003e\n  \u003cdt\u003elabelSize\u003c/dt\u003e\n  \u003cdd\u003e文字列のサイズを指定します\u003c/dd\u003e\n  \u003cdt\u003elabelFont\u003c/dt\u003e\n  \u003cdd\u003e文字列のフォントを指定します\u003c/dd\u003e\n  \u003cdt\u003eimageNormal\u003c/dt\u003e\n  \u003cdd\u003e通常時の画像のパスを指定します\u003c/dd\u003e\n  \u003cdt\u003eimageOver\u003c/dt\u003e\n  \u003cdd\u003eマウスオーバーしたときの画像のパスを指定します\u003c/dd\u003e\n  \u003cdt\u003eimagePress\u003c/dt\u003e\n  \u003cdd\u003eマウスダウンしたときの画像のパスを指定します\u003c/dd\u003e    \n\u003c/dl\u003e\n\n\u003cspan style='font-weight:bold;'\u003eパラメータ設定の例(抜粋)\u003c/span\u003e\n```html\n \u003cobject classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"150\" height=\"36\" id=\"asclip\"\u003e\n    \u003cparam value=\"asclip.swf\" name=\"movie\"\u003e\n    \u003cparam name=\"FlashVars\" value=\"clipString=test\u0026amp;labelString=Copy%20the%20Link\u0026amp;labelFont=Arial%20Black\u0026amp;labelSize=14\"\u003e\n　  \u003cembed src=\"asclip.swf\" width=\"150\" height=\"36\" name=\"asclip\" quality=\"high\" allowscriptaccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" flashvars=\"clipString=test\u0026amp;labelString=Copy%20the%20Link\u0026amp;labelFont=Arial%20Black\u0026amp;labelSize=14\" bgcolor=\"#eeeeee\"\u003e    \n \u003c/object\u003e\n```\n\nサンプル\n--------------------------------------\n\n\u003ca href=\"http://nulab.github.io/asclip/\"\u003eこちら\u003c/a\u003eをご覧ください。これらのサンプルは、このリポジトリをクローンした後に gh-pages ブランチにチェックアウトすることでも確認することが出来ます。\n\n```bash\n$ git clone https://github.com/nulab/asclip.git\n$ git checkout gh-pages\n```\n\n\nこのライブラリが利用されているサイト\n--------------------------------------\n1. [Cacoo](http://cacoo.com/)\n2. [Backlog](http://www.backlog.jp) ([海外向け](http://backlogtool.com))\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulab%2Fasclip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnulab%2Fasclip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnulab%2Fasclip/lists"}