Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Posts
    19
    Plugin Contributions
    0

    Default Flash SWF file not loading on Homepage

    Hi,

    I uploaded my swf folder titled "movie" into the main "images" folder

    Then I added this script to my define_main_page.php file:
    <object type="application/x-shockwave-flash" data="includes/templates/classic/images/movie/movie.swf" width="555" height="360">
    <param name="movie" value="includes/templates/classic/images/movie/movie.swf" />
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <param name="menu" value="false">
    </object>


    Any idea why the swf file is not running? It's just a black box.
    I thought i copied everything exactly the same from this thread:
    http://www.zen-cart.com/forum/showthread.php?t=116507

    Any help would be greatly appreciated. Thanks!

    Here is my website:
    www.neffywrap.com

    Jeff

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Flash SWF file not loading on Homepage

    This is because the path to the flash file is not correct. You background coor is black and this is shown. Try an absolute path

    Code:
    <object type="application/x-shockwave-flash" data="/includes/templates/classic/images/movie/movie.swf" width="555" height="360">
    <param name="movie" value="/includes/templates/classic/images/movie/movie.swf" />
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <param name="menu" value="false">
    </object>
    or better more your flash files to another older like flash in the zencart directory and link it there, e.g.

    Code:
    <object type="application/x-shockwave-flash" data="/flash/movie.swf" width="555" height="360">
    <param name="movie" value="/flash/movie.swf" />
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <param name="menu" value="false">
    </object>

  3. #3
    Join Date
    Apr 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Flash SWF file not loading on Homepage

    thanks for the help! but its still not working =\

    i moved the folder to main zencart folder, then renamed it to "flash"
    then i changed define_main_page.php to read the following below.
    <object type="application/x-shockwave-flash" data="/flash/movie.swf" width="555" height="360">
    <param name="movie" value="/flash/movie.swf" />
    <param name="quality" value="high"><param name="BGCOLOR" value="#000000">
    <param name="menu" value="false">
    </object>

    Now I am back to square 1 with the LOAD FAIL error in my flash box.

    Any input? Thanks!

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

    Default Re: Flash SWF file not loading on Homepage

    Quote Originally Posted by hyperspeed View Post
    thanks for the help! but its still not working =\

    i moved the folder to main zencart folder, then renamed it to "flash"
    then i changed define_main_page.php to read the following below.

    Any input? Thanks!
    try it without using relative links...

    Code:
    <object type="application/x-shockwave-flash" data="http://www.neffywrap.com/flash/movie.swf" width="555" height="360">
    <param name="movie" value="http://www.neffywrap.com/flash/movie.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
    <param name="menu" value="false" />
    </object>
    Also, the code above is basic.... your assuming that a flash player is installed and that it's the right version to play the movie.

    If you're movie was made with flash 6 then this would be a better way to do it.

    Code:
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="movie" width="555" height="360" align="middle">
    <param name="movie" value="http://www.neffywrap.com/flash/movie.swf" />
     <param name="quality" value="high" />
    <param name="bgcolor" value="#000000" />
     <param name="menu" value="false" />
     </object>
    Dave
    Always forward thinking... Lost my mind!

  5. #5
    Join Date
    Apr 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Flash SWF file not loading on Homepage

    sigh. im about to give up.

    the flash movie itself works.

    www.neffywrap.com/flash/movie.swf

    i just dont get why i cant embed it!

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

    Default Re: Flash SWF file not loading on Homepage

    Quote Originally Posted by hyperspeed View Post
    sigh. im about to give up.

    the flash movie itself works.

    i just dont get why i cant embed it!
    When I look at your site I see the default define_main_page.php

    <!-- deprecated - to use uncomment this section
    <div id="" class="content">This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong></div>
    -->
    <!-- deprecated - to use uncomment this section
    <div id="" class="content">Define your main Index page copy here.</div>
    -->
    Ether you haven't setup a template override or for some reason the default template is still being used.

    When you edit the define page you should use 'Plan Text' for entering code and not the html editor. You should also see your template link on top of the box.
    includes/languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php
    Dave
    Always forward thinking... Lost my mind!

 

 

Similar Threads

  1. How can add Flash file (swf) my homepage?(definemain)
    By sbr09 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Oct 2010, 03:12 PM
  2. Flash SWF not loading despite hours of fiddling
    By YellowStarS2k in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 9 Feb 2010, 09:29 PM
  3. SWF Flash File in Banner Manager
    By Oriontool in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 5 Oct 2009, 04:14 PM
  4. What would be involved to upload a flash swf file as a product image
    By arica in forum Customization from the Admin
    Replies: 2
    Last Post: 19 Aug 2008, 03:33 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