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
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
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
: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
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;
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
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]
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
;
}
_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
-
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
{
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
!
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
12 matches
Mail list logo