Skip to main content
Inspiring
October 16, 2011
Question

cut /copy dont work on ios

  • October 16, 2011
  • 3 replies
  • 817 views

Hi

I made this test. It works on my computer not on the iphone

do someone succed using iphone system clipboard

code

=========================================

import flash.desktop.ClipboardFormats;

bouton.addEventListener(MouseEvent.MOUSE_DOWN, customCopy); // only a button

function customCopy(MouseEvent){ 

var copy:String = texte.text; // textfield on the stage

Clipboard.generalClipboard.clear();

Clipboard.generalClipboard.setData(ClipboardFormats.TEXT_FORMAT, copy);

bouton.alpha = 0.5

}

bouton.addEventListener(MouseEvent.MOUSE_UP, up)

function up(MouseEvent){bouton.alpha = 1; texte.text = "copied"}

=========================================

This topic has been closed for replies.

3 replies

Nimisha1
Participating Frequently
October 17, 2011

Hi Romualdjay,

Currently we don't support clipboard APIs on iOS .

Thanks,

Nimisha .

Inspiring
March 15, 2012

Does this still stand true ?   Has this been updated in AIR3 ?

Participant
May 10, 2012

Is there an answer to this? Has this been addressed in AIR3?