PDA

View Full Version : Copying text to the clipboard?


xbcheung
02-02-2005, 01:44 PM
Is there a way to copy the contents of a text object to the clipboard automatically? I want to do something like this:

<text id="hiddenText" datapath="data/text()" visible="false"/>

<text id="visibleText" onclick="hiddenText.(copy to the clipboard)">

Thanks in advance!
Bryan

xbcheung
02-16-2005, 02:37 PM
Anyone?

dirty
01-30-2007, 02:23 AM
Flash 8 Documentation
ActionScript 2.0 Language Reference > ActionScript classes > System > setClipboard (System.setClipboard method)

pavankumargupta
01-30-2007, 02:59 AM
hi,

LzBrowser.setClipboard("text");

use this.

<text id="hiddenText" datapath="data/text()" visible="false"/>

<text id="visibleText" onclick="LzBrowser.setClipboard(hiddenText.getText())" />

regards
pavan

trucker_
01-30-2007, 03:30 AM
Flash 8 Documentation
ActionScript 2.0 Language Reference > ActionScript classes > System > setClipboard (System.setClipboard method)

this is an openlaszlo forum ...

d~l
01-30-2007, 03:50 AM
this is an openlaszlo forum ...
... but you can still grab third party Actionscript 2.0 and place it inside <script></script> tags in OpenLaszlo .. example: using ExternalInterface class for OpenLaszlo <--> javascript.

p.s. this thread is nearly two years old!

trucker_
01-30-2007, 05:31 AM
... but you can still grab third party Actionscript 2.0 and place it inside <script></script> tags in OpenLaszlo .. example: using ExternalInterface class for OpenLaszlo <--> javascript.

I didn't know that. Thnx.:)

kmeixner
05-17-2010, 02:36 PM
I didn't know that. Thnx.:)

Hi,

FYI: Use

lz.Browser.setClipboard("text");

for SWF9/SWF10, old methods of using flash.System.setClipboard will no longer work.


Kevin