Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
-
Embed applet in Flash, possible?
Hi All I have a quite weird question here maybe, but if that's possible to embed a java applet into Flash? Anyone can give me a hint? Thanks a... -
loading java applet failed
Hello, I have a big problem since I have to do a prestation tomorrow and I can't get things working because I'm a site devolper and there is no... -
authentication Problem with asp.net and java-applet
We are having an Intranet based on IIS 5.0 where I need Integrated Windows authentication: My Problem: I have 2 Possibilities: 1) "Windows... -
java applet in director
can I insert a java applet inside a director movie? -
start java applet in flash
I have a java applet that runs from my web browser - I want to know if I can start the applet directly in flash, without calling the browser... -
Dave Wolf #2
Re: Embed Java Applet?
headjoog2 wrote:
Yes. Place it into an IFrame.> Can you embed a java applet in Flex?
--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
[url]http://www.cynergysystems.com[/url]
Email: [email]dave.wolf@cynergysystems.com[/email]
Office: 866-CYNERGY x85
Dave Wolf Guest
-
-
dejaView #4
Re: Embed Java Applet?
Dave Wolf: can you elaborate on your answer a bit? headjoog2: were you able to
implement an IFrame solution? I hate to admit I'm a noob and I can't find
IFrame in the Flex MXML documentation. I have searched the web and found an
example that creates a custom IFrame by extending Canvas, but that example
didn't seem sufficient. I have a Java applet that uploads files to a server and
would like to embed it in a Flex application so it is visible. There will be
some drop down fields next to it and I will need to pass the selected values to
the applet prior to upload. Whether or not I develop this in Flex hinges on
this capability. Any help is appreciated.
dejaView Guest
-
ntsiii #5
Re: Embed Java Applet?
Remember that a Flex app is just a flash player object embedded in an HTML
page. The Flex server generates this html page on the fly when you request an
mxml file.
You can create your own html wrapper that can contain anything HTML can.
The IFrame is not part of Flex, but part of the html wrapper. Your applet can
share the visible area with the Flex app if you want. One benefit of an IFrame
is that it is easily hidden or positioned, but you do not have to use one.
So don't think of embedding the applet in Flex, think embedding both flex and
the applet in the HTML page.
Flex can communicate with the HTML page using getURL("javascript: myFunction")
The HTML hosted javascript can communicate with the Flex app using
setVariable(). The variable in Flex that you set can be a setter function, so
you can invoke the Flex app's functionality at will from the client javascript.
Tracy
ntsiii Guest
-
dejaView #6
Re: Embed Java Applet?
Thanks Tracy. I guess the answer to the original post should have been "No, you can't embed a java applet in Flex. However, you can place it in an HTML IFrame." That clears up a lot.
dejaView Guest



Reply With Quote

