tags:

views:

75

answers:

2

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.

+1  A: 

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

stevedbrown
Or your Java bytecode to AVM bytecode :-)
Joey
Johannes, that just makes me sad.
stevedbrown
A: 

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 ;)

Zed-K