Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embedding a text scroller

Status
Not open for further replies.

curve27

Instructor
Feb 22, 2001
3
US
I'm having the hardest time with this...

I have moved well beyond my level of understanding with this one..


I have a small flash file with a text scroller. You can see it here:

what i'd like to do is embed this guy in a "main" movie - so one button on my screen says "history" and when you click on it, it calls open this movie (history.swf)


I'm loading the movie by using the command: on (release)loadMovie ("history.swf", "holder");


- where holder is a movie clip that just sits there and waits for me to load things into.


It works great - but the text scroller does not show up. Eveything else does, but the scroller is not visible.


To see, take look at: and click "history"



I'm loading the text in the scroller from an external text file - using the command:


loadVariablesNum("./text.txt",0);


I have a feeling that the 0 level is the problem, but i don't know what to do - when I change it to 1, nothig shows up in either movie.

Thanks in advance
 
the scroller shows up just not the text..What ever your actions are that load the text into the movie by it self without being loaded into the main movie, just .holder before the previous action..So say your movie clip that holds the scroller is called "textholder" in the history.swf movie..

root.holder.textholder.
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
have you made sure that your text starts with the variable of the textfield (i.e. as you might know your textfield that should be filled by external text has to have a variable e.g. "scrolltext")

the textfile should start like this

scrolltext=blahblahblahblah


in the beginning you have to put the variable followed by a = and than the text (NO spaces before the = )

the command for loading the file into the film:
loadVariablesNum("externtext.txt", 0);

the text has to be in the same directory as the swf, exept you use the path to it instead of the way i did it in this example
(i.e. loadvariablesnum("file\subfile\externtex.txt),0);


i just thought that it would be good to eliminate all possible kinds of sources of error


regards firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top