How can I copy data onto the clipboard using flex.

Posted on 2008-11-06
Medium Priority
Last Modified: 2013-11-11
Is it possible to copy data to the clibboard using flex.
Question by:Plucka
  • 2
  • 2
LVL 19

Accepted Solution

Jones911 earned 2000 total points
ID: 22900947
Absolutly and its very hand and easy:

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


Make sure you import:

import  flash.system.System;
LVL 18

Author Comment

ID: 22900970
Are there any security issues, popups or warnings or does it just work.
LVL 19

Expert Comment

ID: 22901010
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.
LVL 18

Author Closing Comment

ID: 31514191
Wow, I just tried it, love it, flex and actionscript rock, soo easy.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question