first post on here!
I'm fairly new to flash so sorry for my ignorance in advance. (only been using flash cs3 for a few months, mainly self taught)
I'm currently trying to add an autoscrolling text box. The text that will display in the box will be variable. I want this text to then scroll left and right to display all the characters.
I have added a scrollbar from the components, but i want the text to scroll by itself rather than have to drag the scrollbar manually if the text string is too long.
How do i create the variable text entry?
How do i make that variable text scroll?
What im working on is a very simple game. After the into screen i want a box to ask for the names of two teams. The player types in the variables. The text entered is then displayed in the respective text boxes, IF the text is too long to all fit in the box i want it to autoscroll, if it fits then no scrolling is necessary.
you mean you want the text to scroll in a single line textfield like a marquee?
yup, just needs to scroll. But the text will change depending on the users input.
you'll need to encode that using a loop (like enterframe) that repeatedly adjusts the text property of your textfield, if the text overflows the textfield's width.