<?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>joel&#039;s FLEX blog &#187; 例子</title>
	<atom:link href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.desizen.com</link>
	<description>FLEX,网络安全,Linux</description>
	<lastBuildDate>Fri, 13 May 2011 02:18:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>FLEX例子 &#8211; DividedBox(分割盒子)</title>
		<link>http://blog.desizen.com/4lone/644.html</link>
		<comments>http://blog.desizen.com/4lone/644.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 03:27:32 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[DividedBox]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=644</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:Containers:DividedBox 简介: 此文包括了两个部分:HDividedBox和VDividedBox.一个是横向,一个是纵向. A DividedBox container measures and lays out its children horizontally or vertically in exactly the same way as a Box container, but it inserts draggable dividers in the gaps between the children. Users can drag any divider to resize the children on each side. HDividedBox: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:Containers:<a href="http://blog.desizen.com/TAG/dividedbox" class="st_tag internal_tag" rel="tag" title="Posts tagged with DividedBox">DividedBox</a><br />
简介:<br />
此文包括了两个部分:HDividedBox和VDividedBox.一个是横向,一个是纵向.</p>
<blockquote><p>A <a href="http://blog.desizen.com/TAG/dividedbox" class="st_tag internal_tag" rel="tag" title="Posts tagged with DividedBox">DividedBox</a> container measures and lays out its children horizontally or vertically in exactly the same way as a <a href="http://blog.desizen.com/TAG/box" class="st_tag internal_tag" rel="tag" title="Posts tagged with box">Box</a> container, but it inserts draggable dividers in the gaps between the children. Users can drag any divider to resize the children on each side.</p></blockquote>
<p>HDividedBox:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;HDividedBox Container&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> width=<span style="color: #ff0000;">&quot;500&quot;</span> height=<span style="color: #ff0000;">&quot;240&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Drag the divider side to side to resize the children.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HDividedBox</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> label=<span style="color: #ff0000;">&quot;Canvas 1&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> backgroundColor=<span style="color: #ff0000;">&quot;#ACACAC&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Add components here&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> label=<span style="color: #ff0000;">&quot;Canvas 2&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> backgroundColor=<span style="color: #ff0000;">&quot;#323232&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Add components here&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HDividedBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>VDividedBox:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;VDividedBox Container&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> width=<span style="color: #ff0000;">&quot;500&quot;</span> height=<span style="color: #ff0000;">&quot;240&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Drag the divider up and down to resize the children.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VDividedBox</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> label=<span style="color: #ff0000;">&quot;Canvas 1&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> backgroundColor=<span style="color: #ff0000;">&quot;#ACACAC&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Add components here&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> label=<span style="color: #ff0000;">&quot;Canvas 2&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> backgroundColor=<span style="color: #ff0000;">&quot;#323232&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Add components here&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VDividedBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/dividedbox" title="DividedBox" rel="tag">DividedBox</a>, <a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/303.html" title="FLEX例子之单项选择按钮(RadioButton) (2008年12月30日)">FLEX例子之单项选择按钮(RadioButton)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/539.html" title="FLEX例子之OLAP数据表(OLAPDataGrid) (2009年2月25日)">FLEX例子之OLAP数据表(OLAPDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/586.html" title="FLEX例子 &#8211; SWFloader(SWF加载器) (2009年3月10日)">FLEX例子 &#8211; SWFloader(SWF加载器)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/621.html" title="FLEX例子之box(定位盒子) (2009年3月24日)">FLEX例子之box(定位盒子)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/533.html" title="FLEX例子之并列列表(TileList) (2009年2月25日)">FLEX例子之并列列表(TileList)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/285.html" title="FLEX例子之日期弹出选择框(DateField) (2008年12月26日)">FLEX例子之日期弹出选择框(DateField)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/537.html" title="FLEX例子之数据表(DataGrid) (2009年2月25日)">FLEX例子之数据表(DataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/37.html" title="flex 4 (2008年8月13日)">flex 4</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/424.html" title="FLEX例子之链接切换条(LinkBar) (2009年2月5日)">FLEX例子之链接切换条(LinkBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/676.html" title="TourDeFlex又更新了 (2009年4月17日)">TourDeFlex又更新了</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/644.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEX例子 &#8211; Canvas(画布)</title>
		<link>http://blog.desizen.com/4lone/628.html</link>
		<comments>http://blog.desizen.com/4lone/628.html#comments</comments>
		<pubDate>Tue, 31 Mar 2009 01:28:52 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=628</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:Containers:Canvas 简介: 简单的介绍了使用Canvas容器后,里面的类似Panel,button等内容如何与之定位的方法. A Canvas layout container defines a rectangular region in which you place child containers and controls. It is the only container that lets you explicitly specify the location of its children within the container by using the x and y properties of each child. &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;horizontal&#34; verticalAlign=&#34;middle&#34; horizontalAlign=&#34;center&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:Containers:<a href="http://blog.desizen.com/TAG/canvas" class="st_tag internal_tag" rel="tag" title="Posts tagged with Canvas">Canvas</a><br />
简介:</p>
<blockquote><p>
简单的介绍了使用<a href="http://blog.desizen.com/TAG/canvas" class="st_tag internal_tag" rel="tag" title="Posts tagged with Canvas">Canvas</a>容器后,里面的类似Panel,button等内容如何与之定位的方法.<br />
A <a href="http://blog.desizen.com/TAG/canvas" class="st_tag internal_tag" rel="tag" title="Posts tagged with Canvas">Canvas</a> layout container defines a rectangular region in which you place child containers and controls. It is the only container that lets you explicitly specify the location of its children within the container by using the x and y properties of each child.</p></blockquote>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--今天打开tourdeflex,发现又更新了,看了作者很重视哦--&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Canvas</span> backgroundColor=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> width=<span style="color: #ff0000;">&quot;580&quot;</span> height=<span style="color: #ff0000;">&quot;180&quot;</span> backgroundAlpha=<span style="color: #ff0000;">&quot;1&quot;</span></span>
<span style="color: #000000;">        borderThickness=<span style="color: #ff0000;">&quot;6&quot;</span> borderColor=<span style="color: #ff0000;">&quot;0x545454&quot;</span> cornerRadius=<span style="color: #ff0000;">&quot;4&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> text=<span style="color: #ff0000;">&quot;The Canvas container lets you place components on top of each other.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Panel 1&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;20&quot;</span>  width=<span style="color: #ff0000;">&quot;240&quot;</span> height=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">            borderColor=<span style="color: #ff0000;">&quot;0xEE1122&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.75&quot;</span><span style="color: #7400FF;">&gt;</span><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--这个例子里面就这个borderAlpha属性最重要,因为是用来设置容器的不透明度用的--&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Panel 2&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> x=<span style="color: #ff0000;">&quot;50&quot;</span> y=<span style="color: #ff0000;">&quot;40&quot;</span>  width=<span style="color: #ff0000;">&quot;240&quot;</span> height=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">            borderColor=<span style="color: #ff0000;">&quot;0x22A050&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.75&quot;</span><span style="color: #7400FF;">&gt;</span><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--使用绝对定位的方法去显示panel的位置,相对于canvas的定位--&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Panel 3&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> x=<span style="color: #ff0000;">&quot;100&quot;</span> y=<span style="color: #ff0000;">&quot;60&quot;</span>  width=<span style="color: #ff0000;">&quot;240&quot;</span> height=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">            borderColor=<span style="color: #ff0000;">&quot;0x3380DD&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.75&quot;</span><span style="color: #7400FF;">&gt;</span><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> x=<span style="color: #ff0000;">&quot;360&quot;</span> y=<span style="color: #ff0000;">&quot;40&quot;</span> width=<span style="color: #ff0000;">&quot;200&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> color=<span style="color: #ff0000;">&quot;0x0050AA&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Use absolute positioning to place the children of a Canvas container.&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> x=<span style="color: #ff0000;">&quot;416&quot;</span> y=<span style="color: #ff0000;">&quot;86&quot;</span> label=<span style="color: #ff0000;">&quot;Absolutly!&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Canvas</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/canvas" title="Canvas" rel="tag">Canvas</a>, <a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/244.html" title="TourDeFlex (2008年11月30日)">TourDeFlex</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/288.html" title="FLEX例子之标记(Label) (2008年12月26日)">FLEX例子之标记(Label)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/63.html" title="FLEX中嵌入html代码 (2008年8月25日)">FLEX中嵌入html代码</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/537.html" title="FLEX例子之数据表(DataGrid) (2009年2月25日)">FLEX例子之数据表(DataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/sitemap" title="SiteMap (2008年6月10日)">SiteMap</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/682.html" title="學長幫我修電腦,诺顿够创意 (2009年4月20日)">學長幫我修電腦,诺顿够创意</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/431.html" title="在flex中应用css样式详解 (2009年2月5日)">在flex中应用css样式详解</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/401.html" title="FLEX例子之弹出按钮(PopUpButton) (2009年1月14日)">FLEX例子之弹出按钮(PopUpButton)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/595.html" title="Flex BugQuash (2009年3月11日)">Flex BugQuash</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/628.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FLEX例子之box(定位盒子)</title>
		<link>http://blog.desizen.com/4lone/621.html</link>
		<comments>http://blog.desizen.com/4lone/621.html#comments</comments>
		<pubDate>Tue, 24 Mar 2009 01:00:01 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=621</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:Containers:Box 这个例子是用来展示定位用的hbox,vbox的例子,大家可以看看,比较简单. 简介:A Box container lays out its children in a single vertical column or a single horizontal row. hbox: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;0&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Panel title=&#34;HBox Container&#34; layout=&#34;vertical&#34; color=&#34;0xffffff&#34; borderAlpha=&#34;0.15&#34; paddingTop=&#34;10&#34; paddingRight=&#34;10&#34; paddingBottom=&#34;10&#34; paddingLeft=&#34;10&#34; horizontalAlign=&#34;center&#34;&#62; &#160; &#60;mx:Label width=&#34;100%&#34; color=&#34;0x323232&#34; textAlign=&#34;center&#34; text=&#34;An HBox container with horizontally aligned children.&#34;/&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:Containers:<a href="http://blog.desizen.com/TAG/box" class="st_tag internal_tag" rel="tag" title="Posts tagged with box">Box</a><br />
这个例子是用来展示定位用的hbox,vbox的例子,大家可以看看,比较简单.<br />
简介:A <a href="http://blog.desizen.com/TAG/box" class="st_tag internal_tag" rel="tag" title="Posts tagged with box">Box</a> container lays out its children in a single vertical column or a single horizontal row.<br />
hbox:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;HBox Container&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
           <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">           text=<span style="color: #ff0000;">&quot;An HBox container with horizontally aligned children.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HBox</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> </span>
<span style="color: #000000;">               paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> color=<span style="color: #ff0000;">&quot;0x707070&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 1&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 2&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 3&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ComboBox</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>vbox:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;VBox Container&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">           text=<span style="color: #ff0000;">&quot;An VBox container with vertically aligned children.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> </span>
<span style="color: #000000;">               paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> color=<span style="color: #ff0000;">&quot;0x707070&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 1&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 2&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Button 3&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ComboBox</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/box" title="box" rel="tag">box</a>, <a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/41.html" title="FLEX 学习资料汇总 (2008年8月14日)">FLEX 学习资料汇总</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/231.html" title="flex-for循环语句 (2008年11月17日)">flex-for循环语句</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/440.html" title="FLEX例子之切换选项卡(TabBar) (2009年2月11日)">FLEX例子之切换选项卡(TabBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/288.html" title="FLEX例子之标记(Label) (2008年12月26日)">FLEX例子之标记(Label)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/317.html" title="FLEX例子之按钮(Button) (2009年1月4日)">FLEX例子之按钮(Button)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/605.html" title="FLEX例子之应用程序控制条(ApplicationControlBar) (2009年3月14日)">FLEX例子之应用程序控制条(ApplicationControlBar)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/647.html" title="说说最近的事 (2009年4月3日)">说说最近的事</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/564.html" title="FLEX例子之图片控件(Image) (2009年3月6日)">FLEX例子之图片控件(Image)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/424.html" title="FLEX例子之链接切换条(LinkBar) (2009年2月5日)">FLEX例子之链接切换条(LinkBar)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/621.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FLEX例子之应用程序控制条(ApplicationControlBar)</title>
		<link>http://blog.desizen.com/4lone/605.html</link>
		<comments>http://blog.desizen.com/4lone/605.html#comments</comments>
		<pubDate>Sat, 14 Mar 2009 05:17:10 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[ApplicationControlBar]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=605</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:Containers:ApplicationControlBar 简介: The ApplicationControlBar container holds components that provide global navigation and application commands. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;10&#34; height=&#34;246&#34; verticalScrollPolicy=&#34;off&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Style&#62; ApplicationControlBar{ backgroundColor:#ACACAC; color: #323232; } &#60;/mx:Style&#62; &#60;mx:ApplicationControlBar dock=&#34;true&#34; paddingTop=&#34;0&#34; paddingBottom=&#34;0&#34; &#62; &#60;mx:Label text=&#34;Docked&#34; fontWeight=&#34;bold&#34; color=&#34;0x000000&#34;/&#62; &#160; &#60;mx:MenuBar id=&#34;myMenuBar&#34; labelField=&#34;@label&#34;&#62; &#60;mx:XMLList&#62; &#60;menuitem label=&#34;MenuItem A&#34; &#62; &#60;menuitem [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:Containers:<a href="http://blog.desizen.com/TAG/applicationcontrolbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ApplicationControlBar">ApplicationControlBar</a><br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/applicationcontrolbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ApplicationControlBar">ApplicationControlBar</a> container holds components that provide global navigation and application commands.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> height=<span style="color: #ff0000;">&quot;246&quot;</span> verticalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        ApplicationControlBar{
            backgroundColor:#ACACAC;
            color: #323232;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> dock=<span style="color: #ff0000;">&quot;true&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;0&quot;</span>  <span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Docked&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> color=<span style="color: #ff0000;">&quot;0x000000&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:MenuBar</span> id=<span style="color: #ff0000;">&quot;myMenuBar&quot;</span> labelField=<span style="color: #ff0000;">&quot;@label&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;MenuItem A&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;SubMenuItem A-1&quot;</span> type=<span style="color: #ff0000;">&quot;check&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;SubMenuItem A-2&quot;</span> type=<span style="color: #ff0000;">&quot;check&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/menuitem<span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;MenuItem B&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;MenuItem C&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;MenuItem D&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;SubMenuItem D-1&quot;</span> type=<span style="color: #ff0000;">&quot;radio&quot;</span> groupName=<span style="color: #ff0000;">&quot;one&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;SubMenuItem D-2&quot;</span> type=<span style="color: #ff0000;">&quot;radio&quot;</span> groupName=<span style="color: #ff0000;">&quot;one&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                    <span style="color: #000000;">&lt;menuitem label=<span style="color: #ff0000;">&quot;SubMenuItem D-3&quot;</span> type=<span style="color: #ff0000;">&quot;radio&quot;</span> groupName=<span style="color: #ff0000;">&quot;one&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;">&lt;/menuitem<span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:XMLList</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:MenuBar</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> color=<span style="color: #ff0000;">&quot;0xACACAC&quot;</span> text=<span style="color: #ff0000;">&quot;A docked ApplicationControlBar appears at the top of the application window.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Spacer</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> width=<span style="color: #ff0000;">&quot;80%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Normal&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> color=<span style="color: #ff0000;">&quot;0x000000&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Search:&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TextInput</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> maxWidth=<span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Spacer</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Go adobe.com&quot;</span> color=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> color=<span style="color: #ff0000;">&quot;0xACACAC&quot;</span> text=<span style="color: #ff0000;">&quot;A normal ApplicationControlBar can appear anywhere in the application.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/applicationcontrolbar" title="ApplicationControlBar" rel="tag">ApplicationControlBar</a>, <a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/59.html" title="flex登陆框实例 (2008年8月25日)">flex登陆框实例</a> (3)</li>
	<li><a href="http://blog.desizen.com/4lone/392.html" title="贴近站长的FLEX应用案例 (2009年1月14日)">贴近站长的FLEX应用案例</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/628.html" title="FLEX例子 &#8211; Canvas(画布) (2009年3月31日)">FLEX例子 &#8211; Canvas(画布)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/231.html" title="flex-for循环语句 (2008年11月17日)">flex-for循环语句</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/271.html" title="FLEX例子之下拉列表框(ComboBox) (2008年12月23日)">FLEX例子之下拉列表框(ComboBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/424.html" title="FLEX例子之链接切换条(LinkBar) (2009年2月5日)">FLEX例子之链接切换条(LinkBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/37.html" title="flex 4 (2008年8月13日)">flex 4</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/553.html" title="FLEX例子之滑动块(Slider) (2009年3月5日)">FLEX例子之滑动块(Slider)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/41.html" title="FLEX 学习资料汇总 (2008年8月14日)">FLEX 学习资料汇总</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/292.html" title="FLEX例子之数字调节器(NumericStepper) (2008年12月26日)">FLEX例子之数字调节器(NumericStepper)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/605.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FLEX例子之Accordion(折叠式面板)</title>
		<link>http://blog.desizen.com/4lone/593.html</link>
		<comments>http://blog.desizen.com/4lone/593.html#comments</comments>
		<pubDate>Tue, 10 Mar 2009 05:55:03 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=593</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:Containers:Accordion 简介: An Accordion navigator container has a collection of child containers, but only one of them at a time is visible. 到这篇日志为止,ui controls的常用flex组件基本都了解了个大概了,以后就进行其他的. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;0&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Panel title=&#34;Accordion Container&#34; layout=&#34;vertical&#34; color=&#34;0xffffff&#34; borderAlpha=&#34;0.15&#34; width=&#34;500&#34; height=&#34;246&#34; paddingTop=&#34;2&#34; paddingRight=&#34;10&#34; paddingBottom=&#34;10&#34; paddingLeft=&#34;10&#34; horizontalAlign=&#34;center&#34;&#62; &#160; &#60;mx:Label width=&#34;100%&#34; color=&#34;0x323232&#34; text=&#34;Select [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:Containers:<a href="http://blog.desizen.com/TAG/accordion" class="st_tag internal_tag" rel="tag" title="Posts tagged with Accordion">Accordion</a><br />
简介:<br />
An <a href="http://blog.desizen.com/TAG/accordion" class="st_tag internal_tag" rel="tag" title="Posts tagged with Accordion">Accordion</a> navigator container has a collection of child containers, but only one of them at a time is visible.<br />
到这篇日志为止,ui controls的常用<a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">flex</a>组件基本都了解了个大概了,以后就进行其他的.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Accordion Container&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> width=<span style="color: #ff0000;">&quot;500&quot;</span> height=<span style="color: #ff0000;">&quot;246&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;2&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Select an Accordion navigator button to change the panel.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Accordion</span> id=<span style="color: #ff0000;">&quot;accorion&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- Define each panel using a VBox container. --&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Accordion Button for Panel 1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Accordion container panel 1&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Accordion Button for Panel 2&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Accordion container panel 2&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Accordion Button for Panel 3&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;Accordion container panel 3&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Accordion</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Programmatically select the panel using a Button control.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HBox</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Select Panel 1&quot;</span> click=<span style="color: #ff0000;">&quot;accorion.selectedIndex=0;&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Select Panel 2&quot;</span> click=<span style="color: #ff0000;">&quot;accorion.selectedIndex=1;&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Select Panel 3&quot;</span> click=<span style="color: #ff0000;">&quot;accorion.selectedIndex=2;&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/accordion" title="Accordion" rel="tag">Accordion</a>, <a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/549.html" title="FLEX例子之弹出提示窗口(Alert) (2009年3月3日)">FLEX例子之弹出提示窗口(Alert)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/542.html" title="FLEX例子之树形菜单(Tree) (2009年2月25日)">FLEX例子之树形菜单(Tree)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/586.html" title="FLEX例子 &#8211; SWFloader(SWF加载器) (2009年3月10日)">FLEX例子 &#8211; SWFloader(SWF加载器)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/420.html" title="FLEX例子之按钮条(ButtonBar) (2009年2月4日)">FLEX例子之按钮条(ButtonBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/392.html" title="贴近站长的FLEX应用案例 (2009年1月14日)">贴近站长的FLEX应用案例</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/553.html" title="FLEX例子之滑动块(Slider) (2009年3月5日)">FLEX例子之滑动块(Slider)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/303.html" title="FLEX例子之单项选择按钮(RadioButton) (2008年12月30日)">FLEX例子之单项选择按钮(RadioButton)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/307.html" title="FLEX例子之文本(Text)文本域(TextArea)和文本输入框(TextInput) (2008年12月30日)">FLEX例子之文本(Text)文本域(TextArea)和文本输入框(TextInput)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/292.html" title="FLEX例子之数字调节器(NumericStepper) (2008年12月26日)">FLEX例子之数字调节器(NumericStepper)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/131.html" title="常用CSS缩写语法总结 (2008年10月8日)">常用CSS缩写语法总结</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/593.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEX例子之VideoDisplay(FLV视频播放器)</title>
		<link>http://blog.desizen.com/4lone/589.html</link>
		<comments>http://blog.desizen.com/4lone/589.html#comments</comments>
		<pubDate>Tue, 10 Mar 2009 05:40:48 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[VideoDisplay]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=589</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:VideoDisplay 本例子用到了一个flv文件,点此下载.下载后解压放入src文件夹内. 简介: The VideoDisplay control lets you play an FLV file in a Flex application. It supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;horizontal&#34; verticalAlign=&#34;top&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;0&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Script&#62; &#60;![CDATA[ [Bindable] private var TitleText:String [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:<a href="http://blog.desizen.com/TAG/videodisplay" class="st_tag internal_tag" rel="tag" title="Posts tagged with VideoDisplay">VideoDisplay</a><br />
本例子用到了一个flv文件,<a href='http://www.joelove.cn/wp-content/uploads/2009/03/videodisplay.rar'>点此</a>下载.下载后解压放入src文件夹内.<br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/videodisplay" class="st_tag internal_tag" rel="tag" title="Posts tagged with VideoDisplay">VideoDisplay</a> control lets you play an FLV file in a <a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">Flex</a> application. It supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object.<br />
例子:<span id="more-589"></span></p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            [Bindable]</span>
<span style="color: #339933;">            private var TitleText:String = &quot;&lt;b&gt;VideoDisplay Control:&lt;/b&gt;&quot; + &quot;\n&quot;  + &quot;Use the buttons to control the video.&quot;;</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> backgroundColor=<span style="color: #ff0000;">&quot;0x323232&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> height=<span style="color: #ff0000;">&quot;240&quot;</span> backgroundAlpha=<span style="color: #ff0000;">&quot;1&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">        borderThickness=<span style="color: #ff0000;">&quot;4&quot;</span> borderColor=<span style="color: #ff0000;">&quot;0x545454&quot;</span> cornerRadius=<span style="color: #ff0000;">&quot;4&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> width=<span style="color: #ff0000;">&quot;75%&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">           htmlText=<span style="color: #ff0000;">&quot;{TitleText}&quot;</span><span style="color: #7400FF;">/&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--使用html方式显示标题--&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VideoDisplay</span> id=<span style="color: #ff0000;">&quot;myVid&quot;</span> height=<span style="color: #ff0000;">&quot;146&quot;</span> width=<span style="color: #ff0000;">&quot;220&quot;</span> source=<span style="color: #ff0000;">&quot;assets/sample_vid.flv&quot;</span> autoPlay=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Play&quot;</span> color=<span style="color: #ff0000;">&quot;0x00000&quot;</span> click=<span style="color: #ff0000;">&quot;myVid.play();&quot;</span><span style="color: #7400FF;">/&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--控制按钮--&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Pause&quot;</span> color=<span style="color: #ff0000;">&quot;0x00000&quot;</span> click=<span style="color: #ff0000;">&quot;myVid.pause();&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Stop&quot;</span> color=<span style="color: #ff0000;">&quot;0x00000&quot;</span> click=<span style="color: #ff0000;">&quot;myVid.stop();&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:HBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/videodisplay" title="VideoDisplay" rel="tag">VideoDisplay</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/605.html" title="FLEX例子之应用程序控制条(ApplicationControlBar) (2009年3月14日)">FLEX例子之应用程序控制条(ApplicationControlBar)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/537.html" title="FLEX例子之数据表(DataGrid) (2009年2月25日)">FLEX例子之数据表(DataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/695.html" title="tourdeflex &#8211; 好久没有学习了 (2009年4月28日)">tourdeflex &#8211; 好久没有学习了</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/278.html" title="FLEX例子之日期选择表(DateChooser) (2008年12月24日)">FLEX例子之日期选择表(DateChooser)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/37.html" title="flex 4 (2008年8月13日)">flex 4</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/628.html" title="FLEX例子 &#8211; Canvas(画布) (2009年3月31日)">FLEX例子 &#8211; Canvas(画布)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/53.html" title="我的第一个FLEX作品 (2008年8月20日)">我的第一个FLEX作品</a> (5)</li>
	<li><a href="http://blog.desizen.com/4lone/266.html" title="FLEX例子之多项选择按钮(checkBox) (2008年12月22日)">FLEX例子之多项选择按钮(checkBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/63.html" title="FLEX中嵌入html代码 (2008年8月25日)">FLEX中嵌入html代码</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/589.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FLEX例子 &#8211; SWFloader(SWF加载器)</title>
		<link>http://blog.desizen.com/4lone/586.html</link>
		<comments>http://blog.desizen.com/4lone/586.html#comments</comments>
		<pubDate>Tue, 10 Mar 2009 05:00:23 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[SWFloader]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=586</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:SWFloader 本例子用到了一个swf文件,swfloader.下载后解压放入src文件夹内. 简介: The SWFLoader control loads and displays a specified SWF file. You typically use SWFLoader for loading one Flex application into a host Flex application. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; &#160; verticalAlign=&#34;top&#34; paddingTop=&#34;0&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; &#160; creationComplete=&#34;init()&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#60;!--这个例子有点意思了,它实现了flex载入外部swf动画,具体的是不是和被载入的swf进行了通信,大 &#160; 家可以自己看下--&#62; &#60;mx:Script&#62; &#60;![CDATA[ private function init():void{ swfObj.content.addEventListener(&#34;SWF_EVENT&#34;,ballHandler); } private [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:<a href="http://blog.desizen.com/TAG/swfloader" class="st_tag internal_tag" rel="tag" title="Posts tagged with SWFloader">SWFloader</a><br />
本例子用到了一个swf文件,<a href='http://www.joelove.cn/wp-content/uploads/2009/03/swfloader.rar'>swfloader</a>.下载后解压放入src文件夹内.<br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/swfloader" class="st_tag internal_tag" rel="tag" title="Posts tagged with SWFloader">SWFLoader</a> control loads and displays a specified SWF file. You typically use <a href="http://blog.desizen.com/TAG/swfloader" class="st_tag internal_tag" rel="tag" title="Posts tagged with SWFloader">SWFLoader</a><br />
for loading one <a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">Flex</a> application into a host <a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">Flex</a> application.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> </span>
&nbsp;
<span style="color: #000000;">verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> </span>
&nbsp;
<span style="color: #000000;">creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--这个例子有点意思了,它实现了flex载入外部swf动画,具体的是不是和被载入的swf进行了通信,大</span>
&nbsp;
<span style="color: #000000;">家可以自己看下--&gt;</span></span>
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function init():void{</span>
<span style="color: #339933;">                swfObj.content.addEventListener(&quot;SWF_EVENT&quot;,ballHandler);</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">            private function ballHandler(ev:Event):void{</span>
<span style="color: #339933;">                txt.text = &quot;Flash content embedded at compile time | &quot; + ev.target.ballCnt + </span>
&nbsp;
<span style="color: #339933;">&quot; gumballs left&quot;;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;SWFLoader Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> width=<span style="color: #ff0000;">&quot;80%&quot;</span> height=<span style="color: #ff0000;">&quot;240&quot;</span> </span>
&nbsp;
<span style="color: #000000;">color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> </span>
&nbsp;
<span style="color: #000000;">verticalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> id=<span style="color: #ff0000;">&quot;txt&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> fontWeight=<span style="color: #ff0000;">&quot;bold&quot;</span> text=<span style="color: #ff0000;">&quot;Flash content embedded at </span>
&nbsp;
<span style="color: #000000;">compile time | 10 gumballs left&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:SWFLoader</span> id=<span style="color: #ff0000;">&quot;swfObj&quot;</span> source=<span style="color: #ff0000;">&quot;@Embed('assets/swf_sample.swf')&quot;</span>  <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/swfloader" title="SWFloader" rel="tag">SWFloader</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/605.html" title="FLEX例子之应用程序控制条(ApplicationControlBar) (2009年3月14日)">FLEX例子之应用程序控制条(ApplicationControlBar)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/424.html" title="FLEX例子之链接切换条(LinkBar) (2009年2月5日)">FLEX例子之链接切换条(LinkBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/440.html" title="FLEX例子之切换选项卡(TabBar) (2009年2月11日)">FLEX例子之切换选项卡(TabBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/553.html" title="FLEX例子之滑动块(Slider) (2009年3月5日)">FLEX例子之滑动块(Slider)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/420.html" title="FLEX例子之按钮条(ButtonBar) (2009年2月4日)">FLEX例子之按钮条(ButtonBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/401.html" title="FLEX例子之弹出按钮(PopUpButton) (2009年1月14日)">FLEX例子之弹出按钮(PopUpButton)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/695.html" title="tourdeflex &#8211; 好久没有学习了 (2009年4月28日)">tourdeflex &#8211; 好久没有学习了</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/621.html" title="FLEX例子之box(定位盒子) (2009年3月24日)">FLEX例子之box(定位盒子)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/266.html" title="FLEX例子之多项选择按钮(checkBox) (2008年12月22日)">FLEX例子之多项选择按钮(checkBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/542.html" title="FLEX例子之树形菜单(Tree) (2009年2月25日)">FLEX例子之树形菜单(Tree)</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/586.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEX例子之进程条(ProgressBar)</title>
		<link>http://blog.desizen.com/4lone/568.html</link>
		<comments>http://blog.desizen.com/4lone/568.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:25:08 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[ProgressBar]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=568</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:ProgressBar 简介: The ProgressBar control provides a visual representation of the progress of a task over time. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; horizontalAlign=&#34;center&#34; backgroundGradientColors=&#34;[0x000000,0x323232]&#34; paddingTop=&#34;0&#34; viewSourceURL=&#34;srcview/index.html&#34;&#62; &#160; &#60;mx:Script&#62; &#60;![CDATA[ &#160; private var j:uint=10; &#160; // Event handler function to set the value of the // ProgressBar control. private function runit():void [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:<a href="http://blog.desizen.com/TAG/progressbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ProgressBar">ProgressBar</a><br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/progressbar" class="st_tag internal_tag" rel="tag" title="Posts tagged with ProgressBar">ProgressBar</a> control provides a visual representation of the progress of a task over time.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
&nbsp;
<span style="color: #339933;">          private var j:uint=10;</span>
&nbsp;
<span style="color: #339933;">          // Event handler function to set the value of the </span>
<span style="color: #339933;">          // ProgressBar control.</span>
<span style="color: #339933;">          private function runit():void</span>
<span style="color: #339933;">          {</span>
<span style="color: #339933;">              if(j&lt;=100)</span>
<span style="color: #339933;">              {</span>
<span style="color: #339933;">                 bar.setProgress(j,100);</span>
<span style="color: #339933;">                 bar.label= &quot;CurrentProgress&quot; + &quot; &quot; + j + &quot;%&quot;;</span>
<span style="color: #339933;">                 j+=10;</span>
<span style="color: #339933;">              }</span>
<span style="color: #339933;">              if(j&gt;100)</span>
<span style="color: #339933;">              {</span>
<span style="color: #339933;">                 j=0;</span>
<span style="color: #339933;">              }</span>
<span style="color: #339933;">          }</span>
<span style="color: #339933;">        ]]&gt;    </span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;ProgressBar Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            text=<span style="color: #ff0000;">&quot;Click the button to increment the progress bar.&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> id=<span style="color: #ff0000;">&quot;Speed&quot;</span> label=<span style="color: #ff0000;">&quot;Run&quot;</span> click=<span style="color: #ff0000;">&quot;runit();&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ProgressBar</span> id=<span style="color: #ff0000;">&quot;bar&quot;</span> labelPlacement=<span style="color: #ff0000;">&quot;bottom&quot;</span> themeColor=<span style="color: #ff0000;">&quot;#EE1122&quot;</span> minimum=<span style="color: #ff0000;">&quot;0&quot;</span> visible=<span style="color: #ff0000;">&quot;true&quot;</span> maximum=<span style="color: #ff0000;">&quot;100&quot;</span></span>
<span style="color: #000000;">             color=<span style="color: #ff0000;">&quot;0x323232&quot;</span>    label=<span style="color: #ff0000;">&quot;CurrentProgress 0%&quot;</span> direction=<span style="color: #ff0000;">&quot;right&quot;</span> mode=<span style="color: #ff0000;">&quot;manual&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/progressbar" title="ProgressBar" rel="tag">ProgressBar</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/285.html" title="FLEX例子之日期弹出选择框(DateField) (2008年12月26日)">FLEX例子之日期弹出选择框(DateField)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/48.html" title="flex 入门教程 (2008年8月18日)">flex 入门教程</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/186.html" title="FLEX作品&#8211;地图控件 (2008年10月23日)">FLEX作品&#8211;地图控件</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/539.html" title="FLEX例子之OLAP数据表(OLAPDataGrid) (2009年2月25日)">FLEX例子之OLAP数据表(OLAPDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/447.html" title="FLEX例子之List(列表) (2009年2月16日)">FLEX例子之List(列表)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/527.html" title="FLEX例子之横向列表(HorizontalList) (2009年2月25日)">FLEX例子之横向列表(HorizontalList)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/553.html" title="FLEX例子之滑动块(Slider) (2009年3月5日)">FLEX例子之滑动块(Slider)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/305.html" title="FLEX例子之富文本编辑器(RichTextEditor) (2008年12月30日)">FLEX例子之富文本编辑器(RichTextEditor)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/644.html" title="FLEX例子 &#8211; DividedBox(分割盒子) (2009年4月2日)">FLEX例子 &#8211; DividedBox(分割盒子)</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/568.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEX例子之图片控件(Image)</title>
		<link>http://blog.desizen.com/4lone/564.html</link>
		<comments>http://blog.desizen.com/4lone/564.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 13:19:07 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=564</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:Image 文中用到的图片下载地址:点此下载,下载后整个images文件夹放到src目录即可.其实只是用到了二张图片. 简介: The Alert control is a pop-up dialog box that can contain a message, a title, buttons (any combination of OK, Cancel, Yes, and No) and an icon. The Alert control is modal, which means it will retain focus until the user closes it. 例子: &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;horizontal&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:<a href="http://blog.desizen.com/TAG/image" class="st_tag internal_tag" rel="tag" title="Posts tagged with Image">Image</a><br />
文中用到的图片下载地址:<a href='http://www.joelove.cn/wp-content/uploads/2009/02/horizontalist.rar'>点此</a>下载,下载后整个images文件夹放到src目录即可.其实只是用到了二张图片.<br />
简介:<br />
The Alert control is a pop-up dialog <a href="http://blog.desizen.com/TAG/box" class="st_tag internal_tag" rel="tag" title="Posts tagged with box">box</a> that can contain a message, a title, buttons (any combination of OK, Cancel, Yes, and No) and an icon. The Alert control is modal, which means it will retain focus until the user closes it.<br />
例子:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function smoothImage(ev:Event):void{</span>
<span style="color: #339933;">                //set image smoothing so image looks better when transformed.</span>
<span style="color: #339933;">                var bmp:Bitmap = ev.target.content as Bitmap;</span>
<span style="color: #339933;">                bmp.smoothing = true;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;Image Samples&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;10&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> borderColor=<span style="color: #ff0000;">&quot;0xACACAC&quot;</span> borderThickness=<span style="color: #ff0000;">&quot;1&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">             paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;5&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;5&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> text=<span style="color: #ff0000;">&quot;Sample of image embeded at compile time.&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Image</span> id=<span style="color: #ff0000;">&quot;embededImage&quot;</span> source=<span style="color: #ff0000;">&quot;@Embed('images/compass.jpg')&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;smoothImage(event);&quot;</span><span style="color: #7400FF;">/&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--原来使用@是在编译的时候就嵌入的--&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> borderColor=<span style="color: #ff0000;">&quot;0xACACAC&quot;</span> borderThickness=<span style="color: #ff0000;">&quot;1&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">             paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;5&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;5&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;5&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> text=<span style="color: #ff0000;">&quot;Sample of image loaded at run-time.&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Image</span> id=<span style="color: #ff0000;">&quot;loadedImage&quot;</span> source=<span style="color: #ff0000;">&quot;images/backpack.jpg&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;smoothImage(event);&quot;</span><span style="color: #7400FF;">/&gt;</span><span style="color: #808080; font-style: italic;">&lt;!--而这个不加@是在运行时才载入--&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/image" title="Image" rel="tag">Image</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/39.html" title="FLEX BUILDER 3 (2008年8月14日)">FLEX BUILDER 3</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/199.html" title="KingCMS之模块管理 (2008年10月27日)">KingCMS之模块管理</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/589.html" title="FLEX例子之VideoDisplay(FLV视频播放器) (2009年3月10日)">FLEX例子之VideoDisplay(FLV视频播放器)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/63.html" title="FLEX中嵌入html代码 (2008年8月25日)">FLEX中嵌入html代码</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/553.html" title="FLEX例子之滑动块(Slider) (2009年3月5日)">FLEX例子之滑动块(Slider)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/535.html" title="FLEX例子之高级数据表(AdvancedDataGrid) (2009年2月25日)">FLEX例子之高级数据表(AdvancedDataGrid)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/447.html" title="FLEX例子之List(列表) (2009年2月16日)">FLEX例子之List(列表)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/278.html" title="FLEX例子之日期选择表(DateChooser) (2008年12月24日)">FLEX例子之日期选择表(DateChooser)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/285.html" title="FLEX例子之日期弹出选择框(DateField) (2008年12月26日)">FLEX例子之日期弹出选择框(DateField)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/386.html" title="FLEX面试题 (2009年1月12日)">FLEX面试题</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/564.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FLEX例子之滑动块(Slider)</title>
		<link>http://blog.desizen.com/4lone/553.html</link>
		<comments>http://blog.desizen.com/4lone/553.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 08:58:46 +0000</pubDate>
		<dc:creator>joel</dc:creator>
				<category><![CDATA[FLEX]]></category>
		<category><![CDATA[Slider]]></category>
		<category><![CDATA[TourDeFlex]]></category>
		<category><![CDATA[例子]]></category>

		<guid isPermaLink="false">http://www.joelove.cn/?p=553</guid>
		<description><![CDATA[这个例子进行的是Tourdeflex:UI Controls:Other Controls:HSlider and VSlider 文中用到的图片下载地址:点此下载,下载后整个images文件夹放到src目录即可.其实只是用到了几个图片. 简介: The Slider class is the base class for the Flex slider controls. The slider controls let users select a value by moving a slider thumb between the end points of the slider track. The current value of the slider is determined by the relative location of the thumb [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子进行的是<a href="http://blog.desizen.com/TAG/tourdeflex" class="st_tag internal_tag" rel="tag" title="Posts tagged with TourDeFlex">Tourdeflex</a>:UI Controls:Other Controls:HSlider and VSlider<br />
文中用到的图片下载地址:<a href='http://www.joelove.cn/wp-content/uploads/2009/02/horizontalist.rar'>点此</a>下载,下载后整个images文件夹放到src目录即可.其实只是用到了几个图片.<br />
简介:<br />
The <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">Slider</a> class is the base class for the <a href="http://blog.desizen.com/TAG/flex" class="st_tag internal_tag" rel="tag" title="Posts tagged with FLEX">Flex</a> <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a> controls. The <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a> controls let users select a value by moving a <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a> thumb between the end points of the <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a> track. The current value of the <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a> is determined by the relative location of the thumb between the end points of the <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a>, corresponding to the <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">slider</a>&#8217;s minimum and maximum values. The <a href="http://blog.desizen.com/TAG/slider" class="st_tag internal_tag" rel="tag" title="Posts tagged with Slider">Slider</a> class is subclassed by HSlider and VSlider.<br />
例子:<br />
HSlider:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span> viewSourceURL=<span style="color: #ff0000;">&quot;srcview/index.html&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Script</span> <span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            private var imageWidth:Number = <span style="color: #cc66cc;">0</span>;</span>
<span style="color: #000000;">            private var imageHeight:Number = <span style="color: #cc66cc;">0</span>;</span>
<span style="color: #000000;">            private function changeSize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                boxImage.width = <span style="color: #66cc66;">&#40;</span>imageWidth*hSlider.value<span style="color: #66cc66;">&#41;</span>/<span style="color: #cc66cc;">100</span>;</span>
<span style="color: #000000;">                boxImage.height = <span style="color: #66cc66;">&#40;</span>imageHeight*hSlider.value<span style="color: #66cc66;">&#41;</span>/<span style="color: #cc66cc;">100</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">            private function smoothImage<span style="color: #66cc66;">&#40;</span>ev:Event<span style="color: #66cc66;">&#41;</span>:void<span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                //set image smoothing so image looks better when transformed.</span>
<span style="color: #000000;">                var bmp:Bitmap = ev.target.content as Bitmap;</span>
<span style="color: #000000;">                bmp.smoothing = true;</span>
&nbsp;
<span style="color: #000000;">                imageWidth=boxImage.width;</span>
<span style="color: #000000;">                imageHeight=boxImage.height;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Script</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        HSlider{
            color:#323232;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;HSlider Control&quot;</span> layout=<span style="color: #ff0000;">&quot;vertical&quot;</span> height=<span style="color: #ff0000;">&quot;240&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span> horizontalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span></span>
<span style="color: #000000;">         verticalScrollPolicy=<span style="color: #ff0000;">&quot;off&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;2&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;bottom&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Image</span> id=<span style="color: #ff0000;">&quot;boxImage&quot;</span> source=<span style="color: #ff0000;">&quot;@Embed('images/backpack.jpg')&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;smoothImage(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
         <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">           text=<span style="color: #ff0000;">&quot;Drag the slider to resize the image.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:HSlider</span> id=<span style="color: #ff0000;">&quot;hSlider&quot;</span> minimum=<span style="color: #ff0000;">&quot;10&quot;</span> maximum=<span style="color: #ff0000;">&quot;100&quot;</span> value=<span style="color: #ff0000;">&quot;100&quot;</span> dataTipPlacement=<span style="color: #ff0000;">&quot;top&quot;</span> tickColor=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            snapInterval=<span style="color: #ff0000;">&quot;1&quot;</span> tickInterval=<span style="color: #ff0000;">&quot;10&quot;</span> labels=<span style="color: #ff0000;">&quot;['10%','100%']&quot;</span> allowTrackClick=<span style="color: #ff0000;">&quot;true&quot;</span> </span>
<span style="color: #000000;">            liveDragging=<span style="color: #ff0000;">&quot;true&quot;</span> change=<span style="color: #ff0000;">&quot;changeSize()&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>VSlider:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">    horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> backgroundGradientColors=<span style="color: #ff0000;">&quot;[0x000000,0x323232]&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Script</span> <span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            private var imageWidth:Number = <span style="color: #cc66cc;">0</span>;</span>
<span style="color: #000000;">            private var imageHeight:Number = <span style="color: #cc66cc;">0</span>;</span>
<span style="color: #000000;">            private function changeSize<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                boxImage.width = <span style="color: #66cc66;">&#40;</span>imageWidth*hSlider.value<span style="color: #66cc66;">&#41;</span>/<span style="color: #cc66cc;">100</span>;</span>
<span style="color: #000000;">                boxImage.height = <span style="color: #66cc66;">&#40;</span>imageHeight*hSlider.value<span style="color: #66cc66;">&#41;</span>/<span style="color: #cc66cc;">100</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">            private function smoothImage<span style="color: #66cc66;">&#40;</span>ev:Event<span style="color: #66cc66;">&#41;</span>:void<span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                //set image smoothing so image looks better when transformed.</span>
<span style="color: #000000;">                var bmp:Bitmap = ev.target.content as Bitmap;</span>
<span style="color: #000000;">                bmp.smoothing = true;</span>
&nbsp;
<span style="color: #000000;">                imageWidth=boxImage.width</span>
<span style="color: #000000;">                imageHeight=boxImage.height;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Script</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        VSlider{
            color:#323232;
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Panel</span> title=<span style="color: #ff0000;">&quot;VSlider Control&quot;</span> layout=<span style="color: #ff0000;">&quot;horizontal&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> color=<span style="color: #ff0000;">&quot;0xffffff&quot;</span> borderAlpha=<span style="color: #ff0000;">&quot;0.15&quot;</span></span>
<span style="color: #000000;">         paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;10&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;10&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;10&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span> verticalAlign=<span style="color: #ff0000;">&quot;bottom&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VSlider</span> id=<span style="color: #ff0000;">&quot;hSlider&quot;</span> minimum=<span style="color: #ff0000;">&quot;10&quot;</span> maximum=<span style="color: #ff0000;">&quot;100&quot;</span> value=<span style="color: #ff0000;">&quot;100&quot;</span> dataTipPlacement=<span style="color: #ff0000;">&quot;top&quot;</span> tickColor=<span style="color: #ff0000;">&quot;0x323232&quot;</span></span>
<span style="color: #000000;">            snapInterval=<span style="color: #ff0000;">&quot;1&quot;</span> tickInterval=<span style="color: #ff0000;">&quot;10&quot;</span> labels=<span style="color: #ff0000;">&quot;['10%','100%']&quot;</span> allowTrackClick=<span style="color: #ff0000;">&quot;true&quot;</span> </span>
<span style="color: #000000;">            liveDragging=<span style="color: #ff0000;">&quot;true&quot;</span> change=<span style="color: #ff0000;">&quot;changeSize()&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;160&quot;</span> borderColor=<span style="color: #ff0000;">&quot;0xACACAC&quot;</span> borderThickness=<span style="color: #ff0000;">&quot;1&quot;</span> borderStyle=<span style="color: #ff0000;">&quot;solid&quot;</span> horizontalAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">              verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span> paddingTop=<span style="color: #ff0000;">&quot;5&quot;</span> paddingRight=<span style="color: #ff0000;">&quot;5&quot;</span> paddingBottom=<span style="color: #ff0000;">&quot;5&quot;</span> paddingLeft=<span style="color: #ff0000;">&quot;5&quot;</span> horizontalGap=<span style="color: #ff0000;">&quot;50&quot;</span> <span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> color=<span style="color: #ff0000;">&quot;0x323232&quot;</span> textAlign=<span style="color: #ff0000;">&quot;center&quot;</span></span>
<span style="color: #000000;">           text=<span style="color: #ff0000;">&quot;Drag the slider to resize the image.&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
&nbsp;
             <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Image</span> id=<span style="color: #ff0000;">&quot;boxImage&quot;</span> source=<span style="color: #ff0000;">&quot;@Embed('images/boots.jpg')&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;smoothImage(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Panel</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>


	标签：<a href="http://blog.desizen.com/TAG/flex" title="FLEX" rel="tag">FLEX</a>, <a href="http://blog.desizen.com/TAG/slider" title="Slider" rel="tag">Slider</a>, <a href="http://blog.desizen.com/TAG/tourdeflex" title="TourDeFlex" rel="tag">TourDeFlex</a>, <a href="http://blog.desizen.com/TAG/%e4%be%8b%e5%ad%90" title="例子" rel="tag">例子</a><br />

	<h4>相关日志</h4>
	<ul class="st-related-posts">
	<li><a href="http://blog.desizen.com/4lone/542.html" title="FLEX例子之树形菜单(Tree) (2009年2月25日)">FLEX例子之树形菜单(Tree)</a> (2)</li>
	<li><a href="http://blog.desizen.com/4lone/551.html" title="FLEX例子之颜色拾取器(ColorPicker) (2009年3月4日)">FLEX例子之颜色拾取器(ColorPicker)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/41.html" title="FLEX 学习资料汇总 (2008年8月14日)">FLEX 学习资料汇总</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/292.html" title="FLEX例子之数字调节器(NumericStepper) (2008年12月26日)">FLEX例子之数字调节器(NumericStepper)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/583.html" title="FlexBlog (2009年3月9日)">FlexBlog</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/271.html" title="FLEX例子之下拉列表框(ComboBox) (2008年12月23日)">FLEX例子之下拉列表框(ComboBox)</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/227.html" title="学java挺累的 (2008年11月13日)">学java挺累的</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/48.html" title="flex 入门教程 (2008年8月18日)">flex 入门教程</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/440.html" title="FLEX例子之切换选项卡(TabBar) (2009年2月11日)">FLEX例子之切换选项卡(TabBar)</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/695.html" title="tourdeflex &#8211; 好久没有学习了 (2009年4月28日)">tourdeflex &#8211; 好久没有学习了</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.desizen.com/4lone/553.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

