PDA

View Full Version : Must be the right place to put this ? Scrollbox Flash MX


feeverte
03-02-2006, 05:47 PM
Ok. Start again.
I need someone to explain me in plain english what is the best way to have scrolling text box. I use Flash MX. I did a scrollbox using components and custumised the elements. It works fine. Problems start (pretty soon) As I want to use this box for different text. I dont seem to be able to use it more than once (??) How can I duplicate it if cut and paste and changing instance name doesnt work? Do I have do do the same process from scratch for each box? I also would like to call in text from external files.
I just thought to mention that I have a main index page that LoadMovies to level0. All the nav is in place so I truly am after a script for scrolling that doesnt rely on relative paths.
But then again I may just missing some basic point about duplicating or reusing the same box.
Pls help.

Ricod
03-05-2006, 05:55 PM
I never worked with components, but a key point would be that you need to recalculate number of lines etc. once the text changes. Take a look at updateAfterEvent() , I think it might fit your needs.