Re: Am I missing something

2018-04-09 Thread Alex Harui
Hi Johnny,

I guess I would add that to my talk. ;-)

You can just write AS3, but you cannot use Flash classes.  You must use Royale 
classes which abstract away the platform/runtime differences.  Emulating the 
Flash classes would be too much work, IMO and not match up well in some cases 
to what the browser can do.  For example there is more emphasis on CSS in 
Royale and less on drawing skins.

Most of our examples use MXML, because, like Flex, the compiler can bring in 
lots of support like data binding and CSS.  There is an AS3-only example in 
examples/royale/DataBindingExample_as.  It might have some bugs in it.  I 
haven't looked at it in a while.

HTH,
-Alex

From: John Barrett mailto:johnb...@hawaii.edu>>
Reply-To: "users@royale.apache.org" 
mailto:users@royale.apache.org>>
Date: Sunday, April 8, 2018 at 11:43 PM
To: "users@royale.apache.org" 
mailto:users@royale.apache.org>>
Subject: Am I missing something

[https://tr.cloudmagic.com/h/v6/emailtag/tag/2.0/1523256183/ee6694815bd00e79c24b82ff0eebe983/2/a24022f64eedbcae9c38c3ec35c0c492/2c9ee63f9ca71df55f52790ebfad2d70/197f3edc2dffcc39b242c73e091c47ed/newton.gif]
I was about do to the FlexJS -> FDT tutorial, but then before I do that I wrote 
a very
simple HelloWorld, of course this way it is using a .swf file.

With Apache Royal can I just write AS3 (see image) and Apache Royal  will 
convert everything to javaScript for use on the Web/Phone/Tablet/ etc

Is this it, or am I missing something. I think I am missing something as when I 
look at the GitHub age there seems to be more to it.

Mahalo
Johnny

On Sun, Apr 8, 2018 at 2:21 AM, Piotr Zarzycki 
mailto:piotrzarzyck...@gmail.com>> wrote:
Are you sure that you are on the right branch in case of royale-asjs. You have 
been asked in the stack traces for 0.9.2-SNAPSHOT version. It should be 
0.9.3-SNAPSHOT

I think in order to work on emulation you have to be:

royale-compiler - develop branch
royale-typedefs - develop branch
royale-asjs - feature/MXRoyale

Are you using those branches ?

Thanks,
Piotr

2018-04-08 14:12 GMT+02:00 Serkan Taş 
mailto:serkan@likyateknoloji.com>>:

I prefer mvn Piotr,

I first compiled the typedefs and compiler successfuly as Alex informed but i 
got the same error as earlier.

and here is the report :

cd royale-typedefs

mvn clean : success
mvn install : success

**

(due to the bug in code generator - related to locale dependent capitalizing 
u-case i to İ - I had to change the jvm params)

cd royale-compiler

mvn clean -Djvm.options="-Duser.country=EN -Duser.language=en" : success

mvn install -Djvm.options="-Duser.country=EN -Duser.language=en"

Tests run: 1145, Failures: 4, Errors: 6, Skipped: 4

[INFO] 
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Royale: Compiler: Parent 0.9.3-SNAPSHOT . SUCCESS [ 4.600 s]
[INFO] Apache Royale: Compiler: Compiler-Common ... SUCCESS [ 6.545 s]
[INFO] Apache Royale: Compiler: Test Utils  SUCCESS [ 1.344 s]
[INFO] Apache Royale: Compiler: Externc ... SUCCESS [ 16.432 s]
[INFO] Apache Royale: Compiler: Compiler .. SUCCESS [02:26 min]
[INFO] Apache Royale: Compiler: Compiler-JX ... FAILURE [ 49.945 s]
[INFO] Apache Royale: Compiler: SWFUtils .. SKIPPED
[INFO] Apache Royale: Compiler: Debugger .. SKIPPED
[INFO] Apache Royale: Compiler: OEM Layer . SKIPPED
[INFO] Apache Royale: Royale Ant Tasks  SKIPPED
[INFO] Apache Royale: Royale Maven Plugin 0.9.3-SNAPSHOT .. SKIPPED
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 03:46 min
[INFO] Finished at: 2018-04-08T14:56:46+03:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on 
project compiler-jx: There are test failures.
[ERROR]
[ERROR] Please refer to 
D:\dev\git\emulation_works\royale-compiler\compiler-jx\target\surefire-reports 
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

RE: Am I missing something

2018-04-09 Thread Yishay Weiss
Hi Johnny,

Royale (formerly FlexJS) was inspired by Flex and utilizes some similar 
patterns. It allows you to write JS applications in AS3 but it’s not a 
flash->js converter, so flash objects as Sprite are not currently implements. A 
typical ‘Hello World’ could look like this [1] [2].

Alex wrote a nice tutorial titled Royale in 10 minutes, maybe he can post a 
link here.

Some of the videos here [3] can also help you get an idea, although they refer 
to FlexJS.

Hope this helps.

[1] https://github.com/yishayw/Examples/blob/HelloWorld/Examples.mxml
[2] https://royale.apache.org/creating-a-hello-world-in-apache-royale/
[3] https://www.youtube.com/playlist?list=PL4EsaSA9xpnnraJX7NzpX6eh_P95RO8Pj


From: John Barrett
Sent: Monday, April 9, 2018 9:43 AM
To: users@royale.apache.org
Subject: Am I missing something

[https://tr.cloudmagic.com/h/v6/emailtag/tag/2.0/1523256183/ee6694815bd00e79c24b82ff0eebe983/2/a24022f64eedbcae9c38c3ec35c0c492/2c9ee63f9ca71df55f52790ebfad2d70/197f3edc2dffcc39b242c73e091c47ed/newton.gif]I
 was about do to the FlexJS -> FDT tutorial, but then before I do that I wrote 
a very
simple HelloWorld, of course this way it is using a .swf file.

With Apache Royal can I just write AS3 (see image) and Apache Royal  will 
convert everything to javaScript for use on the Web/Phone/Tablet/ etc

Is this it, or am I missing something. I think I am missing something as when I 
look at the GitHub age there seems to be more to it.

Mahalo
Johnny

On Sun, Apr 8, 2018 at 2:21 AM, Piotr Zarzycki  
wrote:
Are you sure that you are on the right branch in case of royale-asjs. You have 
been asked in the stack traces for 0.9.2-SNAPSHOT version. It should be 
0.9.3-SNAPSHOT

I think in order to work on emulation you have to be:

royale-compiler - develop branch
royale-typedefs - develop branch
royale-asjs - feature/MXRoyale

Are you using those branches ?

Thanks,
Piotr

2018-04-08 14:12 GMT+02:00 Serkan Taş 
mailto:serkan@likyateknoloji.com>>:

I prefer mvn Piotr,

I first compiled the typedefs and compiler successfuly as Alex informed but i 
got the same error as earlier.

and here is the report :

cd royale-typedefs

mvn clean : success
mvn install : success

**

(due to the bug in code generator - related to locale dependent capitalizing 
u-case i to İ - I had to change the jvm params)

cd royale-compiler

mvn clean -Djvm.options="-Duser.country=EN -Duser.language=en" : success

mvn install -Djvm.options="-Duser.country=EN -Duser.language=en"

Tests run: 1145, Failures: 4, Errors: 6, Skipped: 4

[INFO] 
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Royale: Compiler: Parent 0.9.3-SNAPSHOT . SUCCESS [ 4.600 s]
[INFO] Apache Royale: Compiler: Compiler-Common ... SUCCESS [ 6.545 s]
[INFO] Apache Royale: Compiler: Test Utils  SUCCESS [ 1.344 s]
[INFO] Apache Royale: Compiler: Externc ... SUCCESS [ 16.432 s]
[INFO] Apache Royale: Compiler: Compiler .. SUCCESS [02:26 min]
[INFO] Apache Royale: Compiler: Compiler-JX ... FAILURE [ 49.945 s]
[INFO] Apache Royale: Compiler: SWFUtils .. SKIPPED
[INFO] Apache Royale: Compiler: Debugger .. SKIPPED
[INFO] Apache Royale: Compiler: OEM Layer . SKIPPED
[INFO] Apache Royale: Royale Ant Tasks  SKIPPED
[INFO] Apache Royale: Royale Maven Plugin 0.9.3-SNAPSHOT .. SKIPPED
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 03:46 min
[INFO] Finished at: 2018-04-08T14:56:46+03:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on 
project compiler-jx: There are test failures.
[ERROR]
[ERROR] Please refer to 
D:\dev\git\emulation_works\royale-compiler\compiler-jx\target\surefire-reports 
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn  -rf :compiler-jx


I added params to skip tests

mvn -DskipTests -Drat.skip=true clean -Djvm.options="-Duser.country=EN 
-Duser.language=en" : success

mvn -DskipTests -Drat.skip=true install -Djvm.options="-Duser.country=EN