Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Embedding Flash with xml data

    Hi

    I am trying to place a flash mp3 player in a products page that runs off an xml file. I've uploaded the flash files, mp3 files and xml file to the server in includes/modules/custom/ - not sure if that's the best place but I've referenced that path in the HTML anyway so I think it should still work.

    The flash player is appearing but it looks like it's failing to load the xml, which is in the same folder as the flash file and is referenced as such in the xml file.

    I've used the flash embed code generated by Dreamweaver CS4 to embed the flash.

    The page is here
    http://www.radiationsun.co.uk/shop/another-test/fanfare

    Please forgive the awful look, haven't got around to working on the appearance yet!

    Thanks for any assistance / ideas

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Embedding Flash with xml data

    I'd be inclined to put the .xml file in the root of the site, not under the includes folder.
    .

    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
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Embedding Flash with xml data

    Hi thanks I'll try that.

    I think I've spotted a potential problem though - I'm trying to get the product page (which is the one in product_info_music) to include within the head tags the line:

    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

    I was doing this in the early hours of this morning and thought I'd done it, but in fact it is showing in the source code:

    <script type="text/javascript" src="includes/modules/pages/product_music_info/jscript_flash.js"></script>

    which is the file I placed the first snippet in if I was reading the instruction correctly, perhaps not.

    So I'm not sure if this is actually working?

    Thanks again

  4. #4
    Join Date
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Embedding Flash with xml data

    I'm not sure I expressed myself clearly above. What I'm trying to say is I'm expected the head to show:

    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>

    not an include for the file that contains this, that seems like it wouldn't work. I spent some time trying to figure out how to do this, maybe I was going in the wrong direction.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Embedding Flash with xml data

    Rename includes/modules/pages/product_music_info/jscript_flash.js to .php instead of .js
    .

    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.

  6. #6
    Join Date
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Embedding Flash with xml data

    Hi

    Thank you so much, that has helped. The flash player is now showing the playlist but not actually playing anything!

    It's like one painful step at a time.

    I've moved everything to the root folder but still not a peep out of it. I'm getting some functionality out of it.

    Can't think what else could be the problem. Should I try different embedding code?

  7. #7
    Join Date
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Embedding Flash with xml data

    Forgot to say, I've also removed this file from the server for the Media Manager module, in case it was causing a problem, but hasn't helped anything

    includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_modules_media_manager.php

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Embedding Flash with xml data

    lol - so, the problem is no longer with getting the flash to run, but rather to get the flash to work as you had intended it to.

    You've likely got it looking in the wrong path.
    If you look at the apache server access logs or better yet, the error logs, they may tell you what files it's rejecting you for due to invalid paths, and that might give you a clue to what you need to change in your flash code.
    .

    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.

  9. #9
    Join Date
    Sep 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Embedding Flash with xml data

    Yes, one problem then another. I have just thought however to test a regular html file with the flash embedded on the server and that doesn't work in just the same way so there evidently is a problem in the flash file even though it works locally!

    Not immediately sure how to check the server logs, I'm embarrassed to say! I will find out.

    thanks for the help

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Embedding Flash with xml data

    What's the file structure on your local site, and how does that differ from the live site? That may give you some clues.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Integrating Zen Cart with XML feed? or with Tech Data
    By ahreno in forum General Questions
    Replies: 4
    Last Post: 28 Apr 2009, 09:20 PM
  2. Embedding flash in sidebox
    By jvanree in forum General Questions
    Replies: 4
    Last Post: 18 Dec 2008, 01:14 AM
  3. Embedding Flash Video at Top of Page
    By mdlesk in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jan 2008, 01:11 PM
  4. Flash with XML hack: could use an iFrame
    By websitebob in forum General Questions
    Replies: 0
    Last Post: 29 Aug 2007, 11:00 PM

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