[haXe] Flash System.setClipboard problem

Michael Pliskin pl at tepkom.ru
Wed Sep 13 18:43:01 CEST 2006


Hello Asger,

Hm, but this is neko/systools which is a proxy for OS clipboard. But
what about native flash methods...

AOA> Hm, the attached sample works for me in neko. Output is:

AOA> Test.hx:5: Current text on clipboard:           trace("Cleared clipboard");
AOA> Test.hx:8: Set to empty string
AOA> Test.hx:11: Current text on clipboard: 
AOA> Test.hx:14: Cleared clipboard
AOA> Test.hx:17: Current text on clipboard: null
AOA> Test.hx:19: Setting clipboard text to: Hello World
AOA> Test.hx:23: Current text on clipboard: Hello World

AOA> Also, notice, to clear the clipboard, you can use  Clipboard.clear();

AOA> Regards,
AOA> Asger


AOA> On 9/1/06, Michael Pliskin <pl at tepkom.ru> wrote:
AOA>  Hello list,

AOA>   We've found a problem that might be a general flash issue, but might
AOA>   be related to the haxe itself as well. The problem is that passing
AOA>   an empty string to System.setClipboard to clear off the clipboard 
AOA>   does not work. Everything else but empty string works fine.
AOA>   Attaching a really small sample which allows one to play with the
AOA>   function:

AOA>    - enter anything in the top textfield
AOA>    - press enter (to invoke setClipboard) 
AOA>    - press CTRL-V in the bottom textfield - works perfectly unless you
AOA>      left an empty string in the top field, in this case system
AOA>      clipboard contents does not change.

AOA> --
AOA> Best regards,
AOA>  Michael                          mailto: pl at tepkom.ru

AOA> --
AOA> haXe - an open source web programming language
AOA> http://haxe.org




AOA>   


-- 
Best regards,
 Michael                            mailto:pl at tepkom.ru


More information about the Haxe mailing list