Author Topic: loading slow or not loading, using 2.06  (Read 1681 times)

malcolm

  • Newbie
  • *
  • Posts: 8
loading slow or not loading, using 2.06
« on: February 24, 2010, 11:32:38 am »
Hi, I have looked through the forum, i updated version, but still not loading correctly on internet explorer, im doing it local so not on the net, maybe this is the problem, but have followed other tips and no joy. i always need to refresh wich is no good. Please help, any idea how i can fix this, i will paste html in here so you can see

<!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>MegaZine 3</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link type="text/css" href="meg2.9/style.css" rel="stylesheet" />
    <script type="text/javascript" src="meg2.9/js/swfobject.js"></script>
    <script type="text/javascript" src="meg2.9/js/swfaddress.js"></script>
    <script type="text/javascript" src="meg2.9/megazine/megazine.js"></script>
    <script type="text/javascript">
        //<![CDATA[
      var flashvars = {
            /*
                Used to pass the name of the xml file to use. Path is relative to the megazine.swf file!
                IMPORTANT: when not using the wmode: "transparent" option below, REMOVE THE COMMA (,) after
                           the file name. Otherwise this will break JavaScript (and thus the loading of the
                           Flash content) in Internet Explorer.
            */
            xmlFile: "file:///C:/mybooks2/my-books/etravelfeb2010v26/megazine26.mz3"
            /* Remove the // to enable transparency (show HTML background). Not recommended (slow). Use book/background instead. */
            //wmode: "transparent"
      };
      var params = {
         menu: "true",
         scale: "noScale",
         allowFullscreen: "true",
         allowScriptAccess: "always",
         /* This is the background color used for the Flash element. */
         bgcolor: "#111111"
      };
      var attributes = {
         id: "megazine"
      };
        swfobject.embedSWF("meg2.9/megazine/preloader.swf",
                     "megazine",
                     "100%",
                     "99%",
                     "9.0.115",
                     "meg2.9/js/expressInstall.swf", flashvars, params, attributes);
        //]]>
    </script>
</head>
<body>
    <div id="megazine">
        <h1>MegaZine3 requires FlashPlayer 9</h1>
        <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
        <p><a href="http://megazine.mightypirates.de/">Powered by MegaZine3</a></p>
    </div>
</body>
</html>

hungcu

  • Newbie
  • *
  • Posts: 3
Re: loading slow or not loading, using 2.06
« Reply #1 on: March 03, 2010, 03:30:07 am »
I faced the same problem, I own 1.3.x unlimited license so I guess I am quite familiar on how to use the flash.  I download the latest version which added basePath .
Unzip the package on a local folder, it worked.
Copy the whole folder to a local IIS server, whatsoever I made change to the xml, html it doesn't seem to load. I hope you can shed some light on this:
My HTML here:
<!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>MegaZine 3</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link type="text/css" href="style.css" rel="stylesheet" />
   <script type="text/javascript" src="js/swfobject.js"></script>
   <script type="text/javascript" src="js/swfaddress.js"></script>
   <script type="text/javascript" src="megazine/megazine.js"></script>
   <script type="text/javascript">
      //<![CDATA[
      var flashvars = {
         /*
            IMPORTANT: when only using one of the options below, REMOVE THE COMMA (,) at the end of the line.
                     Otherwise this will break JavaScript (and thus the loading of the Flash content) in Internet Explorer.
                     (Just make sure that the last of the enabled settings does not end with a comma).
            
            Remove the // in front of an option to enable it.
         */
         
         /* This is the ABSOLUTE base that to use for all path resolving. This has an effect on ALL paths (including GUI, sounds etc). */
          basePath: "http://localhost/dnn514_1/Portals/0/PageFlip/megazine",
         
         /* Used to pass the name of the xml file to use. Path is RELATIVE to basePath, or, if not set, to the megazine.swf file. */
         xmlFile: "http://localhost/dnn514_1/Portals/0/PageFlip/megazine/megazine.xml"
         
         /* Determines whether to enable transparency (show HTML background). Not recommended (slow). Use book/background instead. */
         //wmode: "transparent"
      };
      var params = {
         menu: "false",
         /* Necessary for proper scaling of the content. */
         scale: "noScale",
         /* Necessary for fullscreen mode. */
         allowFullscreen: "true",
         /* Necessary for SWFAddress and other JavaScript interaction. */
         allowScriptAccess: "always",
         /* This is the background color used for the Flash element. */
         bgcolor: "#333333"
      };
      var attributes = {
         /* This must be the same as the ID of the HTML element that will contain the Flash element. */
         id: "megazine"
      };
      /* Actually load the Flash. */
      swfobject.embedSWF("http://localhost/dnn514_1/Portals/0/PageFlip/megazine/preloader.swf", "megazine", "100%", "100%", "9.0.115", "http://localhost/dnn514_1/Portals/0/PageFlip/js/expressInstall.swf", flashvars, params, attributes);
      //]]>
   </script>
</head>
<body>
   <div id="megazine">
      <h1>MegaZine3 requires FlashPlayer 9</h1>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
      <p><a href="http://megazine.mightypirates.de/">Powered by MegaZine3</a></p>
   </div>
</body>
</html>
« Last Edit: March 03, 2010, 03:00:20 pm by hungcu »

hungcu

  • Newbie
  • *
  • Posts: 3
Re: loading slow or not loading, using 2.06 (SOLVED)
« Reply #2 on: March 06, 2010, 09:35:39 am »
I am able to get it work, thanks Florian for this,
I am runing Megazine on an IIS server, and I have to rename all *.asul  files to *.xml (located in gui folder), then
having in xml file the asulextension as follow:
<book
   bgcolor="0xCCCC99"
   pageheight="600"
   pagewidth="400"
   minscale="0.5"
   lang="en,de"
   pagethickness="0.5"
   plugins="navigationbar, gallery, overlays, titles, anchors, swfaddress, links, keyboardnavigation, slideshow, options" asulextension="xml"
   >