flash text replace
- Started
- Last post
- 6 Responses
- ldww
i know this has been asked before, but i tried searching for it and could not locate it. i even remember someone posted a fla on how to do it.... http://www.group94.com select the dates on the lower left, notice how the old text is like scooted out with the new text... how is that done?
- unfittoprint0
textvar="this text here"
soemthing like
myArray=new Array()
myArray=textvar.split(" ")
for (i=0;i<myArray.length;i++){
textBox.text+=myArray[i]
}You should create some sort of setInterval within the loop to delay each new word inserted in the textBox.
- brooke0
Somebody, please, teach me flash.
- ldww0
could
textvar="this text here"
be
textvar="textfile.txt"?
- unfittoprint0
THe ONLY book that matters when it comes to Flash. Read this and you will be the coolest girl in you neighborhood.
- ldww0
i wanna be the coolest girl in town too!
- unfittoprint0
Damn. Newstoday formats some of the text (search the syntax for the for loop and you'll understand. i should be less than myArray.length() )
yes, you could something like:
textvar= new LoadVars();
textvar.onLoad=function(successs...
if (sucess){
//insert for my for loop here and the array object.
}else{
trace ("daaaaamn!!!")
}
}textvar.load("text.txt")
stop()