Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Flash SWF file not loading on Homepage

Flash SWF file not loading on Homepage

Locked

Views: 4,768

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Oct 2009, 11:28 PM
#1
hyperspeed avatar

hyperspeed

New Zenner

Join Date:
Apr 2009
Posts:
19
Plugin Contributions:
0

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:
https://www.neffywrap.com

Jeff

27 Oct 2009, 12:58 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

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

<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.

<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>
27 Oct 2009, 3:53 PM
#3
hyperspeed avatar

hyperspeed

New Zenner

Join Date:
Apr 2009
Posts:
19
Plugin Contributions:
0

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!

28 Oct 2009, 2:01 AM
#4
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Flash SWF file not loading on Homepage

hyperspeed:

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...

<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.

<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> ```
28 Oct 2009, 6:46 PM
#5
hyperspeed avatar

hyperspeed

New Zenner

Join Date:
Apr 2009
Posts:
19
Plugin Contributions:
0

Re: Flash SWF file not loading on Homepage

sigh. im about to give up.

the flash movie itself works.

https://www.neffywrap.com/flash/movie.swf

i just dont get why i cant embed it!

29 Oct 2009, 3:27 AM
#6
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Flash SWF file not loading on Homepage

hyperspeed:

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