• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 889
  • Last Modified:

How can I copy data onto the clipboard using flex.

Is it possible to copy data to the clibboard using flex.
0
Plucka
Asked:
Plucka
  • 2
  • 2
1 Solution
 
Jones911Commented:
Absolutly and its very hand and easy:

var testString:String = "Hello this is now in the clipboard";

System.setClipboard(testString);

Make sure you import:

import  flash.system.System;
0
 
PluckaAuthor Commented:
Are there any security issues, popups or warnings or does it just work.
0
 
Jones911Commented:
There are no popups or security errors.  I use the method on mac and windows.  I do however usual add a alert to let the user know my program put something in there clipboard.
0
 
PluckaAuthor Commented:
Wow, I just tried it, love it, flex and actionscript rock, soo easy.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now