大乃伊:我想在FLASH中加载外部文件的信息但是不能成功,应该怎么做呢?flash中的代码是这样写的
来源:百度文库 编辑:高考问答 时间:2024/05/06 11:02:46
flash中的代码是这样写的:
ar features_lv:LoadVars = new LoadVars();
features_lv.onLoad = onText;
features_lv.load("safetyfeatures.txt");
trace(features_lv.str);
文本文件“safetyfeatures.txt”是这样写的:
&str=abc
但是运行后却提示说“undefined”
这个是怎么回事呢?
ar features_lv:LoadVars = new LoadVars();
features_lv.onLoad = onText;
features_lv.load("safetyfeatures.txt");
trace(features_lv.str);
文本文件“safetyfeatures.txt”是这样写的:
&str=abc
但是运行后却提示说“undefined”
这个是怎么回事呢?
undefined在JS里面就是null,
请求test.asp时,输出
undefined //此undefied,用typeof undefined,得到的结果为真,它是关键字代表无效的值
请求test.asp?key=undefined时,输出
undefined//代表字符串"undefined"