PDA

View Full Version : Loading Text Files and scrolling them...


nightkev
05-19-2004, 07:01 AM
In Flash MX I was able to take a dynamic text bar, load text files into it, attach the scrollbar component to it and have it scroll dynamically based on how much copy was in the text file.

The scrollbar component no longer exists in FlashMX 2004 Pro and I am looking for a way to scroll my dynamically loaded text files.

Please note that I am loading text files into the dyanmic text field and need it to scroll based on how much content is in the text file.

Currently I am using the -- loadVariablesNum ("textfile.txt",0); -- to load my text into a dynamic text field.

Any help would be great.

farafiro
05-23-2004, 06:12 AM
u can do to MM's site, download the UI Conponent, set 4
it has the scrollBar component
else use the TextAreaor TextInput components, will scroll auto

avelives
09-23-2004, 02:27 PM
Where exactly can i download the scroll bar compnent from ??
I have looked on macromedias site but it seems i have to buy it ??

farafiro
09-23-2004, 02:33 PM
if u downloaded the 7.2 update u will find it in the components panel

avelives
09-24-2004, 08:26 AM
ok but i was trying to avoid the MASSIVE 66mb download , oh well :eek:

nsmdesigns
09-24-2004, 01:50 PM
Just went through the same problem the last few days. I found that MX 2004 is now favouring the use of the textArea component.

It's one of those things where it has made harder things to do now easier, but at the same time, made things that were relatively easy to do in MX much harder. It doesn't help that the documentation for 2004 is sketchy at best.

This tutorial helped me out quite a bit:

http://www.actionscript.org/tutorials/beginner/XML-Formatted_Content/index.shtml

avelives
09-24-2004, 04:02 PM
I decided to just make the text static in the end and use the scrollpane it was much easier.
And its for my portfolio site so i dont mind updating the text in flash, on the rare occasions that will happen.

Thanks anyway for that tute ill do it at some point when i can be bothered as id like to know how to do this in mx 2004.
On a final note with TextArea component can you still customise the look of the scrollbar etc as before ??
cause i HATE the cheesy look of the basic one :D

avelives
09-24-2004, 04:08 PM
Nope scrap that LOL :o

I just found out you cant edit the look of the scrollpane in flash anymore ??
OR can you ?? I may just be missing it......
If you cant anymore ill just make my own one i think itll be so much easier...

i like the new flash 2004 but boy have the messed around to much with the components or what !!

EDIT: Its ok i found out how to do it, sorry my brain has gone on holiday today !