Results 1 to 10 of 31

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Why won't Flash using XML file load images?

    If I can get flash swf to display, why can't I get images called from an XML file to load?

    Location - path ?

    Dimensions ?

    Suggestions? Explanations?



    thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Why won't Flash using XML file load images?

    You most likely haven't set the correct path for the images.
    I believe flash generally treats the image path as relative to the folder where your swf is located.
    .
    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
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    thanks Doc, that's what I thought too - I put copies of the images in several locations hoping it would find it. not so.

    My fear was you were going to say that ZenCart won't allow Flash swf to use the XML file to id the images and location. Not solved and have been trying a variety of Flash samples using different XML approaches.

    Your help appreciated. Just wish I could figure this out.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Why won't Flash using XML file load images?

    Have you tried turning on some alert() debugging in your flash object to have it tell you what it's looking for and what it's finding?

    What's the URL?
    .
    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
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    thanks Dr. -

    url: www.elephantrealestate.com

    the location will be obvious - there is a big gaping hole where the flash movie should be... what is weird is that buttons display but not the background for the swf.

    I can't figure out how to set debugging from the .fla or .swf ... I'm not that adept, I just used some free templates floating around.

    I have had other flash working - just not with the XML.

    I put the images in many different places.

    I changed permissions for the folders and files.

    The swf does work using Flash reader. (I thought maybe it was image dimensions but since it works with different sized images I don't think that is it)

    The mystery (and misery) continues.

    Is using XML for image calls compatible with ZenCart?

    THANKS!!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Why won't Flash using XML file load images?

    Quote Originally Posted by wasana View Post
    Is using XML for image calls compatible with ZenCart?
    Zen Cart doesn't care what you're doing inside your flash object to display images. Doing that is strictly up to you and your HTML which launches the flash object.


    Launching your flash object directly seems to work:
    http://www.elephantrealestate.com/fl...ic_gallery.swf

    So, something might be wrong with the way your JS is launching it.
    Or maybe the way you're specifying the xml file is wrong, or your path to it is too specific or not specific enough, etc.
    I suspect it's not finding the xml file correctly, or it's getting confused by whatever image paths you have in your xml file, vs their relativity to your site root vs the location of your flash script.
    .
    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
    Jul 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Why won't Flash using XML file load images?

    Quote Originally Posted by wasana View Post
    If I can get flash swf to display, why can't I get images called from an XML file to load?
    Quote Originally Posted by DrByte View Post
    You most likely haven't set the correct path for the images.
    I believe flash generally treats the image path as relative to the folder where your swf is located.
    I had the exact same issue and read thru this thread when DrByte just had it right all along. It is a path issue.

    Example of a solution in flash AS2
    Create a folder located in the root of your site and call it flash
    In the folder will be your xml file (images.xml), your swf (slideshow.swf) and a folder with pictures (swf_pix).
    You need to change the path in 2 files:
    1- in your fla file look for
    xmlData.load("/RelativePathTo XMLfile");
    Example below
    xmlData.load("/flash/images.xml");
    Then publish your swf.
    2 - in your xml file
    it is the relative path to your pictures.
    <image>/flash/swf_pix/pic1.jpg</image>
    <image>/flash/swf_pix/pic2.jpg</image>
    Then upload the folder to the server. Voila!

    Peace-

 

 

Similar Threads

  1. My images won't load
    By Yoga BHC in forum General Questions
    Replies: 1
    Last Post: 4 Oct 2009, 02:30 PM
  2. XML file to feed my flash script ...
    By nixonmg in forum Basic Configuration
    Replies: 0
    Last Post: 19 Nov 2008, 10:56 PM
  3. Flash: Unable to load Images from other subdomain
    By Robd75 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 5 Aug 2008, 09:02 PM
  4. Images won't load
    By dinojohnb in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 29 Nov 2006, 02:07 AM

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