Clipboard setData Chrome limit


hi

 

many years ago developed application allows users copy data in form of html allow user paste data in other applications such excel.

 

however, have received complaints not working in chrome , after testing have discovered there limitation 1 million characters when copying application using chrome. working fine in ie smaller strings in chrome.

 

code replicate error...

 

var str:string = "";

for(var i:uint = 0; < 1000001; i++)

   str += "x";

 

trace(str.length)

try {

    clipboard.generalclipboard.clear();

    var clipboardsuccess:boolean = clipboard.generalclipboard.setdata(clipboardformats.html_format,str);     

    trace("setclipboard " + clipboardsuccess)

} catch (e:error) {

    trace("error setclipboard " + e);

}     

 

obviously code has run in button event. working in ie , in chrome if string 1000000 or shorter.

clipboard.generalclipboard.setdata returns true (success) , never throwing error.

system.setclipboard same.

 

any workarounds? general chrome limitation or chrome flash player?

'chunk' data.

 

the problem may have use 'intelligent' chunking (because of html formatting).



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"