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.
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
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
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.
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
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.
Don't see what you're looking for? Try a search.
|