A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Interpreting Java or HTML in a Text Box

  1. #1
    Is there anyway to have a dynamic text box display HTML or Java if and when it passes through the dynamic text box. If not could someone please tell me how to write a actionscript that would look everytime information passes through and if it contains HTML or Java open a new pop-up HTML window to interpret it.

    I would prefer to be able to display HTML and Java in my text box if its possible. Any help or ideas would be greatly appreciated.

    Thank You

    MikeMadMan

  2. #2
    Monkey Wrangler monsterfx's Avatar
    Join Date
    Nov 2000
    Location
    Lawrence, KS - USA
    Posts
    347
    Check out this tutorial from macromedia:

    Using HTML text formatting in Flash 5
    http://www.macromedia.com/support/fl...s/htmltext.htm

    -monster.

  3. #3

    What about Java

    Okay now what about Java, I understand I will probably not be able to show it in the textbox but how can I write a actionscript to watch for java commands and when one comes open a pop-up window?

    Also kind of on a side note. Sometimes I will want commands for flash to pass through the text box. For example I may want a command to go to a certian frame when it comes through the dynamic text box, how would I do that.

    example of the the code coming through to the text box.

    "Oh you want to go to my Gallery" <Flash="Gallery Section">

    I would like actionscript to look at the code between the brackets and go okay Gallery section=frame 2.

    this is a real rough example.

    Thanks
    MikeMadMan

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Don't think you could automically spot javascripts other than by deciphering the text file variable yourself and opening your popups or whatever you want to do if you can spot all the pertinent scripts. IMHO, a tedious task!

    As for moving the main movie, loading other movies, setting variables, etc..., it can be done through the use of the a href tag where you would stick in a javascript function defined in the html holding the Flash movie, which in turn would point to a Flash method as described here:

    http://www.macromedia.com/support/fl...hflash_03.html

    There may something easier to be done if using Flash MX with this, but I haven't checked it out:

    http://www.macromedia.com/support/fl...connection.htm

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center