<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Utilizando contornos de fuentes incorporadas (embedFonts) en componentes de flash</title>
	<link>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 02:46:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Antonio</title>
		<link>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-245</link>
		<pubDate>Tue, 13 Mar 2007 16:41:00 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-245</guid>
					<description>ok, eso es si yo creo el campo de texto, y si ya lo tengo por que es parte de una galería y utiliza ese campo de texto para importar texto desde el xml mi campo de texto tiene un nombre de instancia mytext y mi galeria utilizo un componente y por medio de ese componente le inserto texto en un caption textfield...ya le vincule la font desde la biblioteca pero ahora como le hago para que me tome:
lo siguiente?
Actionscript:
var format:TextFormat = new TextFormat();
format.font = 'verdana-10';
format.size = 10;
format.color = 0xff0000;
var my_txtfield:TextField = this.createTextField('my_txtfield', this.getNextHighestDepth(), 0, 0, 200, 200);
my_txtfield.embedFonts = true;
my_txtfield.text = 'hola Mundo';/*(esto no me serviria verdad)*/
my_txtfield.setTextFormat(format);</description>
		<content:encoded><![CDATA[<p>ok, eso es si yo creo el campo de texto, y si ya lo tengo por que es parte de una galería y utiliza ese campo de texto para importar texto desde el xml mi campo de texto tiene un nombre de instancia mytext y mi galeria utilizo un componente y por medio de ese componente le inserto texto en un caption textfield&#8230;ya le vincule la font desde la biblioteca pero ahora como le hago para que me tome:<br />
lo siguiente?<br />
Actionscript:<br />
var format:TextFormat = new TextFormat();<br />
format.font = &#8216;verdana-10&#8242;;<br />
format.size = 10;<br />
format.color = 0xff0000;<br />
var my_txtfield:TextField = this.createTextField(&#8217;my_txtfield&#8217;, this.getNextHighestDepth(), 0, 0, 200, 200);<br />
my_txtfield.embedFonts = true;<br />
my_txtfield.text = &#8216;hola Mundo&#8217;;/*(esto no me serviria verdad)*/<br />
my_txtfield.setTextFormat(format);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-223</link>
		<pubDate>Fri, 09 Mar 2007 05:40:48 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-223</guid>
					<description>Para un campo de texto dinámico, además de vincular la fuente en la biblioteca, tienes que aplicar el formato de forma diferente a los componentes, por ejemplo:

Vinculo una fuente en la biblioteca a la que voy a poner el nombre 'verdana-10'

Todo dinámico para que puedas copiar el código:

[AS]
var format:TextFormat = new TextFormat();
format.font = 'verdana-10';
format.size = 10;
format.color = 0xff0000;
var my_txtfield:TextField = this.createTextField('my_txtfield', this.getNextHighestDepth(), 0, 0, 200, 200);
my_txtfield.embedFonts = true;
my_txtfield.text = 'hola Mundo';
my_txtfield.setTextFormat(format);
[/AS]

Mirate este tutorial, donde se explica un poco mas a fondo:

http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/

saludos.</description>
		<content:encoded><![CDATA[<p>Para un campo de texto dinámico, además de vincular la fuente en la biblioteca, tienes que aplicar el formato de forma diferente a los componentes, por ejemplo:</p>
<p>Vinculo una fuente en la biblioteca a la que voy a poner el nombre 'verdana-10'</p>
<p>Todo dinámico para que puedas copiar el código:</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> format:<span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">format.<span style="color: #0066CC;">font</span> = <span style="color: #ff0000;">'verdana-10'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">format.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;color:#800000;">10</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">format.<span style="color: #0066CC;">color</span> = 0xff0000;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> my_txtfield:<span style="color: #0066CC;">TextField</span> = <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">createTextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'my_txtfield'</span>, <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">getNextHighestDepth</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">0</span>, <span style="color: #cc66cc;color:#800000;">200</span>, <span style="color: #cc66cc;color:#800000;">200</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_txtfield.<span style="color: #0066CC;">embedFonts</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_txtfield.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">'hola Mundo'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_txtfield.<span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span>format<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mirate este tutorial, donde se explica un poco mas a fondo:</p>
<p><a href="http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/" rel="nofollow">http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/</a></p>
<p>saludos.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tonyloz7</title>
		<link>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-222</link>
		<pubDate>Fri, 09 Mar 2007 01:42:50 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/09/22/utilizando-contornos-de-fuentes-incorporadas-embedfonts-en-componentes-de-flash/#comment-222</guid>
					<description>no pude aplicarlo en un cuadro de texto dinamico que jala texto de un archivo xml no me repeta el tipo de letra?</description>
		<content:encoded><![CDATA[<p>no pude aplicarlo en un cuadro de texto dinamico que jala texto de un archivo xml no me repeta el tipo de letra?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
