<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Flash AS3 Loading Fonts</title>
	<atom:link href="http://www.mokisystems.com/blog/flash-as3-loading-fonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/</link>
	<description>Addressing such topics as: web programming, design, ruby on rails, cake php, postgresql, linux, seo</description>
	<lastBuildDate>Sat, 20 Feb 2010 02:04:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: RipX</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-586</link>
		<dc:creator>RipX</dc:creator>
		<pubDate>Wed, 09 Dec 2009 09:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-586</guid>
		<description>The above post was due to a typo in the font name. Please disregard but be aware that this error shows if the name of the font is incorrect and effort should be made to catch this.

RipX</description>
		<content:encoded><![CDATA[<p>The above post was due to a typo in the font name. Please disregard but be aware that this error shows if the name of the font is incorrect and effort should be made to catch this.</p>
<p>RipX</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RipX</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-585</link>
		<dc:creator>RipX</dc:creator>
		<pubDate>Tue, 08 Dec 2009 16:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-585</guid>
		<description>When compiling in FlashDevelop I get the following Reference error:

[Fault] exception, information=ReferenceError: Error #1065: Variable swf is not defined.

since at compile time &#039;fontsDomain&#039; has no targeted swf reference. Anyone know how to correct this problem?

RipX</description>
		<content:encoded><![CDATA[<p>When compiling in FlashDevelop I get the following Reference error:</p>
<p>[Fault] exception, information=ReferenceError: Error #1065: Variable swf is not defined.</p>
<p>since at compile time &#8216;fontsDomain&#8217; has no targeted swf reference. Anyone know how to correct this problem?</p>
<p>RipX</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: watcher</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-582</link>
		<dc:creator>watcher</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-582</guid>
		<description>Per the mysterious commenter &#039;Eric&#039;, this indeed will not solve the &quot;embed subset problem&quot;.

I suspect he did not post the &#039;superior&#039; method cos he doesn&#039;t have it! neither do I sadly. But rest assured once I&#039;ve cracked it I&#039;m going to share it with the world! Stupid, stupid, stupid Adobe. It&#039;s amazing what we let them get away with...</description>
		<content:encoded><![CDATA[<p>Per the mysterious commenter &#8216;Eric&#8217;, this indeed will not solve the &#8220;embed subset problem&#8221;.</p>
<p>I suspect he did not post the &#8217;superior&#8217; method cos he doesn&#8217;t have it! neither do I sadly. But rest assured once I&#8217;ve cracked it I&#8217;m going to share it with the world! Stupid, stupid, stupid Adobe. It&#8217;s amazing what we let them get away with&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlazeTheFire &#187; Blog Archive &#187; External fonts without Flex</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-520</link>
		<dc:creator>BlazeTheFire &#187; Blog Archive &#187; External fonts without Flex</dc:creator>
		<pubDate>Fri, 14 Aug 2009 15:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-520</guid>
		<description>[...] http://www.mokisystems.com/blog/flash-as3-loading-fonts/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.mokisystems.com/blog/flash-as3-loading-fonts/" rel="nofollow">http://www.mokisystems.com/blog/flash-as3-loading-fonts/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A85</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-496</link>
		<dc:creator>A85</dc:creator>
		<pubDate>Tue, 26 May 2009 13:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-496</guid>
		<description>Thanks for such a good article of runtime font embedding .I am able to implement this in my project ,fonts are coming from swf but what i&#039;m trying to do is that getting the different font from different swf but in  Font.enumerateFonts(false) does not return all of the font embed it&#039;s just repeat the 2 or 3 fonts and sometimes just add only one . here is my code which i&#039;m using in my project with your loadFont and other class .Thanks 

public function fontupload() 
{
for (var i:Number = 0; i &lt; 4 ; i++)
{
				
  var coantainerfonts:Coantainerfonts = new Coantainerfonts()/seprate class for fonts with-in library
		  
  coantainerfonts.mc.width = coantainerfonts.txt.width
  coantainerfonts.name     = &quot;fontconatiner&quot;+i
  coantainerfonts.x = 0
  coantainerfonts.y=i*(18)
				
  fontsMC.addChild(coantainerfonts)
			
  var tempStr:String = &quot;_fontembed&quot; + (i + 1) + &quot;.swf&quot; //refernce to differnt swf
  var tempname:String = &quot;EFont0&quot;+(i+1)
  var font = new LoadFont(tempStr, [tempname]);
		
   font.addEventListener(LoadFont.COMPLETE, successLoadFont);
   font.addEventListener(LoadFont.ERROR, failLoadFont);
	
}
			
	)

}
private function successLoadFont(e:Event)
{
			
			
	var mc:MovieClip 		=  fontsMC.getChildAt(_counter) as MovieClip
        var TxtRef:TextField 		=  mc.txt as TextField
			
			
			
	var embeddedFonts:Array = Font.enumerateFonts(false);
			
		
						
	var txtformat:TextFormat = new TextFormat()
			
	txtformat.font            = embeddedFonts[_counter].fontName

	trace(embeddedFonts[_counter].fontName)//trace similar font names 

	TxtRef.embedFonts = true
	TxtRef.text =embeddedFonts[_counter].fontName

	TxtRef.setTextFormat(txtformat)
			
	_counter++;
			
 	 	}</description>
		<content:encoded><![CDATA[<p>Thanks for such a good article of runtime font embedding .I am able to implement this in my project ,fonts are coming from swf but what i&#8217;m trying to do is that getting the different font from different swf but in  Font.enumerateFonts(false) does not return all of the font embed it&#8217;s just repeat the 2 or 3 fonts and sometimes just add only one . here is my code which i&#8217;m using in my project with your loadFont and other class .Thanks </p>
<p>public function fontupload()<br />
{<br />
for (var i:Number = 0; i &lt; 4 ; i++)<br />
{</p>
<p>  var coantainerfonts:Coantainerfonts = new Coantainerfonts()/seprate class for fonts with-in library</p>
<p>  coantainerfonts.mc.width = coantainerfonts.txt.width<br />
  coantainerfonts.name     = &#8220;fontconatiner&#8221;+i<br />
  coantainerfonts.x = 0<br />
  coantainerfonts.y=i*(18)</p>
<p>  fontsMC.addChild(coantainerfonts)</p>
<p>  var tempStr:String = &#8220;_fontembed&#8221; + (i + 1) + &#8220;.swf&#8221; //refernce to differnt swf<br />
  var tempname:String = &#8220;EFont0&#8243;+(i+1)<br />
  var font = new LoadFont(tempStr, [tempname]);</p>
<p>   font.addEventListener(LoadFont.COMPLETE, successLoadFont);<br />
   font.addEventListener(LoadFont.ERROR, failLoadFont);</p>
<p>}</p>
<p>	)</p>
<p>}<br />
private function successLoadFont(e:Event)<br />
{</p>
<p>	var mc:MovieClip 		=  fontsMC.getChildAt(_counter) as MovieClip<br />
        var TxtRef:TextField 		=  mc.txt as TextField</p>
<p>	var embeddedFonts:Array = Font.enumerateFonts(false);</p>
<p>	var txtformat:TextFormat = new TextFormat()</p>
<p>	txtformat.font            = embeddedFonts[_counter].fontName</p>
<p>	trace(embeddedFonts[_counter].fontName)//trace similar font names </p>
<p>	TxtRef.embedFonts = true<br />
	TxtRef.text =embeddedFonts[_counter].fontName</p>
<p>	TxtRef.setTextFormat(txtformat)</p>
<p>	_counter++;</p>
<p> 	 	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonzalo</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-328</link>
		<dc:creator>Gonzalo</dc:creator>
		<pubDate>Thu, 05 Feb 2009 00:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-328</guid>
		<description>Thank you very much for the LoadFont class. It works perfectly. Only two corrections:

line 17:
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, font_ioErrorHandler);  // adding contentLoaderInfo

line 34:
for (var i:uint = 0; i &lt; fontList.length; i++) {  // the &amp;lt simbol

Thank you and sorry for my English :)</description>
		<content:encoded><![CDATA[<p>Thank you very much for the LoadFont class. It works perfectly. Only two corrections:</p>
<p>line 17:<br />
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, font_ioErrorHandler);  // adding contentLoaderInfo</p>
<p>line 34:<br />
for (var i:uint = 0; i &lt; fontList.length; i++) {  // the &amp;lt simbol</p>
<p>Thank you and sorry for my English <img src='http://www.mokisystems.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActionScript 3 Text Field Alpha &#171; Bauhouse</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-323</link>
		<dc:creator>ActionScript 3 Text Field Alpha &#171; Bauhouse</dc:creator>
		<pubDate>Sat, 31 Jan 2009 00:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-323</guid>
		<description>[...] Flash AS3 Loading Fonts [...]</description>
		<content:encoded><![CDATA[<p>[...] Flash AS3 Loading Fonts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomGold</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-317</link>
		<dc:creator>TomGold</dc:creator>
		<pubDate>Mon, 05 Jan 2009 21:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-317</guid>
		<description>Hallo, great class with one, i hope, simple problem. I try to use this class in an AIR project. When i load the font.swf from the application folder it works. When i load the font.swf from the application-storage folder, registerFonts trow the error [Fault] exception, information=ArgumentError: Error #1508: The value specified for argument font is invalid.

I hope (need) 4 help.

Sorry for my spelling, i&#039;m not a native speaker.

THX f reading

Tom</description>
		<content:encoded><![CDATA[<p>Hallo, great class with one, i hope, simple problem. I try to use this class in an AIR project. When i load the font.swf from the application folder it works. When i load the font.swf from the application-storage folder, registerFonts trow the error [Fault] exception, information=ArgumentError: Error #1508: The value specified for argument font is invalid.</p>
<p>I hope (need) 4 help.</p>
<p>Sorry for my spelling, i&#8217;m not a native speaker.</p>
<p>THX f reading</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frfc1908</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-304</link>
		<dc:creator>frfc1908</dc:creator>
		<pubDate>Wed, 10 Dec 2008 09:39:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-304</guid>
		<description>Oh yeah... why Futura? Luckily I could change the font in firebug, so the page was a little readable!</description>
		<content:encoded><![CDATA[<p>Oh yeah&#8230; why Futura? Luckily I could change the font in firebug, so the page was a little readable!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frfc1908</title>
		<link>http://www.mokisystems.com/blog/flash-as3-loading-fonts/comment-page-1/#comment-303</link>
		<dc:creator>frfc1908</dc:creator>
		<pubDate>Wed, 10 Dec 2008 09:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mokisystems.com/blog/flash-as3-loading-fonts/#comment-303</guid>
		<description>Many thanks! Comes in very handy!</description>
		<content:encoded><![CDATA[<p>Many thanks! Comes in very handy!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
