![]() ![]()  | |
您可以查看将文本从外部文本文件加载到动态文本字段中的动作脚本。该脚本使用 LoadVars 动作将 safetyfeatures.txt 内容加载到 newFeatures 文本字段中。
该动作脚本如下所示:
// Load text as variable and assign it to dynamic text field
Features_lv = new LoadVars();
Features_lv.onLoad = onText;
Features_lv.load("safetyfeatures.txt");
function onText() {
  newFeatures_txt.text = Features_lv.safetyFeatures;
}
  ![]() ![]()  | |