all groups > flash actionscript > september 2004 >
You're in the

flash actionscript

group:

multiple scrolling text boxes



multiple scrolling text boxes ondavon
9/6/2004 6:59:25 PM
flash actionscript: I have 50 different pages in a movie with 12 needing scrolling text boxes. I
have the script for the .scroll working but how do I assign different text to
each one? No matter what text I insert say in page 2 scroll box, it previews
with the text from page 1. Any help would be appreciated. I know this can be
done but not seeing it.
Re: multiple scrolling text boxes kglad
9/6/2004 8:56:14 PM
give each textfield, that you want to have unique text, a unique instance name.
use your textfield's text property to assign text:

tbox1.text="this is the text in my textfield with instance name tbox1";
tbox2.text="this is the text in my textfield with instance name tbox2";
etc
Re: multiple scrolling text boxes ondavon
9/7/2004 12:38:49 AM
Thanks for your reply and let me clarify, I just save my paragraphs with .text,
import them in each scroll box and in the text properties under dynamic, put
the instance ----.text correct? Sorry first time---is there anything I need to
do in the script ? if not, could one script with the same set of buttons work
for all pages? assigning the instance of .text? Thanks
Re: multiple scrolling text boxes kglad
9/7/2004 1:28:25 AM
one of the textfield instance names is tbox1, not tbox1.text. text is a
property (its text content) of a textfield just like _width is its width. you
can assign the text property to a textfield by using the statements i listed
above. you can use the same textfield in different keyframes and assign
different text to the same textfield is each of the keyframes.
Re: multiple scrolling text boxes ondavon
9/7/2004 1:19:45 PM
makes sense but doesn't work yet....Maybe it's because I have more than one
script doing the same thing with different instances ... should I use one
script and _root for all windows along with the same set of up and down buttons
and just assign the different instance names for the different text fields???
Thanks again...I'll try that

Re: multiple scrolling text boxes kglad
9/7/2004 2:39:36 PM
i'm not sure what you should do because i don't know what effect you're trying
to achieve. if you're still having trouble you could zip and upload your fla
and i might be able to tell from that what you're trying to do.
AddThis Social Bookmark Button