Maybe a typo error?

Check your code:
var formatInput:TextFormat = new TextFormat( );
formatInput.font = "AvantGardeLight";
formatInput.color = 0x000000;
format.letterSpacing = 1;
formatInput.size = 14;
searchFieldCountry_txt.defaultTextFormat = formatInput;

See that you used "format" instead of "formatInput" for letterSpacing.


On Thu, May 29, 2008 at 9:36 AM, Glen Pike <[EMAIL PROTECTED]> wrote:
> I am not 100% on whether letter-spacing works as I have not tried it, but
> you may have to reapply the format each time the text in the input field is
> changed.
>
> Add a change listener
>
> Sidney de Koning wrote:
>>
>> Hi List,
>>
>> Does anyone know if it is possible to have letter spacing in an input
>> field (a field where you type in text) in AS3.
>> I know you can do it on a dynamic or a normal textfield.
>> I also tried in the IDE, but that does not work. (with embedded font)
>> The code i have is this, it all works except the letterSpacing:
>>
>> searchFieldCountry_txt = new TextField( );
>> searchFieldCountry_txt.type = TextFieldType.INPUT;
>> searchFieldCountry_txt.antiAliasType = AntiAliasType.ADVANCED;
>> searchFieldCountry_txt.embedFonts = true;
>> searchFieldCountry_txt.border = false;
>> searchFieldCountry_txt.x = 340;
>> searchFieldCountry_txt.y = 38;
>> searchFieldCountry_txt.width = 175;
>> searchFieldCountry_txt.height = 25;
>>           var formatInput:TextFormat = new TextFormat( );
>> formatInput.font = "AvantGardeLight";
>> formatInput.color = 0x000000;
>> format.letterSpacing = 1;
>> formatInput.size = 14;
>>
>> searchFieldCountry_txt.defaultTextFormat = formatInput;
>>
>> I hope somebody has experience with this,
>> Thanks in advance,
>>
>> Sidney
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>
> --
>
> Glen Pike
> 01326 218440
> www.glenpike.co.uk <http://www.glenpike.co.uk>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to