<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; Embed</title>
	<atom:link href="http://blog.minidx.com/tag/embed/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex中如何通过icon样式从SWF中指定一个Button的例子</title>
		<link>http://blog.minidx.com/2009/04/25/2389.html</link>
		<comments>http://blog.minidx.com/2009/04/25/2389.html#comments</comments>
		<pubDate>Sat, 25 Apr 2009 13:38:41 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[icon]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2389</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过icon样式从SWF中指定一个Button。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;horizontal&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Add&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_add')&#34;&#160;/&#62;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Delete&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_delete')&#34;&#160;/&#62;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Star&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_star')&#34;&#160;/&#62;
&#160;
&#60;/mx:Application&#62;
代码：Peter deHaan 翻译/整理/编译：中文Flex例子

你可能还对下列文章感兴趣:Flex中如何利用Style Sheet和&#60;mx:style&#62;标签嵌入图片/图标的例子Flex中给按钮设置icon图标的例子Flex中如何通过disabledIcon样式和enabled属性在Button在改变有效/无效状态时改变图标的例子Flex中通过按钮类的textAlign样式和labelPlacement属性控制按钮(Button)标签位置的例子Flex中如何在Panel容器中增加图标(icons)的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/04/25/2389.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何在mx:Style中用@font-face在Flash SWF中嵌入字体的例子</title>
		<link>http://blog.minidx.com/2008/10/30/1587.html</link>
		<comments>http://blog.minidx.com/2008/10/30/1587.html#comments</comments>
		<pubDate>Thu, 30 Oct 2008 02:53:43 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Font]]></category>
		<category><![CDATA[@font face]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[fontFamily]]></category>
		<category><![CDATA[fontName]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1587</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何在mx:Style中用@font-face，在Flash SWF中嵌入字体。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; applicationComplete=&#34;init()&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; private function init():void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var appInfo:LoaderInfo = Application.application.loaderInfo;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/10/30/1587.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中通过status属性自定义Panel容器状态栏消息的例子</title>
		<link>http://blog.minidx.com/2008/08/19/1275.html</link>
		<comments>http://blog.minidx.com/2008/08/19/1275.html#comments</comments>
		<pubDate>Mon, 18 Aug 2008 16:00:20 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[Panel]]></category>
		<category><![CDATA[Status]]></category>
		<category><![CDATA[statusStyleName]]></category>
		<category><![CDATA[titleIcon]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/08/19/1275.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过status属性，自定义Panel容器状态栏消息。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; [Embed(source=&#34;assets/delete.png&#34;)]
&#160; &#160; &#160; &#160; &#160; &#160; public var DeleteIcon:Class;
&#160; &#160; &#160; &#160; ]]&#62;
&#160; &#160; &#60;/mx:Script&#62;
&#160;
&#160; &#160; &#60;mx:String&#160;id=&#34;lorem&#34; source=&#34;lorem.txt&#34; /&#62;
&#160;
&#160; &#160; &#60;mx:Panel&#160;id=&#34;panel&#34;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/08/19/1275.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中创建一个竖直方向ButtonBar的例子</title>
		<link>http://blog.minidx.com/2008/07/27/1139.html</link>
		<comments>http://blog.minidx.com/2008/07/27/1139.html#comments</comments>
		<pubDate>Sun, 27 Jul 2008 11:55:53 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ButtonBar]]></category>
		<category><![CDATA[direction]]></category>
		<category><![CDATA[Embed]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/27/1139.html</guid>
		<description><![CDATA[和前面Flex中利用direction属性创建一个垂直LinkBar的例子类似的，接下来的例子演示了Flex中创建一个竖直方向ButtonBar。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整实现代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:HBox&#62;
&#160; &#160; &#160; &#160; &#60;mx:ButtonBar&#160;id=&#34;buttonBar&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; direction=&#34;vertical&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; dataProvider=&#34;{viewStack}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; themeColor=&#34;haloOrange&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; fontSize=&#34;16&#34;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/27/1139.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何给VideoDisplay添加一个基本的播放/暂停按钮的例子</title>
		<link>http://blog.minidx.com/2008/07/12/1068.html</link>
		<comments>http://blog.minidx.com/2008/07/12/1068.html#comments</comments>
		<pubDate>Sat, 12 Jul 2008 14:27:29 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[@font face]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[skinning]]></category>
		<category><![CDATA[VideoDisplay]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/12/1068.html</guid>
		<description><![CDATA[在前面的Flex的VideoDisplay基本使用方法的例子中我们学习了VideoDisplay的一些基本用法，不过很多时候，我们看到的播放器，开始/暂停控制按钮都是直接在播放画面中的，鼠标移到画面上的时候显示，移出之后隐藏。接下来的例子就演示了Flex中如何给VideoDisplay添加一个基本的播放/暂停按钮。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Style&#62;
&#160; &#160; &#160; &#160; @font-face {
&#160; &#160; &#160; &#160; &#160; &#160; src:url(&#34;assets/arial.ttf&#34;);
&#160; &#160; &#160; &#160; &#160; &#160; font-family: Arial;
&#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; &#160; .timeStyle {
&#160; &#160; &#160; &#160; &#160; &#160; color: #FFFFFF;
&#160; &#160; &#160; &#160; &#160; &#160; font-family: Arial;
&#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/12/1068.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/33 queries in 0.433 seconds using disk
Object Caching 412/814 objects using disk

Served from: blog.minidx.com @ 2012-02-09 11:06:29 -->
