How can I copy data onto the clipboard using flex.

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

    Accepted Solution

    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

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

    Expert Comment

    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

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now