View Full Version : Dynamic text box loses text
PreCoder
04-04-2005, 02:14 PM
Hi all,
Okay my problem is I have a dynamic text field which reads in text from notepad file(.txt), I have a scroll bar I coded myself, to scroll the text field. The scroll bar works fine, and everything shows up and is able to be scrolled when viewing the .html & .SWF respectively.
But when I get this movie to load dynamically from my main site, all I see is my scroll bar no dynamic text field?? I don't even see the outline of where the text box should be ?? any ideas, cause I really need help.
Thanks to all who try!
badlorry
04-04-2005, 02:28 PM
could be a problem with embedding your font dynamically, and where and when it is embedded and preloaded.
PreCoder
04-05-2005, 04:20 AM
Okay, but could you explain that a little more, not sure what I am meant to do to fix it??
PreCoder
04-05-2005, 07:42 AM
I've been playing with this a bit more today. I have made a discovery. When I make the text box selectable, and run the .SWF from the main movie I still don't see any text, but when I put my cursor over where the text box should be, I get the text cursor come up (and when I right click I get the text menu eg cut, copy, paste, delete), so I tried to grab some of the text to copy it, and paste it in notepad, I was able to even though i could see anything in flash.
So I now know that although I can't see my textfield, it is there, just not showing any text. Please help !
badlorry
04-05-2005, 10:17 AM
sounds to me like you have a font symbol that isn't embedded....
if you are dynamically adding text, ie. using createEmptyTextField(), then make sure that you have embedded the particular font symbol in the library, and then reference it using textField.embedFont = true while creating the textfield. Also ensure that it is exported in the first frame of the movie, or suitably preloaded.
if you are simply placing the textfield on the stage, and making it dynamic, ensure that you have the font set embedded in the textfield itself by clicking on the 'Character...' button in the textfield property inspector.
PreCoder
04-05-2005, 12:48 PM
Well, you learn something new everyday. I can't thank you enough, these forums are fantasic. Thanks again worked like a charm.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.