RE: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Frost, Andrew
Hi Well @const is at least supported by the Google classes; with a slight change in FieldReference.java to actually set the internal flag ("this.isConst = comment.hasConstAnnotation();") then it changes the ActionScript declaration so that it's now: public const timezoneOffset:Number = 13; And

Re: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Alex Harui
Interesting. In https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler it mentions @const as the annotation. That might already work and if not, we should probably make it work. The missing.js in royale-compiler is just there to get the compiler's tests

Re: Arrays and types

2018-06-29 Thread Alex Harui
On 6/29/18, 11:33 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: Hi, another thing we could do is support TypeScript at same level as AS3. What do you think about this? Maybe this could make more people come to Royale. TypeScript seems the language of

Re: how to get a component nest Childs in some inner html tag

2018-06-29 Thread Alex Harui
On 6/29/18, 11:29 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: Hi Alex, thanks for the explanation I think finaly understand the main difference between Group and Container. Although, I see Group seems to have many things already setup to be able to do

RE: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Frost, Andrew
Hi Those date tests already test the mapping, and are running fine. They're not getting stuck at the earlier stage which is where the original problem lay. So I'd been thinking of adding a new test file under the below folder, where other AS-specific testing is happening: royale-compiler/compil

Re: Arrays and types

2018-06-29 Thread Carlos Rovira
Hi, another thing we could do is support TypeScript at same level as AS3. What do you think about this? Maybe this could make more people come to Royale. TypeScript seems the language of this days, and maybe parsers and tools to integrate it should be available so maybe, it could be a task doable.

Re: how to get a component nest Childs in some inner html tag

2018-06-29 Thread Carlos Rovira
Hi Alex, thanks for the explanation I think finaly understand the main difference between Group and Container. Although, I see Group seems to have many things already setup to be able to do have this feature. Don't know if having two separate components make sense, or there's more differences? Re

Re: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Alex Harui
There are Date tests in TestRoyaleGlobalClasses.java In this case, the issue may be in how to set up a copy of the tests to work with js.swc instead of playerglobal.swc. Regarding read-only properties, I think the externc compiler might have a way of doing that. It would likely involve one of

Re: Migrating Enterprise Flex Application

2018-06-29 Thread Alex Harui
It might depend on what kind of errors. Try the api-report, see what you get and think about whether it makes sense. Thanks, -Alex On 6/29/18, 1:49 AM, "chembali" wrote: I skipped the offending mxml and the compiling of my first component completed. It is giving me a bunch of errors.

Re: Arrays and types

2018-06-29 Thread Alex Harui
Some features of other development environments are "language" and some are "runtime/platform". The easiest test for determining the difference is in the output. In the case of TypeScript, just about every feature transpiles into JavaScript so it is all Language features and we could teach our

Re: how to get a component nest Childs in some inner html tag

2018-06-29 Thread Alex Harui
Container creates a ContainerContentArea as its child and then all children become children of the ContainerContentArea. Group does not do that. The concept of having an inner content area forms the basis of complex containers with "chrome" around it, such as Panel. I'm not sure how your requ

how to get a component nest Childs in some inner html tag

2018-06-29 Thread Carlos Rovira
Hi, I trying to find the best route to have a container component that has some nested html tag structure and adding child elements will be added to the inner element, but the rest of normal behavior (id, listeners, etc..) will be referencing the positioner. What's the best way to do this? Use Gr

Re: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Frost, Andrew
".. not yet" is probably the most appropriate response!! I had wondered whether it would need some formal self-tests adding, I'll have a dig around to see how to do this bit :-) thanks Andrew -Original Message- From: Harbs [mailto:harbs.li...@gmail.com] Sent: 29 June 2018 13:35 To

Re: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Harbs
Cool. Are there compiler tests for these Date additions? > On Jun 29, 2018, at 3:03 PM, Frost, Andrew wrote: > > Yes - it needed changes both in the typedefs and in the compiler; and also, > this is just to workaround the syntax checking part, as the conversion that > was already present will

RE: Royale compiler not handling Date.fullYear etc

2018-06-29 Thread Frost, Andrew
Yes - it needed changes both in the typedefs and in the compiler; and also, this is just to workaround the syntax checking part, as the conversion that was already present will now kick in.. Did a few tests on it and noticed that I could assign to the timezoneOffset [read-only] property, althou

Re: Migrating Enterprise Flex Application

2018-06-29 Thread chembali
I skipped the offending mxml and the compiling of my first component completed. It is giving me a bunch of errors. Should I try to fix these compile errors or can I just rerun with the api-report option to generate the report? -- Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: Arrays and types

2018-06-29 Thread Carlos Rovira
Hi, I expect we evolve our languages and compilers to be smarter and we get things like Typed Arrays, Generics, and other things other since TypeScript or haXe already supports it. So I talk with many people that said me "why use AS3 when I can use TypeScript that has all this things and are most

Re: Migrating Enterprise Flex Application

2018-06-29 Thread chembali
The name of the mxml file is PopupTemplate.mxml. I have attached the ResizableTitleWindow.as -- Sent from: http://apache-royale-development.20373.n8.nabble.com/

Arrays and types

2018-06-29 Thread Harbs
There is something I’ve been struggling with: AS3 does not have “typed” arrays. The closest it has is Vectors. The problem with vectors is two-fold. First of all, the cross compiler uses Language to construct the vector rather than simply declaring an array. This could probably be fixed though.

Re: Migrating Enterprise Flex Application

2018-06-29 Thread Alex Harui
Interesting. What is the name of this MXML file? What does ResizableTitleWindow.as look like? Is ResizableTitleWindow.as in the same swc as this MXML file? For the purposes of generating the API report, you can probably skip this entire file. It appears to only be using VBox from Flex. HTH

RE: Migrating Enterprise Flex Application

2018-06-29 Thread chembali
I stripped it down to But no luck. I tried changing the name space as well, but didn't work. ResizableTitleWindow.as compiles fine. Thinking of replacing this panel with some other kind of panel and see if I can move along. -- Sent from: http://apache-royale-development.20373.n8.nabble.com