Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Glen Pike
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 probl

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
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 wrot

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
OK, here are some options: HTH Cor /* Create in library: New Font My embedded fonts have Linkage classes of "FFFInterface", "LasVegasD" and "Wdings". Both of these seemed to work for me. Fonts should be on the develop PC */ //TextFormat example var fmt1:TextFormat = new TextFormat(); fmt1.font

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Joel Stransky
or you can set the defaultTextFormat property and be done with it. On Fri, Jan 16, 2009 at 10:58 AM, Fabio Pinatti wrote: > 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

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
List Subject: Re: [Flashcoders] [flash textfield] lose formatting 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,

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Romuald Quantin
I have already posted that here but, I think this (a single class that is extending TextField) can help you as it is a kind of things Ive already done (and I was bored to struggle with textfield, textformat, style, etc). I've extracted a text tool from my framework: SomaText. It allows you to

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-17 Thread Cor
: [Flashcoders] [flash textfield] lose formatting I have already posted that here but, I think this (a single class that is extending TextField) can help you as it is a kind of things Ive already done (and I was bored to struggle with textfield, textformat, style, etc). I've extracted a

RE: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Cor
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 Cod

Re: [Flashcoders] [flash textfield] lose formatting

2009-01-16 Thread Fabio Pinatti
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 wrote: > With dynamic fields you NEED to embed the fonts or set it throu