<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using the flash.* classes in MXML</title>
	<link>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 09:14:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Tiago</title>
		<link>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-3013</link>
		<author>Tiago</author>
		<pubDate>Fri, 28 Sep 2007 10:51:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-3013</guid>
		<description>oh that's a really cool trick :)

Thanks Peter!</description>
		<content:encoded><![CDATA[<p>oh that&#8217;s a really cool trick :)</p>
<p>Thanks Peter!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dormouse</title>
		<link>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2994</link>
		<author>dormouse</author>
		<pubDate>Fri, 28 Sep 2007 01:50:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2994</guid>
		<description>peterd

Thanks, i have saw the Adobe Flex 2 Developer's Guide documentation. In it, using flash 8 to create swf with embedded fonts. But i use mxmlc order to create it.
Code:FontSkin.as
package
{
	import flash.display.Sprite;
	
	public class FontSkin extends Sprite
	{
		[Embed(mimeType='application/x-font', source='xujinglei.fon', fontName='handFont')]
		public var MyFont:Class;
	}
}
then in the console input mxmlc FontSkin.as to create swf.
It is my first to write, there is any things wrong?Can you give me some tips, Thanks for your applys</description>
		<content:encoded><![CDATA[<p>peterd</p>
<p>Thanks, i have saw the Adobe Flex 2 Developer&#8217;s Guide documentation. In it, using flash 8 to create swf with embedded fonts. But i use mxmlc order to create it.<br />
Code:FontSkin.as<br />
package<br />
{<br />
	import flash.display.Sprite;</p>
<p>	public class FontSkin extends Sprite<br />
	{<br />
		[Embed(mimeType=&#8217;application/x-font&#8217;, source=&#8217;xujinglei.fon&#8217;, fontName=&#8217;handFont&#8217;)]<br />
		public var MyFont:Class;<br />
	}<br />
}<br />
then in the console input mxmlc FontSkin.as to create swf.<br />
It is my first to write, there is any things wrong?Can you give me some tips, Thanks for your applys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2984</link>
		<author>peterd</author>
		<pubDate>Thu, 27 Sep 2007 18:33:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2984</guid>
		<description>dormouse,

I don't know of any reasons to do one or the other (not that there aren't valid reasons, I just don't know why one method is preferable to the other). I did have an entry on using fonts from a SWF in an MXML application, but it has been in my drafts for a month or so now. I'll see if I can dig that up.

In the meantime, check out the Adobe Flex 2 Developer's Guide documentation on LiveDocs, &lt;a href="http://livedocs.adobe.com/flex/201/html/fonts_070_01.html" rel="nofollow"&gt;"Using Fonts"&lt;/a&gt;. And more specifically, this section &lt;a href="http://livedocs.adobe.com/flex/201/html/fonts_070_11.html" rel="nofollow"&gt;"Embedding fonts from SWF files"&lt;/a&gt;.

Hope that helps,
Peter

PS: Any readers out there care to educate me on why fonts embedded in SWFs are preferable to TTF fonts embedded in MXML?</description>
		<content:encoded><![CDATA[<p>dormouse,</p>
<p>I don&#8217;t know of any reasons to do one or the other (not that there aren&#8217;t valid reasons, I just don&#8217;t know why one method is preferable to the other). I did have an entry on using fonts from a SWF in an MXML application, but it has been in my drafts for a month or so now. I&#8217;ll see if I can dig that up.</p>
<p>In the meantime, check out the Adobe Flex 2 Developer&#8217;s Guide documentation on LiveDocs, <a href="http://livedocs.adobe.com/flex/201/html/fonts_070_01.html" rel="nofollow">&#8220;Using Fonts&#8221;</a>. And more specifically, this section <a href="http://livedocs.adobe.com/flex/201/html/fonts_070_11.html" rel="nofollow">&#8220;Embedding fonts from SWF files&#8221;</a>.</p>
<p>Hope that helps,<br />
Peter</p>
<p>PS: Any readers out there care to educate me on why fonts embedded in SWFs are preferable to TTF fonts embedded in MXML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dormouse</title>
		<link>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2976</link>
		<author>dormouse</author>
		<pubDate>Thu, 27 Sep 2007 15:11:02 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/09/26/using-the-flash-classes-in-mxml/#comment-2976</guid>
		<description>peterd,
today, my boss told me that"Do not binding font in the swf", so i have to load a external font from the server.
Now, i spend a long time to solve it.
Although, i didn't know why? Why not binding a new font in the swf(while it will be larger)?

BTW, my english is pool.Sorry;(</description>
		<content:encoded><![CDATA[<p>peterd,<br />
today, my boss told me that&#8221;Do not binding font in the swf&#8221;, so i have to load a external font from the server.<br />
Now, i spend a long time to solve it.<br />
Although, i didn&#8217;t know why? Why not binding a new font in the swf(while it will be larger)?</p>
<p>BTW, my english is pool.Sorry;(</p>
]]></content:encoded>
	</item>
</channel>
</rss>
