This content has been marked as final. Show 5 replies
cheers for the article,
The application I use goes from Java to Flex not Flex to Java though like this document shows.
It makes a pretty nice application in the end too
Thanks for the response.
Is this article using the flex ajax bridge? I thought the bridge was for java script and not java applets.
Is there a way to use the flex ajax bridge to call a java applet?
Is the example is the java script calling the java applet from the html file?
Dose anyone know where else i can read about whats going on in the example im still having trouble getting it to work?
The example seems to call the java applet straight from flex.
ExternalInterface.call( "document.helloWorldApplet.sayHelloWorld()", null );
this flex call runs the function sayHelloWorld() in the Java applet with the id "helloWorldApplet".
So on your page you should have a flex applet, and a java applet with the id "helloWorldApplet", when you click on the flex button a button should appear in the helloWorldApplet.
If you need more help post your code here, or more information and i'll try help
Thanks for the help. I can get the first example working.
For the second example I think something is wrong with the applet tag.
This is the applet tag Im using for the second example:
<APPLET id="launcherApplet" archive="Launcher.jar" code="Launcher.class" align="baseline" width="200" height="200">
The applet loads but the externalInterface call does nothing...
my Launcher.jar file is in the same directory as the html file.
I tried that example, and it never connected to the applet (so far couldn't make SWF and Applet coexist
on the same HTML page, mostly generated by FB3),
to another directory - no errors, just stopped working. Why?
Is that because it needs some SWC to use ExternalInterface ?
Also, is that possible to connect to the applet via Remoting ?
Not sure if that is a concern, since SWF and applet reside on the same page.