Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Piotr Zarzycki
Thanks guys I think I got it, so hopefully support for Royale SWC will be added in the next version of Moonshine. czw., 13 wrz 2018 o 10:53 Alex Harui napisał(a): > It looks like the custom swc is on the -library-path. Does it work if it > uses -js-library-path instead? I though we already

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Alex Harui
It looks like the custom swc is on the -library-path. Does it work if it uses -js-library-path instead? I though we already discussed this. If other configs are loaded like royale-config.xml, then I think you want the -js-library-path. IIRC, the compiler doesn't care if it says

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Piotr Zarzycki
I noticed that we have in config (link [3]) tag "flex-config" - Can it have some impact when Royale is loading it ? Should it be "royale-config"? czw., 13 wrz 2018 o 09:57 Piotr Zarzycki napisał(a): > Hi Alex, > > During swc build I don't get any errors. When I'm using that swc I got > that one

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Piotr Zarzycki
Hi Alex, During swc build I don't get any errors. When I'm using that swc I got that one [1]. - You can download project from my links to see the code. Here is the options which is being used by the project which consuming that swc [2]. Here is the config [3] which you are seeing in [2]. [1]

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Alex Harui
Piotr, what error do you get? Did you unzip the SWC to see if has the expected files? If you get an error using the SWC in the main app, what options are you using in MXMLC for the main app? -Alex On 9/13/18, 12:42 AM, "Piotr Zarzycki" wrote: Ok We have a bit miss lead from the main

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Piotr Zarzycki
Ok We have a bit miss lead from the main thread which is important to me and probably to other users of Moonshine. In a nut shell I'm not able to use in Royale application SWC which was build as JS only. - In the other words I have in the config COMPILE::JS = true and COMPILE::SWF=false. Commands

Re: Difficulties with using in project JS version of Royale swc

2018-09-13 Thread Carlos Rovira
Hi Piotr, thanks!, now I understand :) El mié., 12 sept. 2018 a las 19:03, Piotr Zarzycki (< piotrzarzyck...@gmail.com>) escribió: > Carlos, > > "I must to admit that still doesn't understand totally. Jewel is compiling > to html and flash (although the later compile but doesn't work yet).

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread Piotr Zarzycki
Carlos, "I must to admit that still doesn't understand totally. Jewel is compiling to html and flash (although the later compile but doesn't work yet). AFAIK, we have two targets now flash and html, so if flash is SWF, what is html/js/css? JSRoyale" If you use anything from Apache Royale

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread Carlos Rovira
Hi, ok maybe I didn't understand this ok. I though JSRoyale was old config and JS was the new. So if we want a flash and HTML we must use SWF + JS, if we want only flash use SWF and if we want html we use JS only. So if JSRoyale and JS are different things what's targeting JSRoyale? thanks El

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread Piotr Zarzycki
JSRoyale is connected with royale-config.xml, so you basically can have in your project some components from our framework. If you put JS you probably got fail because those components will not be recognized. At least this is how I understand it. :) Thanks, Piotr śr., 12 wrz 2018 o 17:52 Carlos

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread Piotr Zarzycki
Hi Carlos, As I understand you are using JS in connection with appropriate config. However why are you trying to use JS config to build Jewel stuff? JS is suppose to be used for pure JS projects as far as I understand. Thanks, Piotr On Wed, Sep 12, 2018, 3:53 PM Carlos Rovira wrote: > Hi I

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread Carlos Rovira
Hi I tried JS instead of JSRoyale but I think I have something wrong configured in Jewel, JewelTheme and JewelExample. Josh, could you check this project configurations and suggest what could be the best config for those? If you can, that would be something like a "template" to use. In the

Re: Difficulties with using in project JS version of Royale swc

2018-09-12 Thread piotrz
Hi Josh, I just played with your suggestion, so generate JS and SWF version of SWCs and there is no change in my consumer project. I'm still getting error in JS version of SWC. This is how both command looks like [1]. Just as a reminder what kind of error do I have, swc is placed in

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Josh Tynjala
Yeah, it makes sense to use JSRoyale with js-config.xml to exclude parts of the framework referenced in royale-config.xml. Unexpected changes to js-config.xml in the future could possibly cause some surprises, but if that's probably not a huge risk. This would be a decent exception to the rule.

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Alex Harui
Jewel will probably need JSRoyale On 9/11/18, 1:31 PM, "Carlos Rovira" wrote: That's oool Josh!, I'll try to try "JS" instead of "JSRoyale", that seems more correct. thanks! :) El mar., 11 sept. 2018 a las 19:21, Josh Tynjala () escribió: > Hey Piotr,

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
That's oool Josh!, I'll try to try "JS" instead of "JSRoyale", that seems more correct. thanks! :) El mar., 11 sept. 2018 a las 19:21, Josh Tynjala () escribió: > Hey Piotr, > > There's something a little strange in your compiler options that you > should probably fix: > > You're specifying

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Josh Tynjala
Hey Piotr, There's something a little strange in your compiler options that you should probably fix: You're specifying JSRoyale and js-config.xml together, but these two aren't necessarily compatible. Here's what you have in your compiler options: -compiler.targets=SWF,JSRoyale

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Alex Harui
I just looked in my working copy and the default royale-config.xml looks like it uses -js-library-path. I don’t remember if the build scripts tweak that or not for a js-only package, so look in the royale-config you have and verify if that's true. I guess we must have made that change to make

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
Alex, In the other words I don't have any other option than put my JS only library to js-library-path if I ever wanted to build my application to JS only. Unless there is really a bug, because why following things are not working. -targets=JSRoyale -source-path+=src

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
Thanks Alex, very useful, I think I'll must have this in sight when I'll try to fix maven build distribution, since I think some of the problems are in config xml and library paths declarations. El mar., 11 sept. 2018 a las 18:49, Alex Harui () escribió: > It sounds like I have still not clearly

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Alex Harui
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

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
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

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
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://paste.apache.org/dLA2 SWF

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
Yes I did it. Both looks almost the same. JS -> https://paste.apache.org/XhLi SWF -> https://paste.apache.org/MwKB I will provide in couple of minutes SWF dump. Thanks, Piotr wt., 11 wrz 2018 o 17:52 Alex Harui napisał(a): > Royale SWCs should always have a folder of JS files unless they are

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Alex Harui
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,

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread piotrz
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. Interesting thing is that in both cases I have folder with JS files. I

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Alex Harui
If you are having a problem with a SWC, it is best to dump the SWC and examine it. A SWC is a ZIP file and contains at least a catalog.xml and library.swf and for Royale, usually it also contains JS files. The catalog.xml file should list all classes found in the SWC. If it lists a class but

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
Hi, we cna remove from the list point 3, since it was something on my side as I just reported a minute ago. El mar., 11 sept. 2018 a las 13:30, Carlos Rovira () escribió: > Piotr, I must say that today I have various errors, as I reported: > 1.- error in CI as we saw reported in email > 2.-

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
Piotr, I must say that today I have various errors, as I reported: 1.- error in CI as we saw reported in email 2.- error building with maven in a blog example that before wasn't reporting error 3.- ANT failing creating SDK. Now yours: 4.- this one Maybe some changes yesterday in compiler or in

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
Ok I understand now what you are trying to say. Just to be clear the problem is following. If I prepare SWC which is SWF only - I'm able to consuming it and project which using it building without the problem to SWF. If I prepare SWC which is JS only - Classes are not visible, project is failing

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
Piotr a project is used to be built. a lib to be compiled, and used in a project app... if you're not trying to do that, better I left to others since I don't understand the problem El mar., 11 sept. 2018 a las 12:38, Piotr Zarzycki (< piotrzarzyck...@gmail.com>) escribió: > Again to build what

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
Again to build what ? Project which is consuming SWC or SWCs itself ? Which one you are referring to. Link [2] is library, link [3] is consumer of that library ? wt., 11 wrz 2018 o 12:35 Carlos Rovira napisał(a): > OK, I saw [1] quickly and thought that was only a var declaration. > I see that

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
OK, I saw [1] quickly and thought that was only a var declaration. I see that you don't have either ant or maven files to build (build.xml or pom.xml). Why don't you try to make those files and from there you can go to other config. I assume that config is for Moonshine right? El mar., 11 sept.

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Piotr Zarzycki
Hi Carlos, 1) Are you asking on SWC preparation or building of project which is using that swc ? 2) If you are asking about fail of build of project which is consumer of that swc you have it in link [1] Thanks, Piotr wt., 11 wrz 2018 o 12:23 Carlos Rovira napisał(a): > Hi Piotr, > > 1.- Are

Re: Difficulties with using in project JS version of Royale swc

2018-09-11 Thread Carlos Rovira
Hi Piotr, 1.- Are you building with ANT or Maven? 2.- What's the output of the fail compilation with JS? El mar., 11 sept. 2018 a las 11:46, Piotr Zarzycki (< piotrzarzyck...@gmail.com>) escribió: > Hi Guys, > > I'm having difficulties with using created Royale SWC in some project. I > have