开发者

Is it possible to run a Java program inside a Flex application?

开发者 https://www.devze.com 2022-12-24 23:10 出处:网络
I would like to be able to incorporate a simple game, written in Java as a component within a Flex Application.Am I crazy?

I would like to be able to incorporate a simple game, written in Java as a component within a Flex Application. Am I crazy?

Flex can display HTML, and SWF, it can also call JavaScript - but can I incorporate an applet somehow?

I do NOT mean kludging it in as a sister component within a browser, but actually within the flex application itself, so开发者_开发技巧 that it could also run under Adobe Air, for instance.


No, Flash doesn't have a JVM. You would need to convert your Java to ActionScript somehow.


Running a Flex application inside a Java program is possible, not the opposite.
It might be possible to compile a Java Virtual Machine (if it's written in C) using Alchemy... but I don't think you want to go there, converting your code would be easier and cleaner ;)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号