2、ethistimeIamusingamaseparatedfile,likethis:aa,aah,aahed,aahing,...,zymurgy,zyzzyva,zyzzyvas andIamembeddingitinthesameoldport flash.utils.ByteArray; // assuming that e of your text file // and it's stored in the same directory of your flash file [Embed(source="imeType="application/octet-stream")
3、] public class embedded_text extends ByteArray { public function embedded_text() { } }} Noainfileeyouhavetoport flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldType; import flash.text.TextFormat; import flash.events.Event; public class porting the text file var b
4、edded_text = nebedded_text(); // creating a neat var text_format:TextFormat = neat(); // the array aking it an input text text_field.type=TextFieldType.INPUT; // defining its size and position text_field.x=20; text_field.y=20; text_field.at text_field.background=true; text_field.
5、text="at.color=0x000000; text_format.size=24; text_field.setTextFormat(text_format); // splitting the text file removing the mas "," // and inserting words into the array words_array=words.toString().split(","); // listener for the text to change text_field.addEventListener(Event.CH
6、ANGE,on_input); } public function on_input(e:Event) { // looking for the position of the text field content // into the array of words var position:int=word12下一页[感谢阅读这篇文章,..,]s_array.indexOf(text_field.text); if (position>-1) { // if the ethinginthetextareaandifitsavalidname="src"