It sounds like I have still not clearly explained how 
library-path/swf-library-path/js-library-path work.

Library-path is for SWCs that "might" work for both SWF and JS.  When we 
compile most Royale SWCs, we build the library.swf with COMPILE::SWF=true and 
then compile JS files with COMPILE::SWF=false.  The gamble is that folks will 
not use platform-specific APIs (like Flash classes or the Browser's 
HTMLElement.  The default configuration for Royale is to put the SWCs in 
frameworks/projects on the library-path.

The swf-library-path and js-library-path options are for specifying SWCs that 
have APIs for that specific platform.  BUT (this is the key point), as soon as 
you specify even one SWC with js-library-path, the compiler will no longer us 
just plain -library-path in determining the list of SWCs.  If one SWC was 
specified with -js-library-path, then ALL swcs for the JS compile must be 
specified using js-library-path.

So, if you used -js-library-path to specify your custom SWC, then you should 
get the error about not finding Application since it was specified with just 
plain "library-path" in royale-config.xml.  You might have to specify 
-js-library-path=<royale-asjs folder>/frameworks/js/libs" as well to get all of 
the other Royale SWCs.

Anyone who can explain it better, please do so.

HTH,
-Alex

On 9/11/18, 9:28 AM, "Piotr Zarzycki" <piotrzarzyck...@gmail.com> wrote:

    I just checked and here is the results.
    
    JS version of library:
    If I'm using js-external-library-path or js-library-path - SWC is being
    recognized and I'm able to build using it my project to JS (JSRoyale)
    If I'm using -library-path or external-library-path - It's failing with
    errors described in first email.
    
    SWF version of library:
    If I'm using -swf-library-path - I'm getting following error [1], however
    if I use -swf-external-library-path - project is able to produce correct
    swf. Maybe we have a bug in case of -swf-library-path.
    If I'm using -library-path and external-library-path I'm able to produce
    correct swf.
    
    It looks like I know how to implement all of that in Moonshine now. Very
    useful information. I'm wondering whether we shouldn't think that is all
    bugs in case of -library-path and swf-library-path.
    
    Many Thanks for help Alex.
    
    [1] 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F13Sq&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=8j7p5BEsuPo0%2BDJswEDKd9sTYqnoTSMJ1Udecu6FSbY%3D&amp;reserved=0
    
    wt., 11 wrz 2018 o 18:09 Piotr Zarzycki <piotrzarzyck...@gmail.com>
    napisał(a):
    
    > Alex,
    >
    > It looks like library.swf contains in both cases required information and
    > files. I have in this library two files.
    >
    > 1) MyClass -> Contains import of all classes
    > 2) MyViewClass - contains function in blocs COMPILE::SWF and COMPILE::JS
    >
    > JS library dump: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FdLA2&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=4TVP%2BBe2XjGHgTasVjcizK7z3MGC7fBsnUyNYHzi77E%3D&amp;reserved=0
    > SWF library dump: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fo1rW&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=lyRLg0ahC%2Fqthf49onOBKZmL6LHgaT0uKnhwV%2Fie%2Bw0%3D&amp;reserved=0
    >
    > Next step is to try using -js-library-path etc to check whether it makes
    > any difference.
    >
    > Thanks,
    > Piotr
    >
    >
    > wt., 11 wrz 2018 o 18:00 Piotr Zarzycki <piotrzarzyck...@gmail.com>
    > napisał(a):
    >
    >> Yes I did it. Both looks almost the same.
    >>
    >> JS -> 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FXhLi&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=a1qu6RWSm%2BNUOMday9oEoN7SBFBEfv%2FLNdBHUt9TCAM%3D&amp;reserved=0
    >> SWF -> 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FMwKB&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=BSON%2B6%2Bqip94VGBFht19rWvmndAPqbcXNHbmSNq%2BCG8%3D&amp;reserved=0
    >>
    >> I will provide in couple of minutes SWF dump.
    >>
    >> Thanks,
    >> Piotr
    >>
    >> wt., 11 wrz 2018 o 17:52 Alex Harui <aha...@adobe.com.invalid>
    >> napisał(a):
    >>
    >>> Royale SWCs should always have a folder of JS files unless they are SWF
    >>> only.
    >>>
    >>> Before you dump the library.swf, did you look in the catalog.xml?  It is
    >>> easier to see what it thinks is in the SWC.  It could be that the 
manifest
    >>> or other list of classes is not specified in the JS compile.
    >>>
    >>> HTH,
    >>> -Alex
    >>>
    >>> On 9/11/18, 8:49 AM, "piotrz" <pio...@apache.org> wrote:
    >>>
    >>>     Hi Alex,
    >>>
    >>>     The first part of your answer is behind me. I have checked what is
    >>> inside
    >>>     both swcs. On the left sight of the screenshot is JS version.
    >>>
    >>>     <
    >>> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Ffile%2Ft1%2Fjs_swf.png&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=D5dO%2FOTk1yi%2BiApjj9VJcRwLe%2Bao%2Bmkm34VH9w4egrA%3D&amp;reserved=0>
    >>>
    >>>
    >>>     Interesting thing is that in both cases I have folder with JS files.
    >>>
    >>>     I have definitely my swcs in library-path, because SWF version is
    >>> working
    >>>     fine.
    >>>
    >>>     I will try to examine library.swf and get back to you.
    >>>
    >>>     Thanks,
    >>>     Piotr
    >>>
    >>>
    >>>
    >>>     --
    >>>     Sent from:
    >>> 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=zpptYPxUJ9%2FCZOgcNj0Sas2tEDdAHKxZf8WLih061AM%3D&amp;reserved=0
    >>>
    >>>
    >>>
    >>
    >> --
    >>
    >> Piotr Zarzycki
    >>
    >> Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337093590&amp;sdata=jhRo4WPayo2TP7D82u9dl3m33YjJJxEKTCqMEWSXtAc%3D&amp;reserved=0
    >> 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337103595&amp;sdata=vVF0GhS%2BX0S%2FK1gbKHSQzQuVD40jugxU3Sh3kRoNTP0%3D&amp;reserved=0>*
    >>
    >
    >
    > --
    >
    > Piotr Zarzycki
    >
    > Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337103595&amp;sdata=vVF0GhS%2BX0S%2FK1gbKHSQzQuVD40jugxU3Sh3kRoNTP0%3D&amp;reserved=0
    > 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337103595&amp;sdata=vVF0GhS%2BX0S%2FK1gbKHSQzQuVD40jugxU3Sh3kRoNTP0%3D&amp;reserved=0>*
    >
    
    
    -- 
    
    Piotr Zarzycki
    
    Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337103595&amp;sdata=vVF0GhS%2BX0S%2FK1gbKHSQzQuVD40jugxU3Sh3kRoNTP0%3D&amp;reserved=0
    
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C4ee5a0296b76446e222308d61803a8fc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636722801337103595&amp;sdata=vVF0GhS%2BX0S%2FK1gbKHSQzQuVD40jugxU3Sh3kRoNTP0%3D&amp;reserved=0>*
    

Reply via email to