Using a .swf as an HTML layer in DW CS3

Hello,
I am using a .swf file as a background for my site and I can get the thing to work in Firefox and Safari on the Mac, but not in IE or Opera.  It will play the .swf but in layers in on top of the content, not underneath.  What is so different about how IE and Opera view the page that Firefox and Safari do not have.  Please give a look at this link: http://www.allwickedthings.com/WT_index_test_1.html and let me know what you think.  The .css files are posted on the root directory, just check the code to find the file names.  I'm going to continue to experiment on the code and see if I can come up with something.  Also this site displays in a different way on Netscape, it just leaves the movie out altogether.
Thanks,
Brett

First, run your page code through the on-line validation tools below and fix the reported errors.
HTML Validator - http://validator.w3.org
CSS Validator - http://jigsaw.w3.org/css-validator/
FREE HTML & CSS Tutorials  - http://w3schools.com/
You need a document type on your first line of HTML code.  On DW menu hit FILE > Convert and select HTML 4.01 Transitional as your doc type.  Without a doc type declaration, your pages will have undrepdictable cross browser results.
I've never needed to use an SWF as page background, so can't be much help.  Maybe this thread from another forum will shed some light.
http://www.kirupa.com/forum/showthread.php?t=277976
Good luck,
Nancy O.
Alt-Web Design & Publishing
Web | Graphics |  Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb

Similar Messages

  • When I reload an HTM page using a SWF file like a   menu, the HTML page doesn't shows the SWF again!

    Dear Sirs,
    I hope to be directing my question into the correct forum's place.
    I'm new in flash and I'm trying to make some tests
    My problem is the following:
    I included one SWF file into 3 HTM pages.
    This SWF works as a little menu.
    The SWF file (named "menu.swf") contains 3 items working as command buttons to access the three different HTM pages
    Each HTM page contains the same "menu.SWF" file, some HTML text and one picture.
    The swf contains:
    Button 1 -> calls page1.htm using:
                on (press) {
                getURL("./page1.htm", "_top");
    Button 2 -> calls page2.htm using:
                on (press) {
                getURL("./page2.htm", "_top");
    Button 3 -> calls page3.htm using:
                on (press) {
                getURL("./page3.htm", "_top");
    When I enter to "page1.htm" it appears correctly showing the swf file and all the HTML text.
    It is OK.
    But when I'm in "page1.htm" and I click on "Button1" (to reload "page1.htm") the only thing that I can see (after reloading page1) is the HTML text and the picture, but I cannot view the "menu.swf" file.
    "menu.swf" remains in its place, but "invisible".
    You can click on its command buttons, but anytime I click on the button that loads the same page (for example: "Button 1" to reload "page1.htm") the
    swf file(s) doesn't appears.
    The same thing happens when I'm in page 2 with Button 2 to reload page2 .htm, and so on.
    How can I do to solve this problem?
    Sorry for my not good english but I'm spanish speaker.
    Thank you!
    Gus

    The path in the buttons is not correct once you navigate to the htm page.
    So here you are on the landing page and the menu button says to get to "page1.htm" go up one folder level  (../) to the file page1.htm.
    Now once you are up one level, either you loose access to the .swf because from that page the path to the .swf is not correct, or if the .swf does show, then the path in the buttons back to the other pages is not correct, because you are now one folder level higher.
    If I am mis-reading your post and all pages are in the same folder, then remove the "../" part before the page name in the URL. Or perhaps you are using ./ to denote the current directory... I'd still suggest removing it. So the the getURL would look like this :
    getURL("page1.htm", "_top");
    if all pages are in the same folder.
    And if I am reading your post correctly, then you cannot use the same button URL to get to ("./page1.htm", "_top"); and once on page1.htm use that same URL to get back down to your landing page.
    So I'd say it's a pathing problem.
    Give that a try and see if it helps.
    Best wishes,
    Adninjastrator

  • Use an SWF as a Fill

    Does anybody know if it is possible to use an swf file as a fill?
    So for instance you could embed the swf file into code then use it as a fill for an object and get an animated fill?
    Or is there another way to achieve something similar?
    Thank you in advance for taking the time to read and comment.
    Jon

    Good old 1998!
    You could load the swf using SwfLoader and watch its enterFrame event.  When the frame changes, you could fill a BitmapData with it like this: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics. html#beginBitmapFill().  You could use that BitmapData in a Bitmap, which could then be used for the source of an Image.
    HTH;
    Amy

  • SVG Security Error when using a swf with svg in a web application

    Anymap works fine when generating the swf, it's great !
    But when i try to use the swf in a web aplication, i have this error : SVG Security Error, check the web server cross-domain policy file allows access.
    I copied the .jpg and .svg at the good repertories.
    But i had this crossdomain:xml <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-http-request-headers-from domain="" headers="" secure="false" />
    <allow-access-from domain="*" secure="false" />
    </cross-domain-policy>
    Thanks in advance and sorry for my poor english.

    You might also want to turn on [Adobe Flash policy file logging|http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_05.html#_Using_Logging].
    We recommend uninstalling the Flash Player before installing the Debug Flash Player.
    Uninstall Flash Player using the following link:
    [http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe|http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe]
    Regards,
    Matt

  • Problems in using Flash swf in captivate 5

    Hi,
    I am using captivate 5 and in that for a project I created some flash animation in flash cs4 and using the swf output file in captivate.
    So the problem is this:
    When I publish the project and try playing the project(exe/html output), those flash swf animations are not playing properly or not at all playing.
    There are around 40-50 slides in captivate and around 90% of those files contain flash swf animation. Some of the animations are playing and some are not.
    In flash cs4 the action script version is 3 and also I tried publishing the project in both flash player 9 and 10 but still some animations are not playing. Its random.
    Any fix for that? Its urgent.
    Thanks in advance.

    There's a known issue with the way Captivate 5 loads SWFs.  If the animation is not all on the main timeline level of the SWF, but the animation has been placed inside a symbol, Captivate triggers the animations to play when the SWF is loaded right at the beginning of the movie instead of making them play only on the slide where the SWF should play.  This means that by the time your movie gets to the slide in question, the animation has already finished playing, and it looks to you like it won't play, when in fact it already HAS played.
    This issue only affects SWFs with animation inside symbols, which is unfortunately the way most Flash animation designers are taught to create them.  It can be fixed via some AS3 code inside the SWF, but this is only possible if you have access to the FLA files used to create the SWF, and you know how to use Flash.
    There is more information in this thread: http://forums.adobe.com/message/3551526#3551526

  • Load swf file in html based air?

    1. The start window opens up a transperant window in an iframe.
    2. Then the transperant window loads an external asp file from my server (content.asp) in an iframe.
    3. In the content.asp file i try to load an swf file, but nothing is visible?
    I use the following code in content.asp to show the swf file:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="300">       
    <param name="movie" value="flashtest.swf" />
    </object>
    I have uploaded a testpage with this code to the server and it works fine, but not in the air application!?
    What Im I doing wrong?

    No, nothing with HTML.
    I have 2 SWF applications. One is the Gallery, and the second is my Main Page.
    My Main Page must integrate the Gallery module in one of its page.
    The problem is when I try to integrate it, I think I must give de future loaded SWF some parameters like this :
    (My Main SWF loading in HTML)
    var so = new SWFObject("WebSite.swf", "flashcontent", "520", "700", "10", "#111111");
    so.addParam("allowfullscreen","true");
    so.addParam("allowScriptAccess","always");
    so.addParam("menu","false");
    so.addParam("wmode","opaque");
    so.addParam("bgcolor","#000000");
    so.setAttribute("id","flash");
    so.write("flashcontent");
    It was for the Main App. For my Gallery SWF I had to load it like this (in HTML) :
    var so = new SWFObject("Gallerie.swf", "gallery", "249", "249", "10", "#111111");
    so.addVariable("xml_path","Galerie/config.xml"); // this line is adding the path to the xml file make sure that it's name is xml_path
    so.addParam("allowfullscreen","true"); 
    so.write("flashcontent");
    So at the beginning I had 2 different projects with an HTML page for each.
    Now I wan't to directly integrate the Gallery SWF into the Main SWF. And as you have seen I must give it some parameters such as the "xml_path" and "allowfullscreen". This must be done in ActionScript 3 and I don't know how...
    I think I have to use FlashVars but I don't know how. As I said before, I have tried using the loaderinfo.parameters, but it is in read-only...
    Do you have an idea of how I can make it work ?

  • How to use ora:processXSLT to create HTML with BR tags included?

    I am using a .xsl to create HTML for use as part of a notification process. The issue is that if in the .xsl I include the
    tag, when the transform engine runs to make the HTML it creates <br> tags with out the maching </br> tags. (in doing some reading this seems to be a feature of most XSLT engines) But the result is invalid XML, so when I attempt to assign the output to a variable the process faults and I get the following error:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("XML_PURCHASE_ORDER_to_HTML.xsl", bpws:getVariableData("inputVariable", "payload", "/ns1:XML_PURCHASE_ORDER"))", the reason is The XML data is invalid.
    The XML data is invalid; the reason is "Error on line 100 of document : The element type "br" must be terminated by the matching end-tag "
    ". Nested exception: The element type "br" must be terminated by the matching end-tag "
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze

    You can probably set the output format in the stylesheet, like:
    <xsl:output method="txt" indent="no" omit-xml-declaration="yes" />
    if you really don't want to use xhtml. The result might have to be wraped in a cdata block in the bpel flow?
    cheers
    /Stig

  • Help with inserting SWF file into .html page

    I created a photo gallery in Flash CS5.5, using the advanced photo gallery template. It works fine as a standalone SWF file but it's not displaying properly when I try and insert it into the Gallery page of my website.
    The thumbnails are showing as blank white boxes and the main image holder isn't showing at all, though the controls beneath it are showing. The SWF file and all the images are stored in site/images/gallery/ and my Gallery page is in the root. What's going on here? Can anyone help please?
    Thanks

    If you are storing any of your Flash assets in sub-folders and having problems... it's most likely because of pathing problems. For review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    What it boils down to is that you need to path the Flash assets from the Web page that you place the main .swf on... NOT the physical location of the .swf
    Best wishes,
    Adninjastrator

  • Using Visual Studio as an HTML editor with SharePoint's Design Manager

    I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.
    I'd like to use Visual Studio 2012 as my HTML editor.  But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.
    I can modify MasterPage.html successfully with NotePad.  I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.
    Can I use Visual Studio as an HTML editor in this scenario?  If so, what am I doing wrong?
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger
    rogerwithnell

    The TMP file is used by VS to save off changes in the file your working on, so you can perform Undos for instance.  If you shut down VS it should clean those up for you.  However, this can be a challenge if you're still working on the file.
    I would just make a copy of the MasterPage and place it in a folder outside the mapped folder.  Then you can simply copy and paste it back into the mapped folder.
    FYI, don't do this with any OOTB MasterPages!  Please make a copy and rename one that comes with SP, you don't want to change those in case you need to revert back.
    Good luck!
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

  • Using a swf generated by Flex from a Flash component

    I know you can include and control a swf generated by Flash
    within a Flex component. But can you do the inverse? Can you use a
    swf generated by Flex within a Flash project/component?
    We plan to develop a "core" module that would be used in a
    lot of other Flash and Flex components we'll develop in the future.
    This core would be a package of classes that could be easily
    re-used by the components. There would be nothing visual in it,
    only standard classes.
    Even if this core would not contain any visual components, we
    would like to develop it using Flex since we prefere Flex Builder
    to the Flash editor to code and debug.
    But I'm not sure if:
    1) A core module like this, developped in Flex, could be used
    by our Flash components or only by other Flex components?
    2) If we use Flex to generated this core, will the resulting
    .swf be bigger than if we would have used Flash to develop it?
    Since there will be no Flex visual components in it, maybe it will
    be as small? Is there a compiler parameter to tell Flex to only
    include the minimum things possible in the generated .swf?
    Any help or link about this would be really appreciated!
    Thanks you in advance!
    P.S. I apologize to those aware that this message was also
    posted on another Flex related forum, but I received no reply on
    it!

    try this. for me it has worked.
    import flash.net.URLRequest;
    import flash.utils.Timer;
    var loader:Loader = new Loader();
    var timer:Timer;
    var myclip:MovieClip;
    //load the Flex Component
    loader.load(new URLRequest("IS.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaderDone);
    addChild(loader);
    function loaderDone(e:Event) {
    timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, handleTimer)
    timer.start();
    function handleTimer(event:TimerEvent):void {
    //cast the loader.content into MovieClip to access
    currentFrame.
    myclip = loader.content as MovieClip;
    if (myclip.currentFrame == 2)
    however, i need to access properties of IS.mxml..
    any data member would work..
    or if i could dispatch an event in IS.mxml and catch it in
    flash through IS.swf, it would work.
    Pls somebody suggest.

  • Using Facebook SDK in Air HTML environment

    Hi,
    I am building an AIR application using HTML/JS and I'm trying to work with Facebook Javascript SDK for some simple functionality.
    It seem however when running and an AIR environment I am not able to access the FB object.
    I have the SDK locally so I know its there but simple FB.init() and FB.login() are non-existent and without errors...
    I also tried using the FB AS3 library by incldeding it in <script> tags but this gives me an error
    TypeError new window.runtime.com.facebook.graph.Facebook() is not a constructor
    Don't know if its because my xml namespace is version 2.0 and not 1.5 (1.5 errors as well but it says some IFilePromise class is not found.
    Can the Javascript SDK be used in building Adobe AIR HTML apps?

    Annoyingly the SDK hasn't been updated in over three years. I've had a casual look via Visual Studio's object inspector to see if I can spot any new methods or properties that could be useful but if they are there then they are hidden well. Media Kind, for example, was introduced in iTunes 9, I think, but can't be read from code.
    I don't know what tasks you're hoping to automate, but you might find some of my scripts useful either in their own right or as food for thought.
    tt2

  • Using content aware with a new layer

    I am trying to use content aware with a new layer which i have made a smart object but when I select fill it is greyed out. why?.

    CAF doesn't have a Sample all layers option, and needs source pixels to work on.  The best you can do is select those parts of the background layer that you are happy to be sampled from, and copy them to a new layer and use CAF on that layer.  This prevents gaps in the landscape being filled with a foregrounsd subject's head!
    You can then add a layer mask to that layer to the new layer to use only those parts you need.

  • Using Flash SWF works great on live view and preview in Safari but does run after upload.

    Help needed.
    I have creatd a SWF file using Flash. Saved to root directory of the website.
    Inserted into a AP tag area.
    Plays Ok in Live view
    Plays OK in Safari preview
    Uploads OK
    Checked file present OK
    Upload Scripts folder
    Will not play when go to website page left with white area where swf should be playing.
    Ideas greatly received.
    Using Dreamweaver 5.5
    Cheers
    Bikeboysim
    www.parrotti.com

    Glad you got it all working! Good job!
    Just a note (for yourself and anyone else using Flash) on the rumor that all Flash files must be in the root folder... simply not true. In my opinion, as with any other type of files on your site, I'd suggest putting them in organized folders.... all the images in one folder... then subfolder for diff categories of images, flv video files in another folder, maybe keep all the .swf files in another, the xml data files in another, etc. Flash asset files can be just as organized as any other type of files.
    From an old article.... for review:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best wishes,
    Adninjastrator

  • [svn:fx-trunk] 11903: Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.

    Revision: 11903
    Revision: 11903
    Author:   [email protected]
    Date:     2009-11-17 12:18:59 -0800 (Tue, 17 Nov 2009)
    Log Message:
    Fix SDK-22564: Debug player logs RSL sizes to console using main SWF name.  Now, whenever the player loads a swf whose name is not known, because it was loaded via Loader.loadBytes() (which includes framework RSLs with digests), we display the name as "<unknown-N>", where "N" is a unique number to differentiate it from other unnamed swfs.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22564
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/SwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DSwfInfo.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/events/SwfLoadedEvent.java
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/threadsafe/ThreadSafeSwfInf o.java

Maybe you are looking for

  • BAPI_ROUTING_CREATE creates routing but no operations, without any errormsg

    Hi Seniors, I have following problem. I have to create a new routing from an existing routing. So far it sounds easy, and it even works for the routing itself. But whaever i export to the BAPI it wont create any Operations. What i do is: Reading the

  • . A kernal panic.

    Hi I have a macbook pro 2006 10.6.8. The last 2 months the screen goes black and a message dispays to restart in different languages. I restart it, and nothing happens. The computer works fine in safe mode connected to the modem with an ethernet cord

  • How to disable daqmx base autorun in wince 6.0

    when i am connecting mini 2440 to pc through active sync automatically daqmx base is running and arm2240 is getting hanged.

  • Store Moves to memory

    I have a simple twist on the hunt the Wumpus game where the object is to find a pile of smelly socks and then return to the starting position. My code is very basic and not the most intelligent agent but it gets the job done. the problem I am having

  • Lightroom 2.5 startup Vista

    I also have the same problem as liquidsoftware for LR2.5 but I have Windows Vista. I installed the Cd and it worked fine. Only after the updates 2.4 & 2.5 the problems started. Any ideas how to fix this? Thanks