Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-15 Thread Rich Shupe
Stuart, I'm not sure I've followed this thread thoroughly, but have you embedded a font and specified it in a text format you're using? That is, you can't just say embedFonts = true. To do that, you must embed a font in the Library, and use that font in the field's text format, controlling the fi

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-15 Thread Leandro Ferreira
ck again it > displays the text again no bold/italic! > > - Original Message - > From: Cory Petosky > > To: Flash Coders List > Sent: Thursday, April 03, 2008 8:43 PM > Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] > > > R

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-15 Thread Stuart (FunkDaWeb)
ash Coders List Sent: Thursday, April 03, 2008 8:43 PM Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] Replace that with: formatter.italic = !currentFormat.italic; The conditionals aren't necessary in that situation. :) On Thu, Apr 3, 2008 at 1:21 PM, Stuart (Fun

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-04 Thread Stuart (FunkDaWeb)
:43 PM Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] Replace that with: formatter.italic = !currentFormat.italic; The conditionals aren't necessary in that situation. :) On Thu, Apr 3, 2008 at 1:21 PM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]> wrote: >

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Cory Petosky
:o( > > Onwards and upwards! > > Thanks for your help! > > SM > > > - Original Message - > From: jonathan howe > To: Flash Coders List > Sent: Thursday, April 03, 2008 6:53 PM > Subject: Re: [Flashcoders] Reading properties of a textbox [AS3

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
i change to your > > code... > > > > ReferenceError: Error #1069: Property formatter not found on > > flash.text.TextField and there is no default value. > > - Original Message - > > From: jonathan howe > > To: Flash C

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
gt;formatter.italic = false; > } > > _selectedBox.setTextFormat(formatter); > - Original Message - > From: jonathan howe > To: Flash Coders List > Sent: Thursday, April 03, 2008 5:53 PM > Subject: Re: [Flashcoders] Reading properties of a tex

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
; } _selectedBox.setTextFormat(formatter); - Original Message - From: jonathan howe To: Flash Coders List Sent: Thursday, April 03, 2008 5:53 PM Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] Hi, Stuart, Based on the error message sounds like maybe you are trying to

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
Thursday, April 03, 2008 4:04 PM > Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] > > > var formatter:TextFormat = _selectedBox.getTextFormat(); > > On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) <[EMAIL PROTECTED] > > > wrote: > > >

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
03, 2008 4:04 PM Subject: Re: [Flashcoders] Reading properties of a textbox [AS3] var formatter:TextFormat = _selectedBox.getTextFormat(); On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]> wrote: > Hi all im tring to write a button that changes the fo

Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
var formatter:TextFormat = _selectedBox.getTextFormat(); On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) <[EMAIL PROTECTED]> wrote: > Hi all im tring to write a button that changes the format of a textbox > from normal to italic and back again. I have written the below code but i > cannot sea

[Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
Hi all im tring to write a button that changes the format of a textbox from normal to italic and back again. I have written the below code but i cannot seam to get it to work! var formatter:TextFormat = new TextFormat(); if (formatter.italic == false) { formatter.italic = true;