1,new flash doc
2,copy :
myData = new LoadVars()
myData.load("data.txt")
myData.onLoad = function(succes){
if(succes){
name.text = this.name
} else trace ("Error loading data")
}
to frame action
3,add dy txt and named name
4,new data.txt doc write name=tojava and save it in the same dir with the swf file
5 enter+ctr
6 you can see tojava in the flash player
博客介绍了在Flash中加载文本数据的操作步骤。先创建新的Flash文档,复制代码到帧动作,添加动态文本并命名,创建data.txt文档写入内容并与swf文件放同一目录,最后按特定组合键,就能在Flash播放器中看到相应内容。
31万+

被折叠的 条评论
为什么被折叠?



