Trying to call MM_showHideLayers on container HTML page from Flash

I'm designing a site that is mostly in Flash, but I would
like to show some content by changing the visibility of a layer on
the HTML page that contains the swf file. I have tried
on (press)
on (press)
and I have tried
on (press)
My HTML page code is below. Can anyone tell me what I am
doing wrong and point me in the right direction? Can this be done?
Is there a better way to display large amounts of highly formatted,
dynamic content from within Flash without loading a new page or
resorting to a pop-up window? I really want it to look and feel
like it is all part of the same page, and I need more tags than I
can use in a Flash textbox. Thanks in advance :-)
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
<script type="text/javascript"
<script language="JavaScript" type="text/JavaScript">
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if
))!=null) { v=args[i+2];
if ( {;
v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
<style type="text/css">
#testerbox {
left: 69px;
top: 42px;
background-color: #FFFFFF;
visibility: hidden;
<body bgcolor="#FFFFFF">
<table width="316" height="180" align="left"
cellpadding="0" cellspacing="0">
<div id="testerbox">My test</div>
<div id="flashcontent" align="center">
You must have Flash Player to use this feature.<br>
<a href=""
here</a> to download or upgrade your Flash Player
<script type="text/javascript">
// <![CDATA[
var so = new
// ]]>

Hi, did you get a solution to this problem, i am having a similar issue with the MM_showhidelayers not working in IE6, it works fine in IE8?
the code im using on a flash button is:
on (press) {
import flash.external.ExternalInterface;"MM_showHideLayers('menu','','show','menu_back','','show' )");

Similar Messages

  • Problem open new html page from flash

    in IE7 and IE8 block popup lock my external link(page html)
    I use GetUrl(url,"_blank") but not it works
    i use flash cs4
    With firefox it work

    thank you for response,
    i have used correct command but not it works.
    It Works, in my popup setting are setting "CUSTOM" not MEDIUM
    thank you

  • Implementing osmf HTMLMediaContainer into HTML page from Flash Proffessional

    Integrating communication between osmf and javascript via HTMLMediaContainer using Flash Proffessional
    Quite new to this
    Hello may someone please explain how this is done exactly, Not quite understanting the samples and examples, I get the  onHTMLMediaContainerConstructed function but after that, Im quite lost on the javascript inside the HTML body tags!! is this body tag javascript needed if im using flash professional...please help
    Thanks evryone

    Hi GeekTumiso,
    i'm searching for documentation too ... i want to understand if i can load external html element to make an html player skin, but there is not documentation or good example :-(
    any suggestions?

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How to call java program by HTML page

    Hi guys,
    I'm new java programer and want to build an HTML page to access to ORACLE database on NT server by JDBC, Can anyone give me a sample?
    I already know how to access database by JDBC, but I don't know how to call java program by HTML page.
    If you have small sample,pls send to me. [email protected], thanks in advance

    This code goes with the tutorial from this web page
    good luck.
    * This is a demonstration JDBC applet.
    * It displays some simple standard output from the Coffee database.
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.util.Vector;
    import java.sql.*;
    public class OutputApplet extends Applet implements Runnable {
    private Thread worker;
    private Vector queryResults;
    private String message = "Initializing";
    public synchronized void start() {
         // Every time "start" is called we create a worker thread to
         // re-evaluate the database query.
         if (worker == null) {     
         message = "Connecting to database";
    worker = new Thread(this);
    * The "run" method is called from the worker thread. Notice that
    * because this method is doing potentially slow databases accesses
    * we avoid making it a synchronized method.
    public void run() {
         String url = "jdbc:mySubprotocol:myDataSource";
         String query = "select COF_NAME, PRICE from COFFEES";
         try {
         } catch(Exception ex) {
         setError("Can't find Database driver class: " + ex);
         try {
         Vector results = new Vector();
         Connection con = DriverManager.getConnection(url,
                                  "myLogin", "myPassword");
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery(query);
         while ( {
              String s = rs.getString("COF_NAME");
              float f = rs.getFloat("PRICE");
              String text = s + " " + f;
         } catch(SQLException ex) {
         setError("SQLException: " + ex);
    * The "paint" method is called by AWT when it wants us to
    * display our current state on the screen.
    public synchronized void paint(Graphics g) {
         // If there are no results available, display the current message.
         if (queryResults == null) {
         g.drawString(message, 5, 50);
         // Display the results.
         g.drawString("Prices of coffee per pound: ", 5, 10);
         int y = 30;
         java.util.Enumeration enum = queryResults.elements();
         while (enum.hasMoreElements()) {
         String text = (String)enum.nextElement();
         g.drawString(text, 5, y);
         y = y + 15;
    * This private method is used to record an error message for
    * later display.
    private synchronized void setError(String mess) {
         queryResults = null;     
         message = mess;     
         worker = null;
         // And ask AWT to repaint this applet.
    * This private method is used to record the results of a query, for
    * later display.
    private synchronized void setResults(Vector results) {
         queryResults = results;
         worker = null;
         // And ask AWT to repaint this applet.

  • How to call an HTML page from a JSP

    I am getting problem in calling an html page from a jsp
    The Sample code is
    int rowsAffected = stm.executeQuery("Select * From Table");
    if (rowsAffected == 1)
    {   %>
    <jsp:forward page="xyz.html" />

    See the other forum where you asked the same question
    Please refrain from cross posting.

  • How to extract HTML page from the internet

    i am new to java, i wish to know how to extract Html page from the internet and also how to identify the differences between the images and text information?

    You can create a that points to the file you want to "extract" and read the HTML code (or what ever that file contains) from there using the inputstream given by URL.openStream().
    The difference between images and text... well, images are embedded in html using the img-tag. example: <IMG src="" alt="Reply">. Attributes width, height, alt are sometimes left out and there may or may not be quotes around the values and everything is case insensitive... you'll be having hard time trying to parse the input so I'd suggest using existing parsers.
    What are you trying to do anyway? You can load a URL directly to a JTextEditorPane with the setPage(URL page) method...

  • Can I display html pages in flash player

    Hi all,
    Can I display html pages in flash player, i mean swf. Plz
    help me if it can be done. Can I call html pages in flash (i mean
    in flash player no new window)

    Actullay i want the site to be opened with in the flash
    player, just like iframe in dreamweaver calling the external site
    in the mail html page. Plz Help me accessing external site page
    with in flash player

  • External html page into flash

    how to load external html page into flash? (AS3)

    You cannot load an html page into Flash, though you can try to load the html code that it contains into a textfield.  Flash supports only a very limited number of html tags, so it is highly likely you won't get what you are after if you are reading an html file that hasn't been edited for Flash specifically.  Just look up the TextField.htmlText property in the AS3 help documents and it lists the html tags that are supported. 
    For AS3 you need to look into the URLLoader class as far as loadng an extrernal text file goes.

  • Exclude HTML page from Webcache with ESI

    I would like to exclude a html page from cache using ESI.
    Somebody can show me the tags that I need to use?
    Thanks in advanced.

    It is possible to dynamically exclude pages from caching through Surrogate-Control . I couldn't get what you are trying to achieve by using ESI...

  • Loading Image from HTML page into Flash component

    Ok, after doing much research on the internet, I am pretty
    sure you have to be a Flash and Actionscripting Jedi in order to
    solve this issue. Here we go:
    I have created an HTML page using PHP and MySql that displays
    image thumbnails. When a user chooses and clicks on one of the
    thumbnails, I want the larger image to be loaded into my swf. It is
    a jigsaw puzzle component I picked up here: Here
    is the puzzle on my page with an image manually inserted using
    Flash 8 (Note: This is only working in Internet Explorer right now,
    for whatever reason):
    I want the image on this page to be chosen by the user from a
    number of images that are populated on a regular PHP/HTML page from
    a MySql database. What is the best way to go about this?
    Thanks so much for the help on this matter. I know I am not
    the only person who has run into this dilemma, so I hope your
    knowledge will save others with a similar problem the hours I have
    spent on this issue myself. Thank you!

    There's no direct support for this. But you could implement
    drag and drop the way you normally would in javascript. Except
    here, on mouseUp over a div encapsulating the object or embed tag
    (the flash object), you'll need to make a call into actionscript
    from javascript indicating that a drag and drop happened.
    For more info, see
    to drag and drop using javascript and
    and javascript communication

  • How to Call HTML Layers from Flash?

    how to Call HTML Layers from Flash? i need a help on example
    or script.

    What do you mean html layers? You can call JavaScript on the
    page using the
    ExternalInterface class. There's examples in Help if you look
    up the EI
    class, and it's call method.
    Dave -
    Head Developer
    Adobe Community Expert

  • Open HTML page from the stage

    How can I open a HTML page by pressing a button on the stage?
    I've created a rollover button and I'm trying to make it open
    an existing html page from the local disk (not an internet URL).
    But I can't make it open with Lingo or behaviour.
    Please help.
    Thanks a lot.

    goToNetPage "
    http://somewhere.html" is the
    typical form for a page on
    the web, director must use the address format the system's
    browser uses
    for local files, this is somewhat platform dependant, a
    aproach is to open the file in question from within your
    browser then
    copy and paste the displayed address into your lingo code.
    Some report the goToNetPage counterpart provided by the
    buddyAPI xtra
    works more reliably, the xtra can be used for free if limited
    to a
    couple of functions.
    An alternate approach buddyAPI can use is to have the browser
    access the html file as if it were double clicked in the file
    using the same form commonly used to open PDF files with
    (sorry I don't have example code handy)

  • Report HTML page from XSL

    Hi All,
    I need help with generation HTML page from
    such XML by using XSL transformation.
    XML is generated from db table.
    <ITEM level=0 name="Page row 1" type="PR"/>
    <ITEM level=1 name="Page row 2" type="PR"/>
    <ITEM level=2 name="Table 1" type="T">
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
              <Name>Caption 3</Name>
              <Name>Caption 4</Name>
    <ITEM level=3 name="Table row 1" type="TR">
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
              <Value>Row 1 value 3</Value>
              <Value>Row 1 value 4</Value>
    <ITEM level=3 name="Table row 2" type="TR">
              <Value>Row 2 value 1</Value>
              <Value>Row 2 value 2</Value>
              <Value>Row 2 value 3</Value>
              <Value>Row 2 value 4</Value>
    <ITEM level=3 name="Table row 3" type="TR">
              <Value>Row 3 value 1</Value>
              <Value>Row 3 value 2</Value>
              <Value>Row 3 value 3</Value>
              <Value>Row 3 value 4</Value>
    <ITEM level=0 name="Page row 3" type="PR"/>
    <ITEM level=1 name="Table 2" type="T">
              <Name>Caption 1</Name>
              <Name>Caption 2</Name>
    <ITEM level=2 name="Table row 4" type="TR">
              <Value>Row 1 value 1</Value>
              <Value>Row 1 value 2</Value>
    HTML should looks like:
    Page row 1
         Page row 2
              |Caption 1 |Caption 2 |Caption 3 |Caption 4 |
              | Row 1 value 1|Row 1 value 1|Row 1 value 1|Row 1 value 1|               
              | Row 2 value 1|Row 2 value 1|Row 2 value 1|Row 2 value 1|                         
              | Row 3 value 1|Row 3 value 1|Row 3 value 1|Row 3 value 1|               
              | Row 4 value 1|Row 4 value 1|Row 4 value 1|Row 4 value 1|               
    Page row 3
         |Caption 1 |Caption 2 |
         | Row 1 value 1|Row 1 value 1|
         | Row 2 value 1|Row 2 value 1|
    There can be many levels but always table item is leaf,
    Thanks in advance,
    Regards Peter

    You are probably better posting in the flash forum, as without seeing the code, (and if it is not standard flash html publish) they can probably better advise on a solution.

  • Referencing static html pages from jsps...

              This is probably a very simple thing to solve, but I'm having problems with referencing
              html pages from jsps under Weblogic.
              I get Error 404 - not found, whenever I try something like this in a JSP...
              <frame name="title" src="title.html" scrolling=no>
              The title.html file has definitely been copied into my ear file, and yet it isn't
              found. I can solve the problem by turning title.html into a jsp and registering
              it in web.xml. But this seems like serious overkill with static content!!
              Am I missing something really simple here?

              I've worked it out - directory mistake...
              "Matt Krevs" <[email protected]> wrote:
              >it sounds like a relative pathing problem
              >is title.html reachable if you enter its address in the browser?
              >is title.html in the same directory as your jsp?
              >perhaps you could post your web.xml file?
              >"Chris Sceats" <[email protected]> wrote in message
              >news:3d9c41b5$[email protected]..
              >> Hi,
              >> This is probably a very simple thing to solve, but I'm having problems
              >with referencing
              >> html pages from jsps under Weblogic.
              >> I get Error 404 - not found, whenever I try something like this in
              >> <frame name="title" src="title.html" scrolling=no>
              >> The title.html file has definitely been copied into my ear file, and
              >it isn't
              >> found. I can solve the problem by turning title.html into a jsp and
              >> it in web.xml. But this seems like serious overkill with static content!!
              >> Am I missing something really simple here?

Maybe you are looking for

  • RADIUS Server Won't Start

    After running Software Update and installing the Security Update 2008-005 and iTunes 7.7.1 on the server, I noticed none of my wireless clients would authenticate. I checked Server admin and the Radius server was not running. Upon trying to start the

  • Higher Quality screen recording

    Hey, I need to make a screen recording. I already have the soundflower trick for computer audio and that helped a bunch, but what I really want to know, is how can I record with QT and get up to 720p quality? things I have already tried: -Basically e

  • An error occurred while publishing file "/Web/Sites". Try publishing again

    Any ideas - I have been getting this since the move to ME. Systems logs on to then immediately comes up with this error - An error occurred while publishing file "/Web/Sites". Try publishing again later.

  • Help! Pls! Product Code Countries

    Hi Everyone, I asked once but I couldn't get any help, perhaps my phrasing was unclear and too complicated. The N86 (RM-484), Product Code: 0580867 (Europe Mea seap), corresponds to which country?Are English, French and Italian natively preinstalled

  • I need your help plz

    Hi every one I have one form depend on table for client details (code , name ,tel,address , ,,,,,) I need to when try to entering (name or code ) for one client system must check if this name Already exists then do query to get other data for this cl