Use javascript:

//HTML
<script language="javascript">

 function getClipBoardText() {
  var t = window.clipboardData.getData("TEXT");
  return t;
 }

</script>

//FLASH
import mx.utils.Delegate;
import flash.external.ExternalInterface;
function pasteClickHandler(evt:Object):Void {
 var t:Object = ExternalInterface.call("getClipBoardText");
 trace(t.toString());
}
paste_btn.addEventListener("click", Delegate.create(this, pasteClickHandler));


No idea which browsers it works/doesn't work in though.
Check google for "javascript clipboardData" or "javascript execCommand paste"

regards,
Muzak

----- Original Message ----- 
From: "James Marsden" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, September 11, 2007 11:32 AM
Subject: Re: [Flashcoders] Text Editor Undo/Redo Stack


> Hallo,
>
> The text editor app is up and running now, thanks to those folks that offered 
> suggestions. I've got everything working apart from 
> the pasting of text. Does anyone know how it is possible to do this? Any cool 
> tricks to access the clipboard from ActionScript 
> (I've had a look online and found nowt).
>
> Cheers!
>
> James


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to