Clippy is a very simple Flash widget that makes it possible to place arbitrary text onto the client's clipboard.
Haxe
Switch branches/tags
Nothing to show
Pull request Compare This branch is 5 commits ahead of mojombo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
bin
build
.gitignore
LICENSE
Makefile
README.md
clippy.hx
compile.hxml
library.swf
library.xml

README.md

Clippy - Helping you copy text to your clipboard

Clippy is a very simple Flash widget that makes it possible to place arbitrary text onto the client's clipboard. Here is what Clippy looks like on GitHub:

Clippy in action

Here is a sample Rails (Ruby) helper that can be used to place Clippy on a page:

def clippy(id, bgcolor='#FFFFFF') html = <<-EOF EOF end

Installation (Pre-Built SWF)

If you want to use Clippy unmodified, just copy build/clippy.swf to your public directory or wherever your static assets can be found.

Installation (Compiling)

In order to compile Clippy from source, you need haXe and swfmill. The Mac binaries and haXe library are included in the bin directory.

The haXe code is in clippy.hx, the button images are in assets, and the compiler config is in compile.hxml. Make sure you look at all of these to see where and what you'll need to modify. To compile everything into a final SWF using the local haXe and swfmill binaries, run the following from Clippy's root directory:

make

If that is successful, copy build/clippy.swf to your public directory or wherever your static assets can be found.

Contribute

If you'd like to hack on Clippy, start by forking my repo on GitHub:

http://github.com/mojombo/clippy

The best way to get your changes merged back into core is as follows:

  1. Clone down your fork
  2. Create a topic branch to contain your change
  3. Hack away
  4. If you are adding new functionality, document it in README.md
  5. If necessary, rebase your commits into logical chunks, without errors
  6. Push the branch up to GitHub
  7. Send me (mojombo) a pull request for your branch

License

MIT License (see LICENSE file)