Re: [FLEXJS] Modules

2017-09-07 Thread Alex Harui
Hi Carlos, Peter's work ended up being more like SWFLoader. It loads something much more like a sub-application. There is a examples/flexjs/ModuleExample folder. I have not spent any time on resolving any of the drawbacks mentioned in the original post. First, I want to see how important it is

Re: Kotlinjs has solved the circular dependency problem. Flexjs, do you have any plans?

2017-09-07 Thread lizhi
Thank you for finding the improvement. But I'm not going to change this part of the code. I'm sure this is SDK bug, not code bug. I will wait for SDK to fix the bug, such as SDK to version 1, to engage in flexjs, first do other things recently. - spriteflexjs.com -- Sent from: http://apache

Re: Kotlinjs has solved the circular dependency problem. Flexjs, do you have any plans?

2017-09-07 Thread Harbs
Hi Lizhi, I don’t think this is a “bug” that will be fixed. It’s more of a limitation which is probably not going away. Resolving circulars so static consts (or initialized vars) can be used for custom types is not really a solvable problem unless there is a class initialization stage after lo

Re: Kotlinjs has solved the circular dependency problem. Flexjs, do you have any plans?

2017-09-07 Thread lizhi
hi, Whether it's bug or not. But the flashplayer based AS3 language supports this writing. And the old version of flexjs also supports this writing, proving that it can be successfully compiled into JS code. Besides, we use flexjs for a great reason because there are many old AS3 libraries, some of

Re: Kotlinjs has solved the circular dependency problem. Flexjs, do you have any plans?

2017-09-07 Thread Harbs
It only worked up to a point. I ran into many cases where the old compiler blew up on these issues. I spent about a month with Alex on these issues. They were very difficult to resolve. Let’s see what Alex thinks of my latest suggestion on resolving this problem. Harbs > On Sep 7, 2017, at 1:0

Trouble with typedefs

2017-09-07 Thread Harbs
I have an issue with some typedefs and I can’t figure out why a value is being minimized. I created some typedefs for hammer.js: https://www.dropbox.com/s/on4cyi02t0tiyue/hammer.swc?dl=0 In my app I have the following code: private s

Re: [FLEXJS] Modules

2017-09-07 Thread Carlos Rovira
Ok Alex, I'll be looking at the example and seeing how it performs and give some feedback. I think it could work for me at least, but I suppose that in the end we would need to clean those duplicates in order to have a more "production" feature Thanks! 2017-09-07 9:37 GMT+02:00 Alex Harui : >

Re: [FLEXJS] Modules

2017-09-07 Thread Carlos Rovira
Hi Alex, I'm looking to the ModulesExample but is not working for me. I tried to build with regular maven instruction (men clean install) in parent folder of both main app and module. Then run localy and upload to a server, but main app doesn't load and reports 404. In code I see: so modulePat

[FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Alex Harui
Hi folks, Yesterday, I was able to manually create a folder of files that contained no Adobe AIR or Adobe Flash files and still was an acceptable Flex/FlexJS SDK for Adobe Flash Builder and allowed me to compile DataBindingExample for JSFlex output only (it did not build a SWF). This is interesti

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread OmPrakash Muppirala
This is a big big deal. Thanks for getting this done. I would be very interested in the non-installer, simple zip file download. I dont care much for Ant as a requirement, I would rather continue maintaining the npm FlexJS package for AIR download + setup. Thoughts? Thanks, Om On Thu, Sep 7,

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Piotr Zarzycki
Hi Alex, Since you fake airglobal.swc and playerglobal.swc maybe it will also work with Moonshine. I will try to do same operation as you did and see whether I will not have previous errors. Thanks! Piotr 2017-09-07 18:43 GMT+02:00 OmPrakash Muppirala : > This is a big big deal. Thanks for get

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
If I could get a zip to just try it, I am all for this. On the plus side, if you can get a zip only for windows and documented setup for quick testing, I think this goes a long way with being able to develop the compiler and develop the ui framework separation a lot cleaner. Getting stuff ripped

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread OmPrakash Muppirala
On Thu, Sep 7, 2017 at 9:55 AM, Michael Schmalle wrote: > If I could get a zip to just try it, I am all for this. > > On the plus side, if you can get a zip only for windows and documented > setup for quick testing, I think this goes a long way with being able to > develop the compiler and develo

Re: [FLEXJS] Modules

2017-09-07 Thread Alex Harui
I tested it locally. I only got the Maven build to create the artifacts. I wasn't sure of the best way to deploy the artifacts. Can you help with that? As I mentioned in the first post, for js-debug you have to copy stuff around. I just ran the Maven build, make a folder in MainApp/target/javas

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Alex Harui
Here's a zip: http://home.apache.org/~aharui/FlexJS/ApacheFlexJSJSOnly.zip I only tried on Mac. I didn't realize we had an NPM package that overlaid AIR/Flash into an SDK folder. I agree that would be better than Ant. What I would really like to see, but not sure if it is possible, is to have

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
Alex, Being completely out of the loop, what do I have to do to use this zip content on Windows with FB? (quick and dirty bullet list?) Mike On Thu, Sep 7, 2017 at 1:38 PM, Alex Harui wrote: > Here's a zip: http://home.apache.org/~aharui/FlexJS/ > ApacheFlexJSJSOnly.zip > > I only tried on Ma

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Alex Harui
Unzip In FB, go to Preferences/Flash Builder/Installed Flex SDKs Hit Add... I would not make this folder the default SDK. For some existing FlexJS project, go to Project/Properties/Flex Compiler and choose this new SDK. Note that Project/Clean does not clean up the "bin" folder so you may want to

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
Thanks, I will report back when I have some spare time. Mike On Thu, Sep 7, 2017 at 1:52 PM, Alex Harui wrote: > Unzip > In FB, go to Preferences/Flash Builder/Installed Flex SDKs > Hit Add... > > I would not make this folder the default SDK. For some existing FlexJS > project, go to Project/P

Re: [FLEXJS] Modules

2017-09-07 Thread Alex Harui
Thanks for looking into it. Regarding duplicates, I've got plenty of things to work on, so having someone else handle duplicates would be best. I think it would be done as post-processing text manipulation. No compiler knowledge needed. But again, I think we need to assess how important it is.

Re: Trouble with typedefs

2017-09-07 Thread Alex Harui
How did you create the SWC? I think typedefs JS files have to be an externs folder not in js/out. If the typedefs source is AS then make sure @externs is in the ASDoc for the class. HTH, -Alex On 9/7/17, 4:31 AM, "Harbs" wrote: >I have an issue with some typedefs and I can’t figure out why a

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Olaf Krueger
>If this sound good to folks.. This sounds really good, Alex!! I think it's an important thing to get rid of some dependencies and to ease the FlexJS setup. Thanks, Olaf -- Sent from: http://apache-flex-development.247.n4.nabble.com/

Re: [FLEXJS] Modules

2017-09-07 Thread Carlos Rovira
Hi Alex, I finaly get it working localy. Wasn't aware that I should copy the .js file to MainApp target folder. Know seeing how it works, and talking about duplicates, I think we could only need to put some maven instrucción in the pom so the .js will be copied automatically, and look for duplica

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Adam Malejko
This sounds great! In our use cases, we don't have a need for SWF output when doing FlexJS projects, and we suspect that we are not alone. For those that want JS and SWF output, what is the appeal or need? The existing Apache Flex compiler (with AIR if needed for mobile) works fine for our curren

Re: Kotlinjs has solved the circular dependency problem. Flexjs, do you have any plans?

2017-09-07 Thread Alex Harui
Small test cases would be helpful in determining solutions. Thanks, -Alex On 9/7/17, 3:15 AM, "Harbs" wrote: >It only worked up to a point. I ran into many cases where the old >compiler blew up on these issues. I spent about a month with Alex on >these issues. They were very difficult to resolv

Re: [FLEXJS] Modules

2017-09-07 Thread Piotr Zarzycki
Carlos, If I may suggest something you can look into tourjs [1] project where I did copying in poms. [1] https://github.com/apache/flex-tourjs/blob/develop/TourJS/pom.xml Piotr On Thu, Sep 7, 2017, 23:24 Carlos Rovira wrote: > Hi Alex, > > I finaly get it working localy. Wasn't aware that I s

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Alex Harui
Hi Adam, Thanks for your input. Many of us want to make sure SWF output is viable for several reasons 3 of which quickly come to mind: 1) There is a runtime verifier in the Flash Player. When you run your code in Flash/AIR it is literally running 1000's of tests that the browser doesn't run and

Re: [FlexJS][Installer] Logistics (was: Future packaging of FlexJS releases)

2017-09-07 Thread Alex Harui
I was about to start on this in the Ant scripts which got be thinking about how Apache wants source packaging to correspond to binary packaging via a build script. IOW, I don't think it is right to change the current binary packaging script to package up binaries from flex-falcon unless we also st

Re: Trouble with typedefs

2017-09-07 Thread Harbs
Bingo! Thanks! Harbs > On Sep 7, 2017, at 11:22 PM, Alex Harui wrote: > > If the typedefs source is AS then make sure > @externs is in the ASDoc for the class.