flashvars 帮助,动态加载 XML 文件
嘿,我有一个加载静态 XML 文件的 Flash 影片,该脚本看起来像
list = "list.xml";
var listXml:XML = new XML();
listXml.ignoreWhite = true;
listXml.load(list);
我希望能够动态更改此“列表”变量,也许使用 flashVars。
像这样
var flashvars = {
xmlpath: "list.xml"
};
知道如何去做吗?
Hay, i have a flash movie which loads a static XML file, the script for this looks like
list = "list.xml";
var listXml:XML = new XML();
listXml.ignoreWhite = true;
listXml.load(list);
I want to be able to change this 'list' variable dynamically, perhaps using flashVars.
like this
var flashvars = {
xmlpath: "list.xml"
};
Any idea's how to go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://www.actionscript.org/forums/showthread.php3?t= 185370
AS3 将 FlashVars 传递给加载的 swf
如果您有一些代码已经,请分享,以便我们为您提供建议
http://www.actionscript.org/forums/showthread.php3?t=185370
AS3 Pass FlashVars to loaded swf
if you have some code already, please share, so we could advice you
flashvars 属性可在 LoaderInfo 对象的parameters 属性中访问。
检查这篇文章:
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr。 html
The flashvars properties are accessible in the parameters property of the LoaderInfo object.
Check this article:
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html