How to use an embedded text file in Flash
2009-10-20 00:00:00 来源:WEB开发网The opportunity to win up to $7000 with “Word Play” Flash Game Contest ends in 20 days, and I already showed you how to embed a text file in Flash.
Now it’s time to make something useful out of it.
In this script, you will learn something about dynamic text fields styling, input text fields and arrays.
All in one.
First, and seen in How to embed a text file in Flash post, you need to embed the text file… this time I am using a comma separated file, like this:
aa,aah,aahed,aahing,...,zymurgy,zyzzyva,zyzzyvas
and I am embedding it in the same old way:
package {
import flash.utils.ByteArray;
// assuming that words.txt is the name of your text file
// and it's stored in the same directory of your flash file
[Embed(source="words.txt",mimeType="application/octet-stream")]
public class embedded_text extends ByteArray {
public function embedded_text() {
}
}
}
- ››user-agent查询方法
- ››TOscilloscope 仿Windows任务管理器CPU使用记录组...
- ››How to Make a Dark, Post-Apocalyptic City Illu...
- ››tomcat不支持TCP/IP6协议
- ››tomcat 下的 url 大小写问题
- ››tomcat6.0.28 内存溢出PermGen Space
- ››Tomcat 系统架构与设计模式,第 2 部分: 设计模式...
- ››Tomcat 系统架构与设计模式,第 1 部分: 工作原理...
- ››How to (almost) create your own iPhone OS fram...
- ››TOMCAT和IIS整合
- ››userinit.exe出现异常之解决方案
- ››Tomcat性能调优方案
赞助商链接