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

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

问题描述

我正在开发 Flex 应用程序,我需要从 Flex 打开一个 Java Applet(例如,单击一个按钮).我特别想打开 imageJ,这是一个特殊的成像程序,可以作为应用程序、小程序工作或集成到网页中.有没有办法从 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 小程序(可以像 document.write("<object ...>")) 一样简单,然后使用 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天全站免登陆