Hello Glen, hey, that's it! I didn't know that it was required to do, with simple textfields created in authortime. Flash could not lost the formatting unless we specify, don't you think? =)
Thanks so much for you, my question is clear now! Fabio On Fri, Jan 16, 2009 at 1:47 PM, Glen Pike <g...@engineeredarts.co.uk>wrote: > Hi, > > You can do this each time you add text with AS: > > //Get the text format before you change the text. > var tf:TextFormat = myTextField.getTextFormat(); > > myTextField.html = newText; > > myTextField.setTextFormat(tf); > > Glen > > > Fabio Pinatti wrote: > >> the fonts are embedded. The problem actually isn't the font appears, >> because >> it's. The problem is, seems after I changed the text of an existing >> textfield, it formatting is gone. >> >> Tks >> F >> >> On Fri, Jan 16, 2009 at 12:51 PM, Cor <c...@chello.nl> wrote: >> >> >> >>> With dynamic fields you NEED to embed the fonts or set it through a >>> class, >>> a >>> CSS or TextFormat. >>> >>> -----Original Message----- >>> From: flashcoders-boun...@chattyfig.figleaf.com >>> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Fabio >>> Pinatti >>> Sent: vrijdag 16 januari 2009 13:06 >>> To: Flash Coders List >>> Subject: [Flashcoders] [flash textfield] lose formatting >>> >>> Hello guru list, >>> >>> A basic question. A designer setup a fla file, with a lot of textfields. >>> He'd adjusted font size, spacing, leading, etc. When I'll use his fla, I >>> have to convert all static fields into dynamic fields, and all looks >>> good. >>> The question and problem is, when I compile and set a text for those >>> dynamic >>> textfields, the textfield loses all formatting it had, so, I need to >>> rewrite >>> via TextFormat. Am I doing something wrong, or isn't possible use >>> timeline >>> text formatting in runtime? >>> >>> Thanks so much, >>> >>> -- >>> Fábio Pinatti >>> :: web.developer >>> :::: www.pinatti.com.br >>> :::::: 19. 9184.3745 / 3342.1130 >>> _______________________________________________ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> No virus found in this incoming message. >>> Checked by AVG - http://www.avg.com >>> Version: 8.0.176 / Virus Database: 270.10.8/1897 - Release Date: >>> 16-1-2009 >>> 6:52 >>> >>> >>> _______________________________________________ >>> Flashcoders mailing list >>> Flashcoders@chattyfig.figleaf.com >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >>> >> >> >> >> >> > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Fábio Pinatti :: web.developer :::: www.pinatti.com.br :::::: 19. 9184.3745 / 3342.1130 _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders