Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default 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="clsid27CDB6E-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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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:
    Code:
    <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.

  3. #3
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3 & Flash

    Quote Originally Posted by 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:
    Code:
    <param name="allowScriptAccess" value="sameDomain" />
    DrB - thanks for the suggestions - changed the code as you suggested to :


    <object class="specials" classid="clsid27CDB6E-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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  5. #5
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3 & Flash

    Quote Originally Posted by 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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Zen Cart 1.3 & Flash

    Um, if the file is located at:
    HTML Code:
    http://open-source-systems.com/images/slideshow_as2.swf
    ... then why are you using the following path to it?
    HTML Code:
    "../images/slideshow_as2.swf"
    ".." denotes "go up a directory". I think you should really be saying
    HTML Code:
    "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.

  7. #7
    Join Date
    May 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Zen Cart 1.3 & Flash

    Quote Originally Posted by DrByte
    Um, if the file is located at:
    HTML Code:
    http://open-source-systems.com/images/slideshow_as2.swf
    ... then why are you using the following path to it?
    HTML Code:
    "../images/slideshow_as2.swf"
    ".." denotes "go up a directory". I think you should really be saying
    HTML Code:
    "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!

 

 

Similar Threads

  1. No swish or flash on zen cart templates?
    By shawnar80 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 May 2010, 09:39 AM
  2. Flash Video Player for zen cart?
    By SandraSD in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 10 Apr 2010, 01:05 PM
  3. Zen Cart with Flash?
    By JonnyD in forum General Questions
    Replies: 1
    Last Post: 18 Feb 2009, 11:57 AM
  4. Adding flash video to Zen-cart
    By dionidis in forum General Questions
    Replies: 2
    Last Post: 10 Jan 2009, 12:50 PM
  5. Zen Cart and Flash CS3
    By nmeuvdast8 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 17 Feb 2008, 07:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR