bp74 / StageXL

A fast and universal 2D rendering engine for HTML5 and Dart.
http://www.stagexl.org
Other
881 stars 82 forks source link

Port FlexJS #272

Open devlfm opened 7 years ago

devlfm commented 7 years ago

Hi,

Great work out here! I'm starting to feel that if someday I'll convert my app from flash to html5 it would be with StageXL! I've been listening discussions list on FlexJS, and seems they are doing a pretty good job, but.. All I see on FlexJS is divs/spans, and that's what I don't want... I'm wonder if you think it would be good for StageXL to have a "swc" or some port, so pleople that use FlexSDK (falcon) could use your implementation of canvas/webgl?

Kind regards!

bp74 commented 7 years ago

Hi, sorry for the late reply. Yes that would be an interesting project, but someone would need to invest a lot of time to build something like this. You may take a look at the rockdot framework (link below). This is a UI framework build on top of StageXL.

https://github.com/block-forest/rockdot-framework

audioMirror commented 7 years ago

Our product is developed on Flash and Flex, and we use FlexJS with a custom backend to compile to Dart and StageXL (with modifications to make StageXL almost exactly match the Flash API).

Unfortunately our pipeline is proprietary, so we can't share it. It does work great, but it took a lot of work to create, and I doubt anyone else will do the work that we did.

With Flash dying (though it is a great language), I would suggest just using StageXL as a first-class library, and coding to it directly.

nilsdoehring commented 6 years ago

@audioMirror a pity that you can't share the pipeline – having invested into writing a converter myself, I'd be interested in learning more about yours. Besides that, any chance you could share some info what exactly you're pushing through it? Anything out in the open? StageXL could use some testimonials :-)

audioMirror commented 6 years ago

No, I can't share the pipeline, but I can give some idea of what we have done, and you can see how much work it would be:

We use Dart Angular for some non-canvas areas of the product, but everything else is programmatic Flex (not scripting mxml, though that could've been parsed and ported too, with much more work). We have a single codebase, and it just works in both Flash, and Dart and StageXL.

The work described took over a year by me. When it was time to pull the trigger, our application guy went from zero to mostly working in one week. The alternative was a total rewrite. As is, our product is even more stable than with AS3 only, as two compilers and two environments notice flaws.

If StageXL didn't exist, I would've had to write it, so I am very grateful for it.