Friday, November 25, 2005

Free Friday - Flash - System.setClipboard by Peter Elst

This is a jewel of a method but many seem to miss it. System.setClipboard allows you to add a string onto the system clipboard from ActionScript. Seamless system integration via the clipboard. You can't beat that!


Open Example SWF in a New Window

This example is available with full source and documentation within Flex® by Example.

More to come.

Ted :)

2 Comments:

At November 28, 2005 5:28 PM, geekinger said...

just out of curiosity, what would be a good example of where this could be used?

 
At November 29, 2005 12:19 AM, Ted Patrick said...

Actually a great one is pasting into Excel from component dataProviders.

1. Provide a copy button adjacent to a grid control.

2. On 'click' format the dataProvider and write it to the clipboard using setClipboard.

3. Paste into Excel, rendering formatted data into cells.

We will put together a few more examples highlighting usage.

 

Post a Comment

<< Home