从调用Flex中的Java Applet [英] Call a Java Applet from Flex

查看:185
本文介绍了从调用Flex中的Java Applet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的Flex应用程序,我需要从Flex的打开Java小程序(例如单击一个按钮)。我特别想开ImageJ的,特定的成像程序,可以工作的应用程序,applet或集成在一个网页。有没有办法从Flex的称呼呢?我见过一对夫妇解释如何调用一个函数从Flex的另一个Java文件的教程,但我不那么肯定,这就是我要找的。
谢谢您的回答,
欢呼声中,

I'm working on Flex application and I need to open a Java Applet from Flex (e.g. clicking a button). In particular I'd like to open imageJ, a particular imaging program that could work as application, applet or be integrated in a web page. Is there a way to call it from Flex? I've seen a couple of tutorials that explain how to call a single function in another Java file from Flex, but I'm not so sure that it is what I'm looking for. Thanks for your answers, cheers,

大卫

推荐答案

我不知道是否有更好的办法,但如果我这样做,我会写一个JavaScript函数,将加载Java小程序(可能作为文件撰写简单(<对象...>中)),然后使用Flex的的 ExternalInterface的来调用JavaScript的。

I don't know if there's a better way, but if I was doing it, I'd write a JavaScript function that would load the Java applet (could be as simple as document.write("<object …>")), then use Flex's ExternalInterface to call that JavaScript.

这篇关于从调用Flex中的Java Applet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆