2 Replies Latest reply on Jul 20, 2010 12:28 PM by jaywalker2011

    Flash Banner does not load

    jaywalker2011

      Hi all,

       

      I am posting this because I purchased a package on FlashComponents.net, and spent 167 dollars on a set of flash components that were suppose to be easy to install and highly customizable. I messaged the creater of this package, snowcat, but he does not reply to my inquiries on why it does not work.

       

      What I thought might be wrong was what I changed in the xml file, so I uploaded the entire folder from stock. the index.html page worked, however as soon as i copied the source code into my page I wanted to to actually play in. It does not even show, when I right-click the area in which it is suppose to be it says "Movie not loaded...".

       

      I literally copied and pasted, there were no changes to the code whatsoever from the working one.

       

      After that I continued to try to arrange it the way I wanted it to be anyways, storing the source files in a folder of the site rather than having it in the root of the file. This folder is "index_banner" The developer DID have a posting about that issue on his website which I read four times to make sure that somehow that was not the culprit either.

       

      Below is the code for the page; I am hoping I inadvertantly messed something up because then my 167 dollars is not wasted. But with the lack of support for a supposed "well documented" package it is a little disheartening.

       

      ----------------

      THIS IS IN THE HEAD TAG

      ----------------

      <script type="text/javascript" src="swfobject.js"></script>

      <script type="text/javascript">

      var flashvars = {};

      flashvars.folderPath = "index_banner/";

      flashvars.settingsXML = "settings.xml";

      var params = {};

      params.scale = "noscale";

      params.salign = "tl";

      params.wmode = "transparent";

      var attributes = {};

      swfobject.embedSWF("banner.swf", "BannerDiv", "600", "260", "9.0.0", false, flashvars, params, attributes);

      </script>

      -----------------
      THIS IS IN THE BODY TAG
      -----------------
      <div id="BannerDiv">
      <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" border="0" /> </a>
      </div>
      =======================================================
      FILES IN THE "INDEX_BANNER" FOLDER
      -----------------
      banner.fla
      banner.mxp
      banner.swf
      images/
      images.xml
      index.html
      settings.xml
      style.css
      swfobject.js
      ------------------
      =======================================================
      HERE IS THE ENTIRE INDEX.HTML FILE (SAMPLE FILE) (THIS WORKS BUT MY PAGE DOESN'T - INDEX.PHP)
      ------------------
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
      <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <script type="text/javascript" src="swfobject.js"></script>
      <script type="text/javascript">
      var flashvars = {};
      flashvars.settingsXML = "settings.xml";
      var params = {};
      params.scale = "noscale";
      params.salign = "tl";
      params.wmode = "transparent";
      var attributes = {};
      swfobject.embedSWF("banner.swf", "BannerDiv", "600", "260", "9.0.0", false, flashvars, params, attributes);
      </script>
      </head>
      <body>
      <div id="BannerDiv">
      </a>
      </div>
      </body>
      </html>
      ------------------
      THANKS IN ADVANCE FOR YOUR HELP! ANY INFO WOULD BE APPRECIATED I AM IN THE DARK ON THIS.

        • 1. Re: Flash Banner does not load
          Ned Murphy Adobe Community Professional & MVP

          I don't know if your problem arises from this, but I'll throw it out for you to consider.  When you load an swf file into an html page, and that swf file loads other files (images, swf's xml's, etc), the swf file needs to target those files as if it is in the html file's folder.    So if you are placing that swf file in a different folder than the html file, you may need to adjust how it targets the files it loads because it needs to target them as if it is in the html file's folder.

          1 person found this helpful
          • 2. Re: Flash Banner does not load
            jaywalker2011 Level 1

            That is what I thought too, but the coding specifies the location; on the tutorial I actually added:      flashvars.folderPath = "index_banner/";

            So once the files are delcared; from my understanding let's say it needs to look at the images folder, the images.xml was being activated while being in that folder so the images.xml is correct to look in the "images/" folder rather than "index_banner/images/"
            Any other suggestions?