Zen Cart Logo
Forums / General Questions / Zen Cart 1.3 & Flash

Zen Cart 1.3 & Flash

Locked

Views: 2,219

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 May 2006, 8:49 PM
#1
ben_golant avatar

ben_golant

New Zenner

Join Date:
May 2006
Posts:
38
Plugin Contributions:
0

Zen Cart 1.3 & Flash

The following code snippet for a flash movie works perfectly here in a 1.2.5 site
: http://jtsmotosports.com, but just displays a black box here on a new 1.3 install here: http://open-source-systems.com

Here is the snippet:

<div id="content"> <div id="left"> <object class="specials" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="135" height="135"> <param name="movie" value="https://www.jtsmotosports.com/specials.swf" /> <param name="wmode" value="transparent" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <embed src="https://www.jtsmotosports.com/specials.swf" quality="high" menu="false" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="135" height="135" /> </object> <object class="video" type="application/x-shockwave-flash" data="https://www.jtsmotosports.com/video.swf" width="480" height="320"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="https://www.jtsmotosports.com/video.swf" /> <param name="quality" value="high" /> <param name="wmode" value="transparent" /> <param name="bgcolor" value="#48739B" /> <param name="menu" value="false" /> <embed src="https://www.jtsmotosports.com/video.swf" quality="high" wmode="transparent" bgcolor="#48739B" width="480" height="320" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

Thanks for any tips.

B.D. Golant

19 May 2006, 3:57 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Zen Cart 1.3 & Flash

I'm only guessing, but is it possible that your scripts are doing that because they're playing from a different domain?

I'd try copying them to your test domain and referencing them with relative paths instead of absolutes.

... or maybe remove this line:

<param name="allowScriptAccess" value="sameDomain" />

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2006, 5:32 PM
#3
ben_golant avatar

ben_golant

New Zenner

Join Date:
May 2006
Posts:
38
Plugin Contributions:
0

Re: Zen Cart 1.3 & Flash

DrByte:

I'm only guessing, but is it possible that your scripts are doing that because they're playing from a different domain?

I'd try copying them to your test domain and referencing them with relative paths instead of absolutes.

... or maybe remove this line:

<param name="allowScriptAccess" value="sameDomain" /> ```

DrB - thanks for the suggestions - changed the code as you suggested to :

		<object class="specials" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="135" height="135">
		  <param name="movie" value="../images/specials.swf" />
		  <param name="wmode" value="transparent" />
		  <param name="quality" value="high" />
		  <param name="menu" value="false" />
		  <embed 
				src="../images/specials.swf" 
				quality="high" 
				menu="false"
				wmode="transparent" 
				pluginspage="http://www.macromedia.com/go/getflashplayer" 
				type="application/x-shockwave-flash" width="135" height="135" />
		</object>

		<object class="video" 
			type="application/x-shockwave-flash" data="../images/video.swf" width="320" height="220">
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="movie" value="../images/video.swf" />
			<param name="quality" value="high" />
			<param name="wmode" value="transparent" />
			<param name="bgcolor" value="#48739B" />
			<param name="menu" value="false" />
			<embed 
				src="../images/video.swf" 
				quality="high"
				wmode="transparent" 
				bgcolor="#48739B" 
				width="320" 
				height="220" 
				menu="false"
		/*		allowScriptAccess="sameDomain" */
				type="application/x-shockwave-flash" 
				pluginspage="http://www.macromedia.com/go/getflashplayer" />
		</object>

The result is still the same - that code plays on the 1.2.5 site but not the 1.3 site - not that I am suggesting it really is anything to do with 1.3 - it's just very curious. http://open-source-systems.com/

Thanks

B.D. Golant

20 May 2006, 7:53 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Zen Cart 1.3 & Flash

It's odd that your specials.swf plays fine but video.swf doesn't, even when swapping filenames in the code.

I just tried that same code with nothing else on the page other than the needed base href (<base href="http://open-source-systems.com/" /> ) required to pull the file from the right place. It's just black. Even using the entire URL doesn't work.

However, running the video.swf directly in the browser without any object code etc seems to play fine.

I can only suspect that either you have a corrupted install of it on your testing server, or something internal to the SWF is causing this behaviour. I can't see Zen Cart being the cause at all.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2006, 8:20 PM
#5
ben_golant avatar

ben_golant

New Zenner

Join Date:
May 2006
Posts:
38
Plugin Contributions:
0

Re: Zen Cart 1.3 & Flash

DrByte:

It's odd that your specials.swf plays fine but video.swf doesn't, even when swapping filenames in the code.

I just tried that same code with nothing else on the page other than the needed base href (<base href="http://open-source-systems.com/" /> ) required to pull the file from the right place. It's just black. Even using the entire URL doesn't work.

However, running the video.swf directly in the browser without any object code etc seems to play fine.

I can only suspect that either you have a corrupted install of it on your testing server, or something internal to the SWF is causing this behaviour. I can't see Zen Cart being the cause at all.

No I am sure Zen Cart is not the cause because I reported that it works fine in Zen Cart 1.2.5 at http://jtsmotosports.com.

But I have now installed another fresh, brand new swf with this code snippet:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="515" height="344" id="slideshow_as2" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="../images/slideshow_as2.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <embed src="slideshow_as2.swf" quality="high" bgcolor="#000000" width="515" height="344" name="slideshow_as2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>

on 1.2.7 and 1.3 with the same result - and if you try to call it directly, http://open-source-systems.com/images/slideshow_as2.swf

it works beautifully.

So it is a lack of knowledge on my part I guess ut I will find the solution and report back in due course.

B.D. Golant

21 May 2006, 2:08 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Zen Cart 1.3 & Flash

Um, if the file is located at:

http://open-source-systems.com/images/slideshow_as2.swf 

... then why are you using the following path to it?

"../images/slideshow_as2.swf"

".." denotes "go up a directory". I think you should really be saying ```html
"images/slideshow_as2.swf"

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 May 2006, 2:45 AM
#7
ben_golant avatar

ben_golant

New Zenner

Join Date:
May 2006
Posts:
38
Plugin Contributions:
0

Re: Zen Cart 1.3 & Flash

DrByte:

Um, if the file is located at:

http://open-source-systems.com/images/slideshow_as2.swf

> ... then why are you using the following path to it?
> ```html
"../images/slideshow_as2.swf"

".." denotes "go up a directory". I think you should really be saying ```html
"images/slideshow_as2.swf"


Oops - sorry - too stupid - copied and pasted the wrong code when I replaced the absolute with the relative - it now works like a charm. Thanks DrB!

B.D. Golant