flash on 2010-12-14

by enecre
♥0 | Line 20 | Modified 2010-12-14 15:00:34 | MIT License
play

ActionScript3 source code

/**
 * Copyright enecre ( http://wonderfl.net/user/enecre )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/zYUm
 */

package {
    import flash.text.TextField;
    import flash.system.*;
    import flash.events.*;
    import flash.desktop.*;
    import flash.display.Sprite;
    import com.bit101.components.PushButton;
    import com.bit101.components.TextArea;
    public class FlashTest extends Sprite {
        private var tf1:TextField;
        private var tf2:TextField;
        public function FlashTest() {
            // write as3 code here..
            tf1 = new TextField();
            tf2 = new TextField();
            
            stage.addEventListener(MouseEvent.CLICK, function():void{
                Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, "hoge");
            });
        }
    }
}