• home
  • forum
  • my
  • kt
  • download
  • Setting a clipboard

    Author: 2009-04-27 14:39:24 From:

    1) First create your button. For todays tutorial we are using the one found in the components menu. Name it copy_btn. It should now look like this:

    2) No on the actions layer, put in:

            copy_btn.onRelease = function(){

           System.setClipboard("hello");

            };

    3) Test your movie, when you press the copy button, it will copy "hello" to the clipbooard.

    4) To expand this function we could type:

            copy_btn.onRelease = function(){

            System.setClipboard(_root.text_txt);

            };

    This would copy a text box called _root.text_txt. This only works with dynamic text boxes.

    Download source files for this tutorial.

    discuss this topic to forum

    relation tutorial

    No information

    Category

      3D (33)
      Math Physics (18)
      3rd Party (10)
      Navigation (70)
      Actionscripting (201)
      Optimization (17)
      Animation (158)
      Projector (11)
      Audio (54)
      Special Effects (170)
      Backend (26)
      Text Effects (89)
      Drawing (34)
      Tips and Techniques (51)
      Dynamic Content (34)
      Tricks (8)
      Games (105)
      Utilities (23)
      Getting Started (96)
      Video (59)
      Interactivity (46)
      Web Design (34)

    New

    Hot