1 /** 2 * com.sekati.utils.Clipboard 3 * @version 1.0.0 4 * @author jason m horwitz | sekati.com 5 * Copyright (C) 2007 jason m horwitz, Sekat LLC. All Rights Reserved. 6 * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php 7 */ 8 9 /** 10 * Simple system clipboard management. 11 */ 12 class com.sekati.utils.Clipboard { 13 14 private static var _str:String = ""; 15 16 /** 17 * Push content to the System clipboard 18 * @param content (Object) 19 * @return Void 20 */ 21 public static function push(content:Object):Void { 22 var str:String = String( content ); 23 _str += str + "r"; 24 System.setClipboard( _str ); 25 } 26 27 /** 28 * Pop content out of the System clipboard and clear it. 29 * @return String 30 */ 31 public static function pop():String { 32 return _str; 33 _str = ""; 34 System.setClipboard( " " ); 35 } 36 37 private function Clipboard() { 38 } 39 }