如何将数据从多个xml文件导入到单个swf文件 [英] How to import data from multiple xml file to single swf file

查看:71
本文介绍了如何将数据从多个xml文件导入到单个swf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在SWF文件中显示图像,因此在这里我想根据选择从不同的xml文件中读取图像.因此,如何动态更改给定swf参数值中的xml文件名(值).如何使用C#/Javascript将不同的xml文件中的数据读取到单个swf文件中?

Hi,
Am displaying the images in a SWF file, so here i want read the images from different xml files based upon the selection. So how to change the xml file name (value) in the given swf parameter value dynamically. How to read the data from different xml files into a single swf file, using C#/Javascript ???

推荐答案

这取决于实际的swf Gallery Player.这取决于它的实现方式.如果xml文件名是固定的,则只能更改其内容.实际上,您可以动态生成它.我想,您使用ASP.NET.这是一个示例,说明如何在服务器端生成XML: http://www.stardeveloper .com/articles/display.html?article = 2009031901& page = 1 [ ^ ].但是您需要使播放器重新加载xml.
如果使用参数将文件名提供给对象,则只需在客户端更改此DOM属性即可.但这还不够,因为这些值是在初始化时由Flash Player加载的.因此,更改属性将无效.因此,您要么必须在DOM中重建对象,要么尝试使用 swfObject的动态"加载方法 [< ^ ].
我建议您先查阅图库播放器的文档,以了解您的可能性.
It depends on the actual swf gallery player. It depends how it is implemented. If the xml file name is fixed, you can only change it''s content. Actually you can generate it dynamically. I suppose, you use ASP.NET. Here is an example, how to generate XML on server side: http://www.stardeveloper.com/articles/display.html?article=2009031901&page=1[^]. But you need to make the player reload the xml.
If the file name was provided to the object using a parameter, you can simply change this DOM attribute on client side. But this will be not enough, since these values are loaded by the flash player on initialization. So changing attribute will have no effect. So you either have to rebuild the object in DOM, or try using swfObject''s "dynamic" loading method[^].
I suggest you consult the gallery player''s documentation first to see what your possibilities are.


这篇关于如何将数据从多个xml文件导入到单个swf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆