This content has been marked as final. Show 4 replies
It's weird - the only thing that will show up is the text border and I gave the text a color and the only thing that shows up is the border. I also tried the setNewTextFormat idea instead setTextFormat.
It can take time to attach a clip from the library so you really should wait to ensure that the attached clip is instantiated before trying to do something with it. I don't think that is your problem here though since you can see the outline of the textbox. I would use setNewTextFormat also but what I believe is happening is that you have set a timeline mask for the text clip and don't have embedded fonts so they don't show up. So either embed the fonts or use setMask to se the mask dynamically (or both) through AS and it should show up.
I have tried to embed the fonts like this:
depth = _root.mc_scroll_group1.masked_movie.scrollpage['show_db_list' + i].mc_show_plate.getNextHighestDepth();
_root.mc_scroll_group1.masked_movie.scrollpage['show_db_list' + i].mc_show_plate.createTextField("mytext"+i,depth,10,30,150,40);
_root.mc_scroll_group1.masked_movie.scrollpage['show_db_list' + i].mc_show_plate["mytext"+i].embedFonts = true;
I have also tried to embed all Upper and lower case fonts manually w/ no luck.
Still trying to make the dynamic mask work.
For the setMask to work, the text must be contained within a movie clip. You cannot dynamically mask the textfield itself AFAIK. Also, if you do place the textfield in a clip and use setMask, do NOT use the embedFonts = true if they are not really embedded.
Go to the library panel in the upper RHC and click the dropdown and click on "New Font". Select the font you want to embed from the popup window and give it a name (such as "myfont").