PDA

View Full Version : Help with scrolling textbox


daveclark5
04-11-2002, 12:15 AM
I went throught the tutorial on this site about creating a scrolling text box, but I'm confused because its not working. I think I must have forgotten something. When I test the scrolling up and down, the text doesn't move. I'm thinking it might be a problem with the MC that has the frame actions for the scroll pacing.

Also, how do I format text that's in a dynamic text box to a specific size, font, leading, and color? Thanks for any help.

toke
04-11-2002, 01:24 AM
can you post your code? I have done the tutorials but run into no problem at all.

farafiro
04-11-2002, 08:31 AM
no, not the code...... post the fla

daveclark5
04-12-2002, 05:43 PM
The .fla is pretty big so I'll just describe what I'm working with, including relevant code. As per tutorial 29 in the Intermediate section, I created a dynamic text box, storing variable "text." I assigned "text" with a long string of copy. The up button is assigned:

on (press) {
_root.up = true;
}
on (release, releaseOutside, rollOut, dragOut) {
_root.up = false;
}

down is assigned:

on (press) {
_root.down = true;
}
on (release, releaseOutside, rollOut, dragOut) {
_root.down = false;
}

I have a MC on the stagewith 4 empty frames, and a final frame assigned:

if (_root.up) {
_root.test.scroll += 1;
} else if (_root.down) {
root.text.scroll -= 1;
}
gotoAndPlay (1);


The text box displays okay, just the up and down scrolling isn't working. I'd also like to format the text to a specific font, color and size.

pinkaboo
04-12-2002, 06:33 PM
I've just had the same problem, until I noticed that I didn't have the word wrap check box ticked (under text options). Could that be your problem too?

also proably your best bet to formatting the colour etc of your text, assuming that you mean to use many colours, sizes etc, is to tick that html option and add some basic html formatting to your dynamic text.

K

toke
04-12-2002, 06:42 PM
I'll answer about text formatting. First, do you have the html.txt? (similar to what Jesse had?) Open your notepad, and edit from that. Do you know HTML? If not, here is what you can do..

Create a dynamic text box and make sure that you click on the html tab and multiline. type in your text with any fonts, size, and color. then click CTRL+Enter to test the movie. While you are on the testing screen click on Debug menu and select List All variables. Copy everything from ...

<P ALIGN=></P>

However, you need to remove all the "\" after you paste it to notepad.

too complicated?

toke
04-12-2002, 07:05 PM
ok. to answer about your buttons not working. make sure that your dynamic text box is smaller than the text you want to scroll and that the html tab is checked.

If you need a file, just tell me.