Skip to main content
Participant
February 7, 2007
Question

Fade Dynamic Text

  • February 7, 2007
  • 12 replies
  • 699 views
I am trying to load 3 strings from an outside source of text to my SWF and then fade them in and out (one at a time). I have been trying to do this using a TXT file, but I am open to suggestions.

I have put a dynamic text box inside of a movie clip (or two) so that I might be able to fade it. I have been successful in fading and switching out the proper text, but the text formatting will not work and you will see a '<BR/>' in the middle of the text.

I have also been successful in switching out the proper text with the proper formatting, but without the fading.It seems like a 'level' problem.

Is it possible to have all 3 working together??

Thanks for your help!!

I have used a million variations and locations of this code, but here is the main chunk of code that I have been using:

This topic has been closed for replies.

12 replies

kglad
Community Expert
Community Expert
February 8, 2007
here's your corrected file. there were numerous problems the most serious of which was a failure to embed the characters that were to be displayed.

http://www.glastien.com/Files/myfla.fla
Known Participant
February 7, 2007
Okey heres the fla. You can download it from this server...

http://skickafilen.se/download.jsp?fileid=YRxeb6GdYt4qsKkYGLW2

Thank you for all your help.

J
Known Participant
February 7, 2007
okey. send me a privat message with your email and I´ll send it to you. Tanx!
Inspiring
February 7, 2007
He means provide a link to a zip file containing the fla file. Most of us here will simply mod if the file and then tell you what to do to fix the problem.
Known Participant
February 7, 2007
The textfield that is linked is the one inside GraphicClass (contact) and is called textfield2_txt). contact is placed inside a MovieClip and then on stage. The code is placed on textfield2_txt:

var loadedText:LoadVars = new LoadVars();
loadedText.onLoad = function(success:Boolean) {
contact_movie.contact.textfield2_txt.text = "Name"+this.name;
};
loadedText.load("mytext.txt");

What do you mean with "post a link to the minimum fla file contents"

kglad
Community Expert
Community Expert
February 7, 2007
post a link to the minimum fla file contents that shows the problem and specify the location of your textfield if it's not obvious.
Chaz03Author
Participant
February 7, 2007
I had already embedded my font.
Known Participant
February 7, 2007
The problem is that the animation works fine, but the text is not displayed when you test the movie. What I have don is to create a GraphicClass (called contact) with the TextField(textfield2_txt) inside. Then placed it inside a movieclip(contact_movie) and made a mask that reveals the textfield after 5 frames. Then I have placed it on the stage. No text is shown when published...
kglad
Community Expert
Community Expert
February 7, 2007
you don't have to embed the font with actionscript as long as your not assigning a textformat object to your textfield with actionscript. what's the problem?
Known Participant
February 7, 2007
Okey. I´ve embedded the font for the actual textfield on the properties bar. Do we have to do it as a script to make it work? Else I don´t know what I´m doing wrong...