View Full Version : loading tekst into flash from .txt file
Black_Lightning
April 30th, 2003, 08:31 AM
hi ppl i'm new here. Got a little question.
I'm having trouble with loading texts from a txt file outside flash. I done this a lot and it works out when i just load it into a textbox to which i've added a scrollbar.
Few days ago i tried to make a scrolling movieclip. i thought it would be easier for layout because i needed textboxes and pics on the same scrolling page.... well in theorie it would have been nice :-\ . I can't seem to load the textfile(s) when i put em on there.
Is there anyone that could give me some pointers on this?
thnx in advance
Black Lightning
Dravos
April 30th, 2003, 11:37 AM
You need to be more specific or post your F5 .fla file.
Search has a lot about loading from .txt files
Black_Lightning
April 30th, 2003, 12:37 PM
i'm gonna try to explain but it probly won't be clear (i'm not that good at explaining) so i'll post the fla tomorrow.
I know there are tutorials around bout loading the content of .txt files into a dynamic textbox. but most (if not all) of these tutorials make you load the content into a variable which is then read into the textbox. You can add a scrollbar to this to scroll through big texts. And make a movie clip out of it for easy use. I've done this succesfully so no problem there.
What i'm doing now:
Because of layout issues i gotta have pics and text in one scrollable area. So i made a movieclip with 2 textboxes and a pic on it. i added a scrollbar to make the clip move between two _y-values. and put a mask-layer over it so it looks like a real scrollbox. All of this is put into a movieclip for easy (re-)use. So far so good. but when i try to load the content from my txt files in here it won't work. Probly doing something wrong because it's a movieclip in a movie clip i think.
And there are no tutorials to be found (i'm looking at all tutorial sites/ flash forums i can find, but so far no luck..... 6 hours of search today only --> :crazy: )
Jubba
April 30th, 2003, 02:11 PM
make sure that the paths are correct.
also, if you are using a mask you have to make sure that you have embedded the font. in the properties window click the character button and select "embed all" or something to that effect.
Black_Lightning
April 30th, 2003, 02:47 PM
thnx very much for the pointer.... i'll try it asap (day after tomorrow, no school tomorrow yay)
no doubt that will be it, and if it isn't well i know where to post my fla then
(-:
Black_Lightning
May 2nd, 2003, 03:45 AM
can't get it to work....
i think i'm doing this path thing wrong....
guess i'm stOOpid :-\
anyway put a zip online of the fla and textfile i made to test it.
http://beestjeuhspage.tripod.com/scrollmovie.zip. sorry the link doesn't work directly, but that's tripod i'm afraid:-\ . copy and paste in the a browser window will work
hope someone can help me out
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.