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