HTML Files in Flash

I have created a document in HTML as I need my Flash
Presentation to link to other sites with hyperlinks. I have never
actually used HTML with Flash before so I am uncertain on what I
should do,
do I have to link the HTML document to my text field in some
way
do I just put the code into the text field
do i have to call it with some sort of action script????
Any help will be greatly appreciated.

What do you mean you want to implement JS onHoverOver? How
are you using that in Flash? And what do you mean by importing an
HTML file? Flash can understand some HTML but you can't import an
entire file (not in AS2 anyway).

Similar Messages

  • Help Editing code from a published html file with flash detection enabled from flash

    hi guys ive publish a html file with flash detection enabled from flash
    heres the code from the publish html:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>main</title>
    <script language="javascript"> AC_FL_RunContent = 0; </script>
    <script language="javascript"> DetectFlashVer = 0; </script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 45;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
         alert("This page requires AC_RunActiveContent.js.");
    } else {
         var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
         if(hasRightVersion) {  // if we've detected an acceptable version
              // embed the flash movie
              AC_FL_RunContent(
                   'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
                   'width', '800',
                   'height', '600',
                   'src', 'main',
                   'quality', 'high',
                   'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                   'align', 'middle',
                   'play', 'true',
                   'loop', 'true',
                   'scale', 'showall',
                   'wmode', 'window',
                   'devicefont', 'false',
                   'id', 'main',
                   'bgcolor', '#ffffff',
                   'name', 'main',
                   'menu', 'true',
                   'allowScriptAccess','sameDomain',
                   'allowFullScreen','false',
                   'movie', 'main',
                   'salign', ''
                   ); //end AC code
         } else {  // flash is too old or we can't detect the plugin
              var alternateContent = 'Alternate HTML content should be placed here.'
                   + 'This content requires the Adobe Flash Player.'
                   + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
              document.write(alternateContent);  // insert non-flash content
    // -->
    </script>
    <noscript>
         // Provide alternate content for browsers that do not support scripting
         // or for those that have scripting disabled.
           Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
           <a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
    </noscript>
    </body>
    </html>
    now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th valign="middle" scope="col"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th height="600" bgcolor="#333333" scope="col"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','height','600','src','main','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
              <param name="movie" value="main.swf">
              <param name="quality" value="high">
              <embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
            </object></noscript></th>
          </tr>
        </table></th>
      </tr>
      <tr>
        <td height="30" bgcolor="#990000"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <th scope="col"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th scope="col"><div align="left" class="style1">Copyright 2009 St. Paul of the Cross Parish. All Rights reserved.</div></th>
                <th width="400" scope="col"><div align="right" class="style1">Usage outside our permissions guidelines requires our prior written consent.</div></th>
              </tr>
            </table></th>
          </tr>
        </table></td>
      </tr>
    </table>
    Tnx in advance!

    Hi
    Can you tell me which version of dreamweaver you are using (and flash pro, if you have it), as the code you provided has element of a number of different versions (e.g. your js flash files are reasonably new, but your flash inserted into the html body is old, but with the cs3 version of flash player indicated!). Also the detect flash file is no longer required.
    PZ

  • How to insert a HTML file in Flash

    hi,
    When a new flash page is opened, i want to see a HTML file
    is inserted and shown in the flash page directly. I know it's not
    easy. The URL of the HTML is known.
    For example, i want to see the "
    http://www.adobe.com/" displaying
    in a small window in flash page.
    I'm new to Flash. So anyone can explain to me or give me any
    hints.I'll appreciate that.Thx.
    D.L

    Hi
    I give you a code but first you need create a dynamic text
    box to render the html inside soo create a dynamic text box and
    give a instance name, before put this simple code in the frame.
    function carregar()
    var texto = new XML();
    texto.onData = function (html_no_flash)
    texto_html.html = true;
    texto_html.htmlText = html_no_flash;
    texto.load("not.php");
    } // End of the function
    stop ();
    System.useCodepage = true;
    carregar();
    note: attention in the dynamic box instance name i put
    (texto_html).
    good luck

  • I can't open a HTML file with flash linked

    I have Flash CS3.  I have created a flash file.  If I click on the SWF file I have no problems opening it.  It plays.  It looks nice.  I'm the man.
    However, now when I try to publish it, the HTML file will not work.  It says "windows cannot find this file, please ensure you have typed the location correctly".
    I am double clicking directly on the file and not typing anything, in fact I was considering checking on Ebay to see if I could upgrade my PC to have eyes.
    The feature has worked previously, which leads me to the conclusion that something else has changed.  I have tried using the publish setting, I have also tried using Dreamweaver to embed the file, and have also tried manually inserting the necessary code after seeing some on a website.
    All of these things produce the same result, windows cannot (or will not) find the necessary file.
    It's an odd one, and very frustrating, can anyone help me at all?
    Cheers in advance,
    Eoin

    Nope this doesn't work.  I wasn't using the default names previously but I can't see that it should make a difference, although Flash can be quirky.
    I tried putting them in a new location to no avail.
    Attached is a screenshot of the error message.

  • Help with an HTML file in Flash.

    Hi there.
    I'm attempting to import an html file into my flash document
    into a textfield on a movie clip. The text works fine, as does the
    css I have attached, but the <a> tag will not work. I've
    attached my Actionscript and HTML files in the hopes that someone
    will be able to give me a hand! Thanks in advance.
    ~Vanessa
    Hi, here is my ActionScript code:
    function addArticle(sLinkage:String):Void{
    if(oOpenedArticle[sLinkage]!=undefined) {
    oOpenedArticle[sLinkage].swapDepths(nTopDepth);
    return;
    function loadArticle():Void {
    var nWidth:Number = mcDisplayBackground2._width;
    var nHeight:Number = mcDisplayBackground2._height;
    var nX:Number = mcDisplayBackground2._x;
    var nY:Number = mcDisplayBackground2._y;
    this.createTextField("tArticle", this.getNextHighestDepth(),
    nX, nY, nWidth, nHeight);
    tArticle.multiline = true;
    tArticle.wordWrap = true;
    tArticle.textColor = 0x000000;
    tArticle.html = true;
    tArticle.condenseWhite = true;
    function loadData():Void {
    var lvArticleContent:LoadVars = new LoadVars();
    lvArticleContent.onData = function(sHTMLData:String):Void {
    tArticle.htmlText = sHTMLData;
    var cssStyles:TextField.StyleSheet = new
    TextField.StyleSheet();
    cssStyles.onLoad = function():Void {
    tArticle.styleSheet = this;
    lvArticleContent.load("about.html");
    cssStyles.load("aof.css");
    var nTopDepth:Number;
    var oOpenedArticle:Object = new Object();
    mcAboutButton.onRelease = function():Void {
    loadData();
    gotoAndPlay(20);
    loadArticle();
    And my HTML:
    <html>
    <head>
    <link href="aof.css" rel="stylesheet" type="text/css">
    </head>
    <body bgcolor="#666666">
    <p class="bodystyle" align="top" valign="top">
    <font color="#000000" face="Verdana, Arial, Helvetica,
    sans-serif">
    <br />
    <center>
    <h2>CONSULTATIONS</h2>
    <font color="#000000" size="-1">
    Click <a href="tutorials.html">here</a> for a
    tutorial.
    </p>
    </body>
    </html>

    Hi
    OK, your path has to be fully qualified, tutorials.html
    doesn't work but
    http://mysite/tutorials.html
    should.
    When you think about it the swf doesn't know where it is, so
    calling tutorials.html has no starting reference.
    Placing a fully qualified path enables your link to find its
    target, irrespective of where the swf is.
    Although this is not true when called across domains, thats a
    whole new game.
    Hope it helps

  • Published a swf or html file from Flash (on Mac) that contains flv video can only play on Mac?

    I created a flash file that contains a flv file inside. After I published it on my Mac in both html and swf format and it played well. But when I copied all this folder include the swf, html and the source flv to test on a pc it played well but the video part (flv) was blank. So I copied the .fla file to pc and published again, then it works fine (including the flv video part) on both pc and Mac. All the settings were same while publishing.
    So I wonder what's wrong with publish from Mac side? I work with Mac and so it's very inconvenient to publish my work on PC.

    Hi kglad,
    Here's the link: http://ben-wang-van.bugs3.com/test.html
    This is the simple test. As you can see the video part (after the text) is empty and the flv file is actually the same location.
    From last experience, if I pubulish this video from PC and upload them and then will play fine.
    Any idea?
    Thanks a lot!!!

  • Open my html file and cannot edit it

    When I open my html file from Flash, in view design all I get is a grey box with the Flash symbol in the middle and no html tools.
    I want to link some of my buttons but if I go into view live I get html tools but I still can't access them to make links.
    How do I get my html page so that I can make my links?
    Forrest

    Your next button can still do that.  But it has to be programmed within Flash.  Flash files are not natively handled by Dreamweaver.  You have to export them in order to place them on a website within Dreamweaver.
    The only way that Dreamweaver can do this for you is if you create a button in Dreamweaver which does this action for you outside of the Flash area.  Then this button can link to another page or Flash file.  But if the button resides within the Flash file then it must be edited with Flash.

  • Html files play in main stage of flash

    How can macromedia flash play html files?
    I have a problem my friends! First of all I should say that I
    know flash is not a browser!!! I have lots of internal and external
    html files next to my main swf movie and I made lots of botton for
    each html files and a window next to the bottons on the left side
    of my stage now the question is: how can I tell macromedia flash by
    pressing each botton its especial html file play in the left
    window?(and not anywhere else) I tried "get url" but html files now
    are playing in a browser and not in my window!!
    Maybe I made the window in the wrong way so how can I create
    this window for html files?
    I am not a professional user of macromedia flash –
    thank you for your coaporation
    In the following path you can find an example this is where I
    installed my flash
    C:\Program Files\Macromedia\Flash 8\Samples and
    Tutorials\Samples\Text\ TextEnhancements
    Here is a link that maybe show my question better
    Its just 120 kb
    http://scorpionsofhack.googlepages.com/html.zip

    Set the sample rate higher in MainStage and you'll get lower latency.

  • Browser has suddenly stopped loading html files which contain flash content (LANGUAGE="JavaScript1.2)

    Having created interactive material which opens as shockwave flash in my browser Firefox has stopped opening such files it just opens with the circle as if its opening the file but the file never opens. These files opened previously without a hitch and open in IE. If I browse and open the shockwave flash object quiz.swf it will open but it will not open the quiz,html file.
    I'm using Firefox 3.6.13 and adobe flash 10

    There is no Flash player version 15... as in your code:
    <param name="swfversion" value="15.0.0.0" />
    For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
    If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
    Best wishes,
    Adninjastrator

  • Can an external html file be loaded into and displayed in Flash?

    I currently pull an html file into our site via iframe.  (due to various factors, I cannot host the information in the html on our site and need to host it elsewhere).  Is it possible to use a loader or other method to pull this information into flash?

    Thanks.  I didn't think so, but needed confirmation from someone much smarter than me.

  • Flash Player Security error when publishing HTML files

    I am new to the Captivate world and am just in love with the
    features - but I have been having a very difficult time publishing
    my "movies". I have 8 files that are all called upon in one movie
    (like a table of contents). I have abandon the though of publishing
    each as an EXE file - and have decided to go the HTML route.
    However when I try to run the published HTML file I get an Adobe
    Flash Player Security error - saying "Adobe Flash Player has
    stopped a potentially unsafe operation." It then says that the
    local SWF file is trying to communicate with the Internet-enabled
    HTM file.
    Can someone please tell me what this means? We are using
    Captivate for distance learning as well as internal - so I can't
    know for sure what the end-users will be using when the files are
    used.
    Any assistance would be greatly appreciated.

    Welcome to our community, Rachel
    Where are you running your movie from? If you are planning on
    running them from a server, there should be no need to worry about
    your end user seeing those messages. However, if you are planning
    on each user copying them to their own hard drive or if you are
    running from a CD-ROM, you may need to perform some trickery to
    make them work without issue.
    The message is occurring because there are links in some of
    the files that point to internet resources and the Flash player is
    seeing that as a potential security risk. So it is blocking the
    action until you pat it on the head and assure it the world will
    not, in fact, end if it shows you the content.
    If you wish to banish the screen on your PC, take a look at
    the tutorial linked below.
    Click
    here to view a tutorial
    I'll hold off on the other bit until I'm certain what we are
    dealing with.
    Cheers... Rick

  • Flash CC does not publish swf and html files

    I'm having issues with Flash CC. When I go to publish my movie the status bar appeaers then quickly disappears and the html and swf files are not created. I'm also not able to export the movie as a quicktime or AVI file. Is there specific settings I must have to publish and export? Note: I am working with AS3 and tried to do a simpple test with a box moving left to right and I have the same problem.
    Any help is appreciated. Thanks!

    Are you sure the HTML and SWF are not currently in use? For example if you publish and preview it in a browser, it can lock those files because they're "in use". Then Flash cannot overwrite them. You'd need to close the browser or any Flash Players displaying them. If that still won't overwrite, delete the files and see if they're re-created.
    If no files are being created at all, gointo publish settings and set a path to export the SWF and HTML file to, don't leaving it at the default (same folder as FLA). Try various places in fact to test permissions.
    If you're on Windows you could try running Flash CC as Administrator to also get around any file writing permission issues. Right-click on the Flash icon and select Run as Administrator.
    I've only really encountered this when my SWF/HTML was in use or stuck in a process.

  • Flash navigation and html files

    I have a Flash navigation banner. The navigation banner
    contains seven buttons. Each button when clicked goes to different
    frames in the Flash movie. So, the first interaction is to make the
    movie to go to a particular frame, which I was able to do easily.
    On those frames, I also would like to load or link to HTML page.
    Like frame 10 will be page1.htm, frame 18 will be page2.htm so on
    and so forth. How do I link .htm files and the single navigation
    bar where each button would go to a specific frame and play the
    frame? I don’t want to use frames in my html docs. Is there
    any other solution? Please help!!
    Thank you in advance.
    FA

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • Links in Flash and HTML files

    Hi,
    I hope someone can help me - it is probably a simple thing,
    but have searched the help files etc.
    I have a flash document with 3 buttons, each with links. When
    I publish the file, the links in the SWF file work fine, but those
    in the HTML file don't (all other actions are OK).
    I doubt this important, but I have Flash CS3 on an offline
    computer.
    Please help!!
    Mark.

    This is the html code - it is just copied from the file which
    is published in CS3.
    Thanks.
    <noscript>
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    width="775" height="160" id="TPmenu" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="TPmenu.swf" /><param
    name="loop" value="false" /><param name="quality"
    value="best" /><param name="bgcolor" value="#003366" />
    <embed src="TPmenu.swf" loop="false" quality="best"
    bgcolor="#003366" width="775" height="160" name="TPmenu"
    align="middle" allowScriptAccess="sameDomain"
    allowFullScreen="false" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>
    </noscript>

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

Maybe you are looking for