Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Why won't Flash using XML file load images?

    downfalls of the scrolling sideboxes (jscript not flash) for featured or specials was that they loaded all the images
    Note in ZenCart 1.3.8/1.3.8a.. you can set, via admin, how many products to show in side boxes for new/featured/special.

    EDIT:
    http://www.zen-cart.com/index.php?ma...roducts_id=775
    For my own info, tested my scrolling featured sidebox, (url above)with 1.3.8.a, and set via admin, how many products to scroll..works fine..not tested other scrolling boxes for whats new/specials as yet..

  2. #12
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Why won't Flash using XML file load images?

    One of the downfalls of the scrolling sideboxes (jscript not flash) for featured or specials was that they loaded all the images
    Anytime you use images you run into this problem. I've spent hours sizing images to get the fastest load and the most effects I can. I been programing my flash and refining it to get the smallest size file I can. To make sure I was giving you the right info, I uploaded my test file to my front page. The size of the file is 33kb. Larger then I like to try for, and I didn't do a load delay yet.

    The swf works with xml in the flash folder and gets the images from my images/product folder. So it's just a programing issues, setting flash up to work with php.
    Dave
    Always forward thinking... Lost my mind!

  3. #13
    Join Date
    Jul 2008
    Location
    San Diego, CA
    Posts
    45
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    I am having the same issue.
    I have added flash code to the product template. When I bring up the product, the flash loads, but the music clips do not play. So seems like the xml does not load.
    When I run the .swf file on its own (outside of zen-cart) but from the same folder, it works fine.

    The .swf, .xml and .mp3 files are all in the same folder.

    Working locally, so don't have an example to show.

    Any insight or advice would be appreciated.

  4. #14
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Why won't Flash using XML file load images?

    Quote Originally Posted by rweeks View Post
    I am having the same issue.
    I have added flash code to the product template. When I bring up the product, the flash loads, but the music clips do not play. So seems like the xml does not load.
    When I run the .swf file on its own (outside of zen-cart) but from the same folder, it works fine.

    The .swf, .xml and .mp3 files are all in the same folder.

    Working locally, so don't have an example to show.

    Any insight or advice would be appreciated.
    Same as with others... the xml and swf file need to be called in the same folder, but due to the nature of how php builds web pages, the action script call to load the xml can't located it.

    If your the coder of the loader swf, you need to point myLoadData.load ('myData.xml'); in the right direction... This looks for myData.xml at the root of your site when used in php, but is the normal way of doing it for html pages. For php, the addressing needs to be where you plan on having both xml and swf located. myLoadData.load("includes/templates/MYTEMPLATE/flash/myData.xml');
    Dave
    Always forward thinking... Lost my mind!

  5. #15
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Why won't Flash using XML file load images?

    you need to point myLoadData.load ('myData.xml'); in the right direction...
    This is what happens when you don't use xml loads... Sorry but I was wrong with the action script. With myLoadData.load ('myData.xml'); as is, it does need to be in the same folder as the swf. In the xml file, you need to write the courrect patchways to your file.

    So say I have a gallory.swf and a Photos.xml all are in a folder at 'mysite.com/flash/' the Photos.xml would load images from my product folder.

    The xml file would look like this;
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <Slides>
      <slideNode jpegURL="images/products/item22.jpg" jpegWidth="120" jpegHeight="77"></slideNode>
      <slideNode jpegURL="images/products/item23.jpg" jpegWidth="116" jpegHeight="120"></slideNode>
    </Slides>
    Gallory.swf was a quick test I did last night and what I learned from it.
    Dave
    Always forward thinking... Lost my mind!

  6. #16
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    Hey guys,

    After reading this thread about 10 times and a couple of others, i am seeking your help.
    I have a Flash header made by someone else (no .fla available) and i got 5 elements, using a xml file to call for the images displayed in the animation:

    1. the swf file, "galleriasmall.swf"
    2. the xml file listing my images, "fotos.xml"
    3. the images folder, "images"
    4. an html file, "galleria.html"
    5. and a php file, "lettore.php"

    If i understand how things were done, lettore.php and fotos.xml have the same purpose : look for the images to place into the swf...
    I have been told to have all 5 elements in the same location, so all are in /damien/images/flash (damien being MY_TEMPLATE)

    I had a previous very simple Flash header that worked just fine. I used the technic from Seethrou So i know the code in tpl_header worked for that 1st one.

    Obviously my php coding skill are still close to none. PHP to me stands for "Pure Headhache Period" but i'm trying...
    I still can't figure why the background of the new animation show but nothing else.

    I tried to move the 4 elements to the root. Still not working...

    I'm lost... HELP !!!

    I still got those files in both locations. the code in tpl_header points to the swf in the root.
    You can get access to our site here.

    Thanks,

    Damien

  7. #17
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Why won't Flash using XML file load images?

    Quote Originally Posted by DamienDLSkinSolution View Post
    Hey guys,

    After reading this thread about 10 times and a couple of others, i am seeking your help.
    I have a Flash header made by someone else (no .fla available) and i got 5 elements, using a xml file to call for the images displayed in the animation:

    1. the swf file, "galleriasmall.swf"
    2. the xml file listing my images, "fotos.xml"
    3. the images folder, "images"
    4. an html file, "galleria.html"
    5. and a php file, "lettore.php"

    If i understand how things were done, lettore.php and fotos.xml have the same purpose : look for the images to place into the swf...
    I have been told to have all 5 elements in the same location, so all are in /damien/images/flash (damien being MY_TEMPLATE)

    I had a previous very simple Flash header that worked just fine. I used the technic from Seethrou So i know the code in tpl_header worked for that 1st one.
    First you need to do some clean up.. open your includes/configure.php file and look for this line and remove the ending '/'
    Code:
     define('HTTP_SERVER', 'http://looloos-skincare.com/');
     define('HTTPS_SERVER', 'https://looloos-skincare.com/');
    Having that '/' there is cussing a double // in your addressing.

    Next, you should upgrade swfobject to 2.0 or 2.1, the code you're using would work on 1.0 which had problems working with other scripts. Once you do that, change the name of swfobject.js to jscript_swfobject.js and place it in includes/templates/damien/jscript folder and you can delete the script call in tpl_header. swfobject will auto load that way. Then replace the call to your swf as below..
    Code:
    <script type="text/javascript">swfobject.embedSWF("flash/galleriasmall.swf", "myContent", "800", "250", "7.0.0");</script>
      <div id="myContent"><p>Alternative content</p></div>
    I like having a flash folder at the root of the site to keep things clean, place "galleriasmall.swf" and "fotos.xml" within that folder also have your image folder there. I'm assuming the html and php files are demo's of how to use the swf... If galleriasmall.swf is hard coded to load fotos.xml, then it should work, if not, then you'll need to post the flash object code from the html file for us to figure out the rest.

    SwfObject can be found here.. code.google.com/p/swfobject/
    Dave
    Always forward thinking... Lost my mind!

  8. #18
    Join Date
    Sep 2008
    Posts
    97
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    Dave,

    Thank you soooo much for taking the time to look at my problem.

    I followed your instructions and the swf loads... but not the images.
    So here is the content of the html file :

    HTML Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>galleriasmall</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#666666">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
    	if (AC_FL_RunContent == 0) {
    		alert("This page requires AC_RunActiveContent.js.");
    	} else {
    		AC_FL_RunContent(
    			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    			'width', '800',
    			'height', '250',
    			'src', 'galleriasmall',
    			'quality', 'high',
    			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    			'align', 'middle',
    			'play', 'true',
    			'loop', 'true',
    			'scale', 'showall',
    			'wmode', 'window',
    			'devicefont', 'false',
    			'id', 'galleriasmall',
    			'bgcolor', '#666666',
    			'name', 'galleriasmall',
    			'menu', 'true',
    			'allowFullScreen', 'false',
    			'allowScriptAccess','sameDomain',
    			'movie', 'galleriasmall',
    			'salign', ''
    			); //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,0,0" width="800" height="250" id="galleriasmall" align="middle">
    	<param name="allowScriptAccess" value="sameDomain" />
    	<param name="allowFullScreen" value="false" />
    	<param name="movie" value="galleriasmall.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#666666" />	<embed src="galleriasmall.swf" quality="high" bgcolor="#666666" width="800" height="250" name="galleriasmall" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    	</object>
    </noscript>
    </body>
    </html>
    and here is the content of the php file :

    PHP Code:
    <?

    $dir = "images";

    echo "<?xml version='1.0' encoding='UTF-8'?>\n";
    echo "<galeria>\n";

    if (is_dir($dir)) {
        if ($d = opendir($dir)){
        
            while (($file = readdir($d))!== false){
                if (filetype($dir.'/'.$file) == 'file'){
                    echo "    <fotos gde=\"images/{$file}\"/>\n";
                    //$vars .= "fotos gde=".$file;
                    //echo $vars;
                }        
            }
            closedir($d);
        }
    }
    echo "</galeria>\n";



    ?>
    I hope that will help...
    Once again thank you very much for your help.

    Damien

  9. #19
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Why won't Flash using XML file load images?

    Sorry Damien, got me stumped on this one. Looks like you could hard code the script into tpl_header, just not sure what the php file is doing.

    Flash 4 and above can do anything javascript could do. Just not sure why this gallery would require so much outside scripting. Also I don't see the normal calls for loading the xml list, so I'm assuming that's what all the extra scripting is doing.
    Dave
    Always forward thinking... Lost my mind!

  10. #20
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Why won't Flash using XML file load images?

    Try placing xml file and swf file etc in zencart root folder...

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. My images won't load
    By Yoga BHC in forum General Questions
    Replies: 1
    Last Post: 4 Oct 2009, 02:30 PM
  2. XML file to feed my flash script ...
    By nixonmg in forum Basic Configuration
    Replies: 0
    Last Post: 19 Nov 2008, 10:56 PM
  3. Flash: Unable to load Images from other subdomain
    By Robd75 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 5 Aug 2008, 09:02 PM
  4. Images won't load
    By dinojohnb in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 29 Nov 2006, 02:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg