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

