Gracias a todos, Helmut, Horacio y David.
Aparentemente y seg�n la ayuda de Flash MX 2004 Pro, las CSS no soportan
interletraje en Flash, s�lo estas caracter�sticas de la especificaci�n CSS 1
(muy poca cosa, la verdad, pero menos es nada):
CSS property
ActionScript property
Usage and supported values
text-align
textAlign
Recognized values are left, center, and right.
font-size
fontSize
Only the numeric part of the value is used; units (px, pt) are not
parsed; pixels and points are equivalent.
text-decoration
textDecoration
Recognized values are none and underline.
margin-left
marginLeft
Only the numeric part of the value is used. Units (px, pt) are not
parsed; pixels and points are equivalent.
margin-right
marginRight
Only the numeric part of the value is used. Units (px, pt) are not
parsed; pixels and points are equivalent.
font-weight
fontWeight
Recognized values are normal and bold.
font-style
fontStyle
Recognized values are normal and italic.
text-indent
textIndent
Only the numeric part of the value is used. Units (px, pt) are not
parsed; pixels and points are equivalent.
font-family
fontFamily
A comma-separated list of fonts to use, in descending order of
desirability. Any font family name can be used. If you specify a generic
font name, it will be converted to an appropriate device font. The following
font conversions are available: mono is converted to _typewriter, sans-serif
is converted to _sans, and serif is converted to _serif.
color
color
Only hexadecimal color values are supported. Named colors (like blue)
are not supported.
display
Por si a alguien le interesa, he encontrado este prototipo aqu�
http://chattyfig.figleaf.com/ezmlm/ezmlm-cgi/1/85020 y parece que va bien:
<code>
TextField.prototype.kern = function (kern_size) {
/* --- init vars --- */
var temp = this.text;
this.text = "";
var kernChar=new TextFormat();
kernChar.size = kern_size;
/* --- space out text --- */
for (var i = 0; i < temp.length; i++) {
this.text += temp.charAt(i) + " ";
}
/* --- apply textFormat size to the spaces --- */
for (var i = 1; i < this.text.length; i+=2) {
this.setTextFormat(i,kernChar);
}
}
// usage
// texto_txt.htmlText = "<b>asdasd</b>as dfasd asdfads adsg adfg afdg adfg";
// texto_txt.kern(25);
</code>
Pensaba que esto era imposible con espacios, pero chuta.
Gracias de nuevo a todos, Paulo (qu� estr�s).
----- Original Message -----
From: "Helmut" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 6:29 PM
Subject: RE: [ASNativos] Control de kerning sobre campo de texto din�mico
Solo recuerda que el soporte de CSS esta en FLASH Player 7.0 y lo puedes
hacer con FLASHMX2004 - NORMAL o PRO
Solo tener esto en cuenta :o)
...helmut
<HLS>
CONFIDENTIALITY NOTICE: This E-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized retention,
review, printing, copying, disclosure or distribution is prohibited. If
you are not one of the intended recipients, please contact the sender by
reply e-mail or phone, destroy all copies of the original message and
keep the information contained here confidential.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Horacio Soca
Sent: Thursday, January 08, 2004 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [ASNativos] Control de kerning sobre campo de texto
din�mico
mir�, no recuerdo si eso es posible controlar lo que tu quieres, pero
yo
utiliz� otras opciones y lo hice desde la ayuda de Flash....y funciona
ok
ac� hay algo...
http://www.actionscript.org/tutorials/beginner/css_in_flash/index.shtml
Saludos,
Horacio
----- Original Message -----
From: "Paulo Carvajal -- Vudumedia.com---" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 1:50 PM
Subject: Re: [ASNativos] Control de kerning sobre campo de texto
din�mico
> No, no he probado el soporte CSS en Flash a�n, alg�n ejemplito r�pido
por
> ah�?
>
> Gracias, Horacio.
>
> ----- Original Message -----
> From: "Horacio Soca" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 08, 2004 5:44 PM
> Subject: Re: [ASNativos] Control de kerning sobre campo de texto
din�mico
>
>
> > mmm, probaste con CSS ?
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Paulo Carvajal -- Vudumedia.com---" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 08, 2004 1:42 PM
> > Subject: [ASNativos] Control de kerning sobre campo de texto
din�mico
> >
> >
> > > Alguien sabe c�mo controlar el kerning (separaci�n entre letras)
por
> > > ActionScript.
> > > Estoy cargando texto HTML desde un XML y necesito un interletraje
> distinto
> > > del que da por defecto para una aplicaci�n sobre CD a cuatro
idiomas;
> son
> > > como cuarenta textos, glups.
> > >
> > > Ideas, sugerencias y milagros bienvenidos.
> > > Gracias, Paulo.
> > >
> > >
> > >
> > > <!-------------------------------
> > > Lista ASNativos:
> > > subscripciones/desubscripciones
> > > http://www.sidedev.net/asnativos
> > > -------------------------------->
> >
> >
> > <!-------------------------------
> > Lista ASNativos:
> > subscripciones/desubscripciones
> > http://www.sidedev.net/asnativos
> > -------------------------------->
> >
> >
>
>
> <!-------------------------------
> Lista ASNativos:
> subscripciones/desubscripciones
> http://www.sidedev.net/asnativos
> -------------------------------->
>
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->
<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->