[Feature Request] Apache Royale JS Target Support
Apache Royale is the sequel to Flex, and it includes support for compiling to both SWF and JS It doesn't provide a playerglobal on the JS target but OpenFL supports Royale. trough what amounts to a bunch of Conditional compilation to use OpenFL.* Imports instead of flash.* On JS and only compile some stuff when targeting flash this can be achieved, Royale provides the COMPILE::SWF and COMPILE::JS defines by default.
This would allow Starling AS3 Apps to be gotten on HTML5 without a full rewrite or a emulation (maybe I'm 5 years too late to this too)
This is pretty easy work, I'm working on it and opened the issue to know if it'd be desirable upstream.
I guess this would in a way be StarlingJS, so in a way, you could say it was meant to be after all :)
@Fancy2209 I must admit I never followed the progress of Apache Royale (different than Josh from Feathers, who is actively involved, I believe), so I've got no idea of what the limits of this solution would be, and if it's really feasible. But it definitely sounds interesting, and the possibility of having StarlingJS come to life in this form would be fascinating. 🤩
So I can't say if this is something we should merge into the main branch, once it's working - or if this is better suited for a e.g. a fork. But in any case, please keep me updated about your progress! 🙏