PDA

View Full Version : dynamic text


ien
08-19-2006, 05:57 PM
hi,

I tried to load in text dynamically but when I test movie, the text didn't appear. I used the following codes var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean){
if (success){
textfield.text = this.txt;
} else {
trace ("error");
}
}
my_lv.load ("text.txt");

I tried to embed but still couldn't work. What could be the problem?

Cota
08-19-2006, 06:34 PM
Whats the text file look like?

ien
08-19-2006, 08:13 PM
hi,

thanks... just managed to resolve the problem but another popped up. I was trying to create a mask to mask the dynamic text. When i test movie, the dynamic text doesn't show. It shows without the mask... i tried to mask other items on the stage. masking works but why not on dynamic text?

CyanBlue
08-19-2006, 08:21 PM
Howdy and Welcome... :)

You do need to embed the font to mask or animate...

FYI, different topic deserves individual thread... ;)

ien
08-19-2006, 08:29 PM
hey!

thanks... i have embedded but still doesn't work...any other clues?

Flash Gordon
08-19-2006, 10:36 PM
Howdy and Welcome... :)

You do need to embed the font to mask or animate...

FYI, different topic deserves individual thread... ;)
Let me just add that the mask has to be dynamic if you want to mask a dynamic text and not embedded the font. and it does have to be embedded if you want to rotate the text. Simply moving, no you don't have to.

Just clearing that up if there was any confusion.

:)

ien
08-19-2006, 11:00 PM
million thanks!!!!

I couldn't get it working by embedding. instead, it works when i make the mask and the dynamic text into 2 separate movie clips and add the following code text_mc.setMask(mask_mc);. wonder why the normal masking can't work??? but anyways, it works!!!

silverfish
12-15-2006, 05:26 AM
Thanks from me, too. FG, you saved the day!!!! I had been puzzling over this problem, then I found this thread using the search.