mozilla / shumway

Shumway is a Flash VM and runtime written in JavaScript
Apache License 2.0
3.68k stars 395 forks source link

Can work with rhino? #383

Closed hydra1983 closed 11 years ago

hydra1983 commented 11 years ago

I think part of shumway code can work with the java js engine rhino, right? Maybe we can implement the UI, video, audio part using java as well, then load swf files in java with shumway.

magcius commented 11 years ago

Why would Rhino have anything to do with this? If we did implement video and audio using a Java plugin, I'd expect the browser JS to talk to the plugin.

But the point of Shumway is pluginless SWF playback.

hydra1983 commented 11 years ago

OK, thank you. I just lost myself in java and as3 for win,mac,ios,android.... Not easy to combine Flex and java to create cross-platfrom applications.

hydra1983 commented 11 years ago

In the future, I can load and play Flex applications in java using an embedded browser cooperate with shumway maybe. :D

magcius commented 11 years ago

I'm not sure why you would want to do that, but perhaps twenty years down the line that might happen.

hydra1983 commented 11 years ago

My team is developing a product using flex as front end and java as back end. Actually, it's designed as web application. But, our customers want desktop version (win,mac) now, and tablet version(iphone, ipad) in the future as well. I want to reuse most of the things for different platform. it's really hard to achieve these. TideSDK is a good choice maybe.

As there is so many resources in java world, so I want a better solution to combine the power of flex and java to create cross-platform application.

magcius commented 11 years ago

There's no silver bullet, and Shumway won't be able to run "real" SWFs at full speed for at least another year. I'd work on native versions for every client. I'm not sure if Adobe still sells AIR as a desktop or mobile development platform, but that might be a start.

hydra1983 commented 11 years ago

Maybe no need for silver bullet, not all the platforms, just most of the major platforms is enough. Hope js + css + html can achieve this.

I still think as3 is a good language as it provide static check and easy to a debug than js. (Maybe it's not correct, as I do not program js for a long time.)