Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/03/2010, 08:36
Avatar de Sergestux
Sergestux
 
Fecha de Ingreso: agosto-2007
Ubicación: Tapachula
Mensajes: 1.218
Antigüedad: 16 años, 8 meses
Puntos: 20
Respuesta: seleccioanr todo de un textArea con un click

Checate este ejemplo que me encontre googleando con las palabras "flex copy to clipboard"

Código XML:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- http://blog.flexexamples.com/2008/01/30/copying-text-to-the-operating-system-clipboard-in-flex/ -->
  3. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  4.        layout="vertical"
  5.        verticalAlign="middle"
  6.        backgroundColor="white">
  7.  
  8.     <mx:Script>
  9.         <![CDATA[
  10.            import mx.controls.Alert;
  11.  
  12.            private function button_click():void {
  13.                System.setClipboard(richTextEditor.text);
  14.                Alert.show("Done");
  15.            }
  16.        ]]>
  17.     </mx:Script>
  18.  
  19.     <mx:ApplicationControlBar dock="true">
  20.         <mx:Button id="button"
  21.                label="Copy text to clipboard"
  22.                toolTip="Click here to copy the contents of the RichTextEditor control to the OS clipboard."
  23.                click="button_click();" />
  24.     </mx:ApplicationControlBar>
  25.  
  26.     <mx:RichTextEditor id="richTextEditor"
  27.            text="The quick brown fox jumped over the lazy dog."
  28.            width="100%"
  29.            height="100%" />
  30.  
  31. </mx:Application>