1) I would not put the script within the body of the document (put it in the head)
2) use a tool that shows 404 errors of requests*
3) I would use xml to provide the swf with the list of images to show (if you simply must pass all the images via flashvars then you can but its gonna get chaotic)
4) Your alt content should be in the target div (flashDiv in your case). Then if the browser has js enabled and swfobject checks version is correct (above 9) the alt with flashDiv is replaced
This is not truly a swfobject issue more of a flash authoring general issue, this question does come up alot in various guises
point 2 is likely the cause the images not being found. It would be helpful for others wishing to help you if you could provide a link to your project (asp code clouds the issue your asking)
Look at the path being output, compare with where the image actually is the correct url of the image (make required changes - serverside ie ASP)
I would use absolute image paths as it makes life easier (or does for me - but then I would also be using xml)
you could set a js var for customer path and assign the ASP var to it & if the images are sequential use a for loop to set the flashvars (check also that your not missing a '/' with the paths -- you dont have a slash after CustomerPath but do after TemplatePath)
the expressinstall swf might need the TemplatePath var too (and reusing the asp short tag stuff is a touch messy you could set 2 js vars and reuse them accordingly)
if you are using relative paths then make the path is relative to the
On 13 September 2012 22:33, Patrice Cledo
<patric...@homes.com> wrote:
Hi All, I am trying to display a slideshow using swfobject 2.2.I need the slides path to be dynamic like s1image1="<%=CustomerPath%>template_files/slide1.jpg".s1image2="<%=CustomerPath%>template_files/slide2.jpg".I am using dynamic publishing. Below is how I tried to do that but it is not working.Hope someone can help me get out.
Please help me!!!!!!
<div id="SlideShow">
<div id="flashDiv"></div>
<script language="javascript" type="text/javascript">
var flashvars = {};
flashvars.s1image0="<%=CustomerPath%>template_files/slide1.jpg";
flashvars.s1image1="<%=CustomerPath%>template_files/slide2.jpg";
flashvars.s1image2="<%=CustomerPath%>template_files/slide3.jpg";
flashvars.s1image3="<%=CustomerPath%>template_files/slide4.jpg";
flashvars.s1image4="<%=CustomerPath%>template_files/slide5.jpg";
var params = {
menu: "false",
wmode:"transparent",
scale: "exactfit",
align: "left",
inshadow: "",
croppit: ""
};
var attributes = {};
swfobject.embedSWF("<%=TemplatePath %>/slidemc.swf", "AlternativeContent", "874", "206", "9.0.0","expressInstall.swf",false, flashvars, params, attributes);
</script>
</div>
<div id="AlternativeContent">
</a>
</div>
--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/swfobject/-/V487yTaMs0gJ.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.