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

2008-04-15 Thread Stuart (FunkDaWeb)
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 (FunkDaWeb) [EMAIL

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

2008-04-15 Thread Leandro Ferreira
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] Replace that with: formatter.italic = !currentFormat.italic; The conditionals

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

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: YAY! It works

[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;

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 seam to

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 format

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

2008-04-03 Thread jonathan howe
: 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 format of a textbox from normal

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

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

2008-04-03 Thread jonathan howe
- 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 access _selectedBox.formatter or something else invalid

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

2008-04-03 Thread Stuart (FunkDaWeb)
{ 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 textbox [AS3] Hi

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

2008-04-03 Thread Cory Petosky
! 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] Okay, but in the simple example, you are using it for both: Okay