I think that you are trying to use the wrong Clipboard class. It looks like
you're using the JS global Clipboard, rather than
org.apache.royale.textLayout.edit.Clipboard.

org.apache.royale.textLayout.edit.Clipboard doesn't have writeText() and
readText() methods.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Mon, Apr 20, 2020 at 8:13 AM Piotr Zarzycki <piotrzarzyck...@gmail.com>
wrote:

> Hi,
>
> I build SDK using distribution option by Maven. When I have tried build
> application using distribution I'm getting following error:
>
> Error: Access of possibly undefined property generalClipboard through a
> reference with static type Clipboard.
>
> It looks like this method [1] wasn't generated in distribution output. When
> I look into class signature in SWC I see following only [2]
>
> [1]
>
> https://github.com/apache/royale-asjs/blob/bdaa1b0bc5f54423aac7bafda363f512236977a1/frameworks/projects/TLF/src/main/royale/org/apache/royale/textLayout/edit/Clipboard.as#L156
> [2] https://ibb.co/GWdj86b
>
> Thanks,
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>

Reply via email to