xml - 我的 xml 文件已加载到 swf 但在我将 swf 嵌入 html 页面时未加载
问题描述
我的 xml 文件已加载到 swf 但当我将 swf 嵌入 html 页面时没有加载任何帮助?
var data1:XML = new XML();
data1.ignoreWhite=true;
data1.load("foods.xml");
data1.onLoad = function(success){
if (success){
name_txt.text = data1.firstChild.childNodes[0].attributes.name;
count_txt.text = data1.firstChild.childNodes[0].attributes.count;
type_txt.text = data1.firstChild.childNodes[0].attributes.type;
}
}
解决方案
推荐阅读
- sails.js - 将 Ltijs 集成到现有的 Sails 应用程序中
- decimal - 哈佛马克 1 个十进制数字
- r - R包中加载的全局变量
- sql-server - 更新存储在 SQL Server 更新中的 XML 列中的 XML
- jquery - 将本地存储的图像上传到服务器,无需插件文件传输cordova
- javascript - Node vs React:通用javascript模块中的函数
- python - 我可以通过 django 视图访问装饰器中的上下文对象吗
- javascript - AJAX 表单从动态生成的数据行中提交错误的行
- python - Shutil - DS_store 文件阻塞移动的问题
- swift - 为什么在 View 未更新时使用 @State var