<?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; Image</title>
	<atom:link href="http://blog.desizen.com/TAG/image/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例子之图片控件(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 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.<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/41.html" title="FLEX 学习资料汇总 (2008年8月14日)">FLEX 学习资料汇总</a> (0)</li>
	<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/593.html" title="FLEX例子之Accordion(折叠式面板) (2009年3月10日)">FLEX例子之Accordion(折叠式面板)</a> (0)</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/278.html" title="FLEX例子之日期选择表(DateChooser) (2008年12月24日)">FLEX例子之日期选择表(DateChooser)</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/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/431.html" title="在flex中应用css样式详解 (2009年2月5日)">在flex中应用css样式详解</a> (0)</li>
	<li><a href="http://blog.desizen.com/4lone/386.html" title="FLEX面试题 (2009年1月12日)">FLEX面试题</a> (1)</li>
	<li><a href="http://blog.desizen.com/4lone/589.html" title="FLEX例子之VideoDisplay(FLV视频播放器) (2009年3月10日)">FLEX例子之VideoDisplay(FLV视频播放器)</a> (1)</li>
</ul>

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

