ASP.NET MVC3,带有XML Config引用图像路径的Flash滑块

时间:2011-06-29 19:05:18

标签: xml flash asp.net-mvc-3 filepath

我正在尝试使用带有ASP.NET MVC3的flashmo图像滑块,但遇到了Flash滑块的XML配置文件的问题... XML文件使用了我想要使用的照片的直接路径。例如:

<photo>
    <filename>./photos/slider_4_text.jpg</filename>
    <description><![CDATA[<p class="subtitle">Photo title four goes here</p><p>Mauris vestibulum felis eget tortor. <a href="http://www.flashmo.com" target="_blank">Praesent mattis varius quam</a>. Vestibulum ullamcorper ipsum nec augue. Vestibulum auctor odio eget ante. <span class="highlight">Nunc commodo, magna pharetra semper vehicula, dui ligula feugiat elit, et euismod nunc orci ut libero.</span></p>]]></description>
    <transition sequence="first" direction="down" slice="9" effect="easeInOutQuart"></transition>
</photo>

我已经查出了与我类似的另一个问题(http://stackoverflow.com/questions/1116732/flash-xml-config-file-problems-with-asp-net-mvc)但我觉得像这样并不直接适用于我的情况。

有人可以准确地指出如何将我的XML配置文件指向我图像的正确位置吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

我刚刚切换到jQuery驱动的EasySlider

但是,如果有人想知道此问题中所述问题的解决方法,您可以直接从Web根目录引用XML文件中的内容。例如/Content/Themes/red/images/image_1.xml