Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Flash SWF not loading despite hours of fiddling

Flash SWF not loading despite hours of fiddling

Locked

Views: 3,279

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
22 Dec 2009, 4:06 PM
#1
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Flash SWF not loading despite hours of fiddling

I really have spend many hours trying to figure this out, but still with no luck. :frusty::frusty::frusty::frusty::frusty:

Flash file: http://remembertheoccasions.com/banner.swf
Flash XML: http://remembertheoccasions.com/data.xml
Flash images: http://remembertheoccasions.com/banner_images/
Test page: http://remembertheoccasions.com/flashtest.html
Store URL: http://remembertheoccasions.com/shop/

I have tried using the swfobject.js approach. (making sure to call swfobject.js in the header)
I have tried using the embed approach. (with many different parameters)
I have tried creating a loader.js as per one thread to load the file.
I have tried using relative paths and explicit paths.
I have moved the flash files from /shop/banner/ to the root directory.

All of which results in a white block with no flash movie!

Any help is greatly appreciated.
Thanks!

22 Dec 2009, 4:34 PM
#3
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

Yep, I've already tried all the methods in that thread.

22 Dec 2009, 5:05 PM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Flash SWF not loading despite hours of fiddling

http://dezinashop.com/demo/
Flash above using xml file.view source, adapt to your own.
KEY is correct paths to all components

22 Dec 2009, 5:30 PM
#5
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

I just don't understand why it'll work on the flashtest.html or copying your code from your page, with the same code but not when I put it in tpl_index_default.php.
I'm using explicit paths, so the paths shouldn't be an issue.

22 Dec 2009, 5:41 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Flash SWF not loading despite hours of fiddling

but not when I put it in tpl_index_default.php.
Why are you puttting code into that file? Where are you
expecting flash to show?
:blink:

22 Dec 2009, 5:47 PM
#7
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

Refresh the main page again. I just updated tpl_index_default.php to add "Contents of the bannerwrapper is in tpl_index_default.php" and the text does show where the banner.swf should show.

Am I missing something?

22 Dec 2009, 5:59 PM
#8
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Flash SWF not loading despite hours of fiddling

Am I missing something?
Code should be entered via admin>>tools>>define pages editor>>define main page

22 Dec 2009, 6:03 PM
#9
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

I realize that I can put it in the main page, but why wouldn't the code work in that banner box?
I've also tried loading the same code into an EZ Page, but with the same result.

22 Dec 2009, 6:12 PM
#10
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

I put it in the main page too, but it's still not loading.

22 Dec 2009, 6:29 PM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Flash SWF not loading despite hours of fiddling

What code are you using?

22 Dec 2009, 7:09 PM
#12
imagda avatar

imagda

New Zenner

Join Date:
Feb 2009
Location:
North Carolina (USA)
Posts:
5
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

misty:

Code should be entered via admin>>tools>>define pages editor>>define main page

I have done this, and my Flash file shows and button rollovers work, but my links don't go anywhere.

Is there any specific place I need to insert the JS file?

22 Dec 2009, 8:08 PM
#13
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

<div id="flashcontent"> <script type="text/javascript"> var so = new SWFObject("http://remembertheoccasions.com/banner.swf", "mymovie", "702", "266", "8"); so.addParam("menu", "false"); so.write("flashcontent"); </script> </div> Another person's script didn't have the so.addParam(), but this is the one that was included in the test page for the banner rotator which is here: <http://remembertheoccasions.com/flashtest.html>

I've also tried:
<object type="application/x-shockwave-flash" data="http://remembertheoccasions.com/banner.swf" width="702" height="266">

<param name="movie" value="http://remembertheoccasions.com/banner.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

And
<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="702" height="266" align="middle">

<param name="movie" value="<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="702" height="266" align="middle"> <param name="movie" value="http://remembertheoccasions.com/banner.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#000000"> <param name="menu" value="false"> </object>"> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="menu" value="false" /> </object>

And the code here as well: http://www.zen-cart.com/forum/showthread.php?t=34807

22 Dec 2009, 9:29 PM
#14
yellowstars2k avatar

yellowstars2k

New Zenner

Join Date:
Jul 2008
Posts:
48
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

Okay, never mind, I got it.
Seems there was an additional call needed to specify the xml path that wasn't documented in the file.

Thanks everyone!

9 Feb 2010, 3:20 AM
#15
zcjon avatar

zcjon

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

YellowStar: so what did you do to fix the call to the xml file? I have a flash banner that is using an xml file to load the images. I can get the area for the flash movie to load (I can change the background value and see it change) however, I can't get the flash to run. When I launch the swf file directly it plays the file but when I load it from the banner manager it doesn't run. It seems that the xml file might be the problem. Here is my code from the banner html block:

<object type="application/x-shockwave-flash" data="http://localhost/peticebox/catalog/includes/templates/cherry_zen/images/slideshow_as2.swf" width="700" height="240"> <param name="movie" value="http://localhost/peticebox/catalog/includes/templates/cherry_zen/images/slideshow_as2.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#FF0000"> <param name="menu" value="false"> </object>

Any suggestions?

9 Feb 2010, 3:45 AM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Flash SWF not loading despite hours of fiddling

In most cases of flash using xml files, the xml file needs to be in the root of your store, where the main index.php file is located. So, in your case that would be your /peticebox/catalog/ folder. ... unless of course you write your flash code to look in a specific alternate path.

9 Feb 2010, 8:29 PM
#17
zcjon avatar

zcjon

New Zenner

Join Date:
Feb 2010
Posts:
14
Plugin Contributions:
0

Re: Flash SWF not loading despite hours of fiddling

Thanks, for that info. I have moved the xml and images to the catalog directory and republished the swf to that same directory. I changed the html block in the banner manager to:
<object type="application/x-shockwave-flash" data="http://localhost/peticebox/catalog/slideshow_as2.swf" width="700" height="240">

<param name="movie" value="http://localhost/peticebox/catalog/slideshow_as2.swf" /> <param name="quality" value="high"><param name="BGCOLOR" value="#000000"> <param name="menu" value="false"> </object>

I still get the same result. The background loads but nothing runs. However, if I double click on the swf file in windows explorer it launches the video and runs just fine. I'm sure this is a simple issue, I just can't figure out what it is.

Could it be an addressing issue with XAMPP? Here is the directory location of the swf file: C:\xampp\htdocs\peticebox\catalog

Any more suggestions?
More suggestions?