| CARVIEW |
mojombo / clippy
- Source
- Commits
- Network (31)
- Issues (1)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (0)
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Clippy is a very simple Flash widget that makes it possible to place arbitrary text onto the client's clipboard. — Read more
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
LICENSE | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
README.md | Fri Feb 13 11:02:31 -0800 2009 | fix contribute list in readme [Tom Preston-Werner] |
| |
assets/ | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
build/ | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
clippy.hx | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
compile.hxml | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
library.swf | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
| |
library.xml | Fri Feb 13 10:58:36 -0800 2009 | first commit [Tom Preston-Werner] |
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:

Here is a sample Rails (Ruby) helper that can be used to place Clippy on a page:
def clippy(text, bgcolor='#FFFFFF')
html = <<-EOF
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="110"
height="14"
id="clippy" >
<param name="movie" value="/flash/clippy.swf"/>
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param NAME="FlashVars" value="text=#{text}">
<param name="bgcolor" value="#{bgcolor}">
<embed src="/flash/clippy.swf"
width="110"
height="14"
name="clippy"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="https://www.macromedia.com/go/getflashplayer"
FlashVars="text=#{text}"
bgcolor="#{bgcolor}"
/>
</object>
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 to install the following:
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, run the following from Clippy's root directory:
swfmill simple library.xml library.swf && haxe compile.hxml
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:
https://github.com/mojombo/clippy
The best way to get your changes merged back into core is as follows:
- Clone down your fork
- Create a topic branch to contain your change
- Hack away
- If you are adding new functionality, document it in README.md
- If necessary, rebase your commits into logical chunks, without errors
- Push the branch up to GitHub
- Send me (mojombo) a pull request for your branch
License
MIT License (see LICENSE file)
