Re: Starling framework compiled to JavaScript

2016-04-05 Thread Nimai
Our goal is to ship a real, full featured, professional video game by the end of the year using ActionScript3 and Starling Framework (as-is, not a fork) running in a browser; with *and* without Flash Player. Conceptually, we would like to see WebGL HTML5 JavaScript become just another build target

Starling framework compiled to JavaScript

2016-04-05 Thread Nimai
We (actually, my coworker Bill) got the entire Starling 2.0 framework successfully transpiled to JavaScript using FalconJX! We are using lizhi's spriteflexjs library to provide code for the flash runtime APIs. In order to get a successful compilation, we developed a way to emit the goog requires

Re: [FalconJX][FlexJS] Local Functions code gen

2016-04-05 Thread Nimai
Shoot! That "internal" was just a leftover from my last test. Same thing happens with "public", though. In any case, I will at least add to JIRA. We are becoming more familiar with the compiler code each day, with the hope to be submitting patches and test cases for sure. Thank you. -- View

Re: [FalconJX][FlexJS] Local Functions code gen

2016-04-04 Thread Nimai
I hope it's OK etiquette to add onto this old thread, but it appears related to this issue. Please see the source AS3 and resulting JS below. The "self" var is emitted but not used. If I manually add "self." in front of the reference to "bar", it does work! / ACTIONSCRIPT / package {

internal keyword on class vars?

2016-04-01 Thread Nimai
Class vars declared as internal do not end up using this. to when referenced in class functions. We're looking for where it decides when it uses this. but bringing it up here in case someone knows more. ** ACTIONSCRIPT ** package { public class foo { internal var bar:String = "baz";

Re: flexjs sorton

2016-03-31 Thread Nimai
I thought there might be useful code in the redtamarin project. I found the unit test implementation in ActionScript. But, the source for the actual Array sortOn is written in C++, of course. https://github.com/Corsaair/redtamarin/search?utf8=%E2%9C%93&q=sortOn ActionScript's Array sortOn has a

The Class type

2016-03-31 Thread Nimai
Any support for the "constructor" property for Objects in FalconJX? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Object.html#constructor Right now the following translation occurs: [AS3] var c1:Class = Object(this).constructor as Class; var c2:Class = this["co

[FalconJX] Exception: MemberAccessExpressionNode cannot be cast to IIdentifierNode

2016-03-23 Thread Nimai
Our team is currently using the nightly build of Falcon JX to try and compile the Starling Framework to JavaScript. The compilation eventually fails with: java.lang.ClassCastException: o.a.f.c.internal.tree.as.MemberAccessExpressionNode cannot be cast to o.a.f.c.tree.as.IIdentifierNode at