In the FlexSDK when we needed to add that functionality to a component that needed to copy to clipboard we inherited the component. An example for one of ours is the spark DataGrid. Our component listens for the COPY event and formats the highlighted data into an HTML based table to paste elsewhere. This requires focus however.
For our needs to copy from a label we used a modified spark RichEditableText where the editable property is false. This gives the label look but allows you to highlight text and copy it out. -Mark K -----Original Message----- From: bilbosax <waspenc...@comcast.net> Sent: Monday, December 16, 2019 10:34 AM To: users@flex.apache.org Subject: [Non-DoD Source] Copy and Paste Text I have written a mobile real estate app that displays a lot of property information using Spark Labels. Unfortunately, Spark Labels are not selectable, and a user might want to copy and paste a long MLS # or address to Zillow, or copy the agent's phone number or email address to some other tool. I tried switching to RichEditableText and setting the "selectable" property to true, but all I could do was get my text to highlight in blue, but I had no ability to modify the amount of text that I wanted to copy and paste, and I was given no option anywhere on the component to actually "Copy" the text that was highlighted. How can I make a text field of some sort Copyable to to the operating system's clipboard so that I can offer users the ability to copy and paste text on a mobile device? -- Sent from: http://apache-flex-users.2333346.n4.nabble.com/