Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Embed Java Applet?

    Can you embed a java applet in Flex?
    headjoog2 Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. java applet in director
      can I insert a java applet inside a director movie?
    5. 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...
  3. #2

    Default Re: Embed Java Applet?

    headjoog2 wrote:
    > Can you embed a java applet in Flex?
    Yes. Place it into an IFrame.

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

  4. #3

    Default Re: Embed Java Applet?

    sweet!
    headjoog2 Guest

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139