load data from (txt/ table and so on)

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

阅读更多
个人分类: BLOGS
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭