Thanks Josh for help. I just checked distribution pom.xml and it doesn't
contains module with Clipboard. I will add it once develop will be in good
state.

wt., 21 kwi 2020 o 00:21 Josh Tynjala <joshtynj...@bowlerhat.dev>
napisaƂ(a):

> I'm guessing that org.apache.royale.textLayout.edit.Clipboard is missing,
> for some reason. In that case, it would fall back to the global Clipboard,
> since that class doesn't need to be imported.
>
> As for why it is missing, I would guess that it's one of these two possible
> reasons...
>
> 1) You forgot to add the SWC that contains
> org.apache.royale.textLayout.edit.Clipboard to your pom.xml
> 2) You have the correct SWC, but for some reason, it compiled without
> including org.apache.royale.textLayout.edit.Clipboard.
>
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Apr 20, 2020 at 3:13 PM Piotr Zarzycki <piotrzarzyck...@gmail.com>
> wrote:
>
> > Ok but why it has happened? I will check tomorrow if I have correct
> import,
> > but I think I have.
> > Why it is working with SDK from Jenkins, but doesn't with Maven
> > distribution....
> >
> > On Mon, Apr 20, 2020, 6:07 PM Josh Tynjala <joshtynj...@bowlerhat.dev>
> > wrote:
> >
> > > 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>*
> > > >
> > >
> >
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to