<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:gAcl="http://schemas.google.com/acl/2007" xmlns:sites="http://schemas.google.com/sites/2008" xmlns:gs="http://schemas.google.com/spreadsheets/2006" xmlns:dc="http://purl.org/dc/terms" xmlns:batch="http://schemas.google.com/gdata/batch" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0"><id>http://sites.google.com/feeds/content/hetao.name/hetao</id><updated>2010-07-29T20:22:38.748Z</updated><title>Posts of Flex专栏</title><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao" /><link rel="http://schemas.google.com/g/2005#post" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao" /><link rel="http://schemas.google.com/g/2005#batch" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/batch" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao?parent=5117107558382039798&amp;kind=announcement" /><generator version="1" uri="http://sites.google.com">Google Sites</generator><openSearch:startIndex>1</openSearch:startIndex><entry gd:etag="&quot;YD0peyA.&quot;"><id>http://sites.google.com/feeds/content/hetao.name/hetao/5030634461892614123</id><published>2009-05-19T06:39:13.786Z</published><updated>2009-05-19T06:40:39.204Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-19T06:40:39.194Z</app:edited><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/sites/2008#announcement" label="announcement" /><title>Flex的多国语言支持</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr">下面共5步简单的介绍了这个操作：<br /><br />1.在\sdks\3.3.0\frameworks\locale目录下建立zh_TW和zh_CN目录<br /><br />2.在FLEX项目的根目录下创建resources\locale\en_US和 resources\locale\zh_CN目录<br /><br />3.在FLEX项目中<br /><br />右键—&gt;Properties—&gt;Flex Build Path-&gt;Source path—&gt;Add Folder<br />在弹出的输入框中输入 resources\locale\{locale}<br /><br />4.在FLEX项目中<br /><br />右键—&gt;Properties—&gt;Flex Compiler<br />在Additional compiler arguments中输入 -locale en_US zh_CN<br /><br />5.源码<br /><br /><div class="sites-embed-align-left-wrapping-off"><div class="sites-embed-border-on sites-embed" style="width:600px;"><h4 class="sites-embed-title">源码</h4><div class="sites-embed-content sites-embed-type-text"><div class="sites-embed-content-textbox"><div dir="ltr">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br /> &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" &gt;  <br />     &lt;mx:Script&gt;       <br />     &lt;![CDATA[            <br />     import mx.resources.ResourceManager;         <br /> <br />     private function changeLocale(locale:String):void{    <br />         // 修改语言                      <br />         resourceManager.localeChain=[locale];           <br />     }       <br />     ]]&gt;   <br />     &lt;/mx:Script&gt;  <br /> <br />     &lt;mx:Metadata&gt;<br />     [ResourceBundle("admin")]<br />     &lt;/mx:Metadata&gt;<br /> <br />     &lt;mx:ApplicationControlBar width="400"&gt;            <br />         &lt;mx:Label text="Content"  width="100%"/&gt;        <br />         &lt;mx:Button label="eng" click="changeLocale('en_US')" /&gt;       <br />         &lt;mx:Button label="ch" click="changeLocale('zh_CN')" /&gt;   <br />     &lt;/mx:ApplicationControlBar&gt;<br /> <br />     &lt;mx:Text text="{resourceManager.getString('admin','admin.name')}"  width="400" height="240"/&gt;<br /> &lt;/mx:Application&gt;</div></div></div></div></div><br /></div></td></tr></tbody></table></div></content><link rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5117107558382039798" /><link rel="alternate" type="text/html" href="http://sites.google.com/a/hetao.name/hetao/flex-zhuan-lan/flexdeduoguoyuyanzhichi" /><link rel="http://schemas.google.com/sites/2008#revision" type="application/atom+xml" href="http://sites.google.com/feeds/revision/hetao.name/hetao/5030634461892614123" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5030634461892614123" /><link rel="edit" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5030634461892614123" /><author><name>何涛</name><email>hetao@hetao.name</email></author><sites:pageName>flexdeduoguoyuyanzhichi</sites:pageName><sites:revision>1</sites:revision></entry><entry gd:etag="&quot;YD4peyA.&quot;"><id>http://sites.google.com/feeds/content/hetao.name/hetao/5072077332939621815</id><published>2009-05-15T04:22:23.238Z</published><updated>2009-05-15T04:26:29.145Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-15T04:26:29.144Z</app:edited><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/sites/2008#announcement" label="announcement" /><title>Flex保存文件(FileReference.save)</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr">这个方法是flash10新增的，详细如下：<br /><br /><table cellpadding="0" cellspacing="0"><tbody><tr><td>save</td><td>()</td><td>方法</td><td> </td></tr></tbody></table><div><code> public function save(data:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/specialTypes.html#*" rel="nofollow">*</a>, defaultFileName:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/String.html" rel="nofollow">String</a> = null):<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/specialTypes.html#void" rel="nofollow">void</a></code><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="white-space:nowrap" valign="top"><b>语言版本: </b></td><td>ActionScript 3.0</td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="white-space:nowrap" valign="top"><b>运行时版本: </b></td><td>Flash Player 10, AIR 1.5</td></tr></tbody></table><p>
          打开一个对话框，允许用户将文件保存到本地文件系统。<span>虽然 Flash Player 没有限制可上载、下载、加载或保存的文件的大小，但是播放器正式支持的文件大小最大为 100 MB。</span>
          
          </p><p>
            <code>save()</code> 方法首先打开一个操作系统对话框，让用户输入文件名并在本地计算机上选择用于保存文件的位置。当用户选择了位置并确认保存操作时（例如通过单击“保存”），保存过程即会开始。侦听器接收事件来指示保存操作的进度、成功或失败。为了在调用 <code>save()</code> 后确定对话框和保存操作的状态，ActionScript 代码必须对 <code>cancel</code>、<code>open</code>、<code>progress</code> 和 <code>complete</code> 等事件进行侦听。
          </p>
          
          <p>
            <code>FileReference.upload()</code>、<code>FileReference.download()</code>、<code>FileReference.load()</code> 和 <code>FileReference.save()</code>
函数均不分块。这些函数在调用之后即返回，而不会等待文件传输完成。此外，如果 FileReference
对象离开作用域，则该对象中尚未完成的任何事务将在离开作用域时被取消。只要希望上载、下载、加载或保存能继续，就应确保将
FileReference 对象保留在作用域中。 </p>
          
          <p>
            在成功保存文件之后，将使用本地文件的属性填充 FileReference 对象的属性。如果保存成功，将调度 <code>complete</code> 事件。
          </p>
          
          <p>
            每次只能执行一个 <code>browse()</code> 或 <code>save()</code> 会话（因为每次只能调用一个对话框）。
          </p>
          
          <p>在 Flash Player 中，只有在响应用户事件（例如，在鼠标单击或按键事件的事件处理函数中）时才能成功调用此方法。否则，调用此方法将导致 Flash Player 引发 Error 异常。此限制不适用于应用程序沙箱中的 AIR 内容。</p>
          
        <p><span> 参数 </span></p><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="20"><br /></td><td><code><span>data</span>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/specialTypes.html#*" rel="nofollow">*</a></code> — 
              要保存的数据。数据可以采用几种格式之一，并将进行适当处理：
              <ul><li>
                  如果值为 <code>null</code>，则应用程序将引发 ArgumentError 异常。
                </li><li>如果值为 String，则将其保存为 UTF-8 文本文件。</li><li>如果值为 XML，则会以 XML 格式将其写入到文本文件，并保留所有格式设置。</li><li>如果值为 ByteArray 对象，则会将其逐字写入到数据文件。</li><li>
                  如果值并非以上任何一种，则 <code>save()</code> 方法将调用对象的 <code>toString()</code> 方法，将数据转换为字符串，然后将数据保存为文本文件。如果该操作失败，则应用程序将引发 ArgumentError 异常。
                </li></ul>
              
            </td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><span>defaultFileName</span>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/String.html" rel="nofollow">String</a></code> (default = <code>null</code>)<code /> — 
              对话框中显示的要保存文件的默认文件名。此字符串不能包含以下字符：/ \ : * ?  " &lt; &gt; | %
              <p>
                
                如果 File 对象调用此方法，则文件名将为 File 对象所引用文件的名称。（AIR File 类扩展了 FileReference 类。）
              </p>
              
            </td></tr></tbody></table><br /><span>事件</span><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="20"><br /></td><td><code><b>open</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/Event.html" rel="nofollow">Event</a></code> — 当下载操作开始时调度。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><b>progress</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/ProgressEvent.html" rel="nofollow">ProgressEvent</a></code> — 在文件下载操作期间进行定期调度。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><b>complete</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/Event.html" rel="nofollow">Event</a></code> — 当文件下载操作成功完成时调度。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><b>cancel</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/Event.html" rel="nofollow">Event</a></code> — 当用户取消对话框时调度。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><b>select</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/Event.html" rel="nofollow">Event</a></code> — 当用户从对话框中选择要下载的文件时调度。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><b>ioError</b>:<a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/events/IOErrorEvent.html" rel="nofollow">IOErrorEvent</a></code> — 读取或传输文件期间发生输入/输出错误时调度。</td></tr></tbody></table><br /><span>引发</span><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td width="20"><br /></td><td><code><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/errors/IllegalOperationError.html" rel="nofollow">IllegalOperationError</a> </code> — 在以下情况下引发：1) 另一个浏览会话正在进行中；每次仅能执行一个文件浏览会话。2) 要下载的文件的名称中包含禁止使用的字符。3) 用户 mms.cfg 文件中的某个设置禁止此操作。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/ArgumentError.html" rel="nofollow">ArgumentError</a> </code> — 
              如果 <code>data</code> 的类型不是 ByteArray，并且不具有 <code>toString()</code> 方法，则将引发异常。如果 <code>data</code> 的类型不是 XML，并且不具有 <code>toXMLString()</code> 方法，则将引发异常。
            </td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/Error.html" rel="nofollow">Error</a> </code> — 为了响应用户动作（如鼠标事件或按键事件），将不会调用此方法。</td></tr><tr><td> </td></tr><tr><td width="20"><br /></td><td><code><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/errors/MemoryError.html" rel="nofollow">MemoryError</a> </code> — 如果 Flash Player 无法为该文件分配内存，则可能会发生此错误。文件可能太大，或者可用的内存可能太小。</td></tr></tbody></table><p><span>另请参见</span></p><div><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/net/FileReferenceList.html#browse%28%29" rel="nofollow">FileReferenceList.browse()</a><br /><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/net/FileReferenceList.html#load%28%29" rel="nofollow">FileReferenceList.load()</a><br /><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/net/FileReferenceList.html#data" rel="nofollow">FileReferenceList.data</a><br /><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/net/FileReferenceList.html#upload" rel="nofollow">FileReferenceList.upload</a><br /><a href="http://help.adobe.com/zh_CN/AS3LCR/Flash_10.0/flash/net/FileReferenceList.html#download" rel="nofollow">FileReferenceList.download</a><br /><a href="http://help.adobe.com/zh_CN/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cf8.html" rel="nofollow">Working with data files</a></div></div><br /></div></td></tr></tbody></table></div></content><link rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5117107558382039798" /><link rel="alternate" type="text/html" href="http://sites.google.com/a/hetao.name/hetao/flex-zhuan-lan/flexbaocunwenjianfilereferencesave" /><link rel="http://schemas.google.com/sites/2008#revision" type="application/atom+xml" href="http://sites.google.com/feeds/revision/hetao.name/hetao/5072077332939621815" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5072077332939621815" /><link rel="edit" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5072077332939621815" /><author><name>何涛</name><email>hetao@hetao.name</email></author><sites:pageName>flexbaocunwenjianfilereferencesave</sites:pageName><sites:revision>2</sites:revision></entry><entry gd:etag="&quot;YD4peyA.&quot;"><id>http://sites.google.com/feeds/content/hetao.name/hetao/6308730743441735556</id><published>2009-05-15T03:02:05.607Z</published><updated>2009-05-15T03:10:17.145Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-15T03:10:17.144Z</app:edited><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/sites/2008#announcement" label="announcement" /><title>Flex3截屏最简单的方法</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr">用ImageSnapshot里的静态方法可以轻松的取到，下面是例子，这个例子我把它编成了base64 的代码，在flash端得到这个代码后可以轻松的通过各种方法发给php等服务端来保存成自己的图片。<br /><br />
        
        
        
      
        

        

      
        
        
      
        
        
      
          <div class="sites-embed-align-left-wrapping-off"><div class="sites-embed-border-on sites-embed" style="width:600px;"><h4 class="sites-embed-title">as源码</h4><div class="sites-embed-content sites-embed-type-text"><div class="sites-embed-content-textbox"><div dir="ltr">&lt;?xml version="1.0" encoding="utf-8"?&gt;<br />&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"&gt;<br />    &lt;mx:Script&gt;<br />        &lt;![CDATA[<br />        <br />        <br />        import mx.graphics.ImageSnapshot;<br />        import mx.core.UIComponent;<br />        import mx.controls.Alert;<br />        <br />        public function takeSnapshot(target:UIComponent) :void<br />        {<br />            var shot:ImageSnapshot = ImageSnapshot.captureImage(target);<br />            Alert.show(ImageSnapshot.encodeImageAsBase64(shot));<br />        }<br />        <br />        <br />        ]]&gt;<br />        <br />    &lt;/mx:Script&gt;<br /><br />    &lt;mx:Button click="takeSnapshot(targetPanel)" label="Save Image" x="10" y="100"/&gt;<br />    <br />    &lt;mx:Panel id="targetPanel" layout="vertical"&gt;<br />    &lt;mx:Label text="Hello World"  y="9"/&gt;<br />    &lt;mx:Image  source="http://www.google.cn/images/nav_logo4.png"/&gt;<br />    &lt;/mx:Panel&gt;<br /><br />&lt;/mx:Application&gt;<br /><br /></div></div></div></div></div>
        
      <br />这是php例子，代码更简单。<br />
        
        
        
      
        

        

      
        
        
      
        
        
      
          <div class="sites-embed-align-left-wrapping-off"><div class="sites-embed-border-on sites-embed" style="width:600px;"><h4 class="sites-embed-title">PHP代码</h4><div class="sites-embed-content sites-embed-type-text"><div class="sites-embed-content-textbox"><div dir="ltr">&lt;?php<br />$base64_string = "";<br />file_put_contents("test_1.png",base64_decode($base64_string));<br />?&gt;<br /></div></div></div></div></div>
        
      <br /></div></td></tr></tbody></table></div></content><link rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5117107558382039798" /><link rel="alternate" type="text/html" href="http://sites.google.com/a/hetao.name/hetao/flex-zhuan-lan/flex3jiepingzuijiandandefangfa" /><link rel="http://schemas.google.com/sites/2008#revision" type="application/atom+xml" href="http://sites.google.com/feeds/revision/hetao.name/hetao/6308730743441735556" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/6308730743441735556" /><link rel="edit" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/6308730743441735556" /><author><name>何涛</name><email>hetao@hetao.name</email></author><sites:pageName>flex3jiepingzuijiandandefangfa</sites:pageName><sites:revision>2</sites:revision></entry><entry gd:etag="&quot;YD0peyA.&quot;"><id>http://sites.google.com/feeds/content/hetao.name/hetao/2068577029740604335</id><published>2009-05-14T07:35:55.692Z</published><updated>2009-05-14T07:37:51.499Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T07:37:51.481Z</app:edited><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/sites/2008#announcement" label="announcement" /><title>Flex 2 Style Explorer &amp; Flex 2 Filter Explorer</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr"><pre>Flex 2 Filter Explorer:<br /><a href="http://www.merhl.com/flex2_samples/filterExplorer/" target="_blank" rel="nofollow">http://www.merhl.com/flex2_samples/filterExplorer/</a><br /></pre><pre>Flex 2 Style Explorer:<br /><a href="http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html" target="_blank" rel="nofollow">http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html</a><br /></pre></div></td></tr></tbody></table></div></content><link rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5117107558382039798" /><link rel="alternate" type="text/html" href="http://sites.google.com/a/hetao.name/hetao/flex-zhuan-lan/flex2styleexplorerflex2filterexplorer" /><link rel="http://schemas.google.com/sites/2008#revision" type="application/atom+xml" href="http://sites.google.com/feeds/revision/hetao.name/hetao/2068577029740604335" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/2068577029740604335" /><link rel="edit" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/2068577029740604335" /><author><name>何涛</name><email>hetao@hetao.name</email></author><sites:pageName>flex2styleexplorerflex2filterexplorer</sites:pageName><sites:revision>1</sites:revision></entry><entry gd:etag="&quot;YD8peyA.&quot;"><id>http://sites.google.com/feeds/content/hetao.name/hetao/2770456728955407059</id><published>2009-05-14T07:08:31.063Z</published><updated>2009-05-14T07:22:39.800Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-14T07:22:39.799Z</app:edited><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/sites/2008#announcement" label="announcement" /><title>Flex-复制粘贴的操作</title><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><table cellspacing="0" class="sites-layout-name-one-column sites-layout-hbox"><tbody><tr><td class="sites-layout-tile sites-tile-name-content-1"><div dir="ltr">一、在网页中用如下的方法：<br /><br />1.获取粘贴板内容<br /><code>System.getClipboard();<br /><br />2.设置粘贴板内容，其实就是拷贝到粘贴板<br /></code><code>System.setetClipboard</code>(string:String);<br /><br />二、在桌面环境下用如下方法：<br /><br />
1.获取粘贴板内容<br />
flash.desktop.Clipboard.generalClipboard.getData();<br /><code>
<br />
2.设置粘贴板内容，其实就是拷贝到粘贴板</code><br />

flash.desktop.Clipboard.generalClipboard.setData();<br /><br />
        
        
        
      
        

        

      
        
        
      
        
        
      
          <div class="sites-embed-align-left-wrapping-off"><div class="sites-embed-border-on sites-embed" style="width:400px;"><h4 class="sites-embed-title">测试代码</h4><div class="sites-embed-content sites-embed-type-text"><div class="sites-embed-content-textbox"><div dir="ltr">&lt;?xml version="1.0" encoding="utf-8"?&gt;  <br />&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  <br />    layout="vertical" fontSize="14"<br />      verticalAlign="middle"&gt;  <br />  <br />&lt;mx:Script&gt;  <br />    &lt;![CDATA[ <br />        import mx.controls.Alert; <br /> <br />        private function button_click():void { <br />            System.setClipboard(richTextEditor.text); <br />            Alert.show("拷贝成功"); <br />        } <br />    ]]&gt;  <br />&lt;/mx:Script&gt;  <br />  <br />&lt;mx:ApplicationControlBar dock="true"&gt;  <br />    &lt;mx:Button id="button"  <br />            label="拷贝到粘贴板"  <br />            toolTip="点击这个按钮就拷贝内容到粘贴板"  <br />            click="button_click();" /&gt;  <br />&lt;/mx:ApplicationControlBar&gt;  <br />  <br />&lt;mx:RichTextEditor id="richTextEditor"  <br />        text="测试内容。。。"  <br />        width="100%"  <br />        height="100%" /&gt;   <br />  <br />&lt;/mx:Application&gt;  <br /></div></div></div></div></div>
        
      <br /></div></td></tr></tbody></table></div></content><link rel="http://schemas.google.com/sites/2008#parent" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/5117107558382039798" /><link rel="alternate" type="text/html" href="http://sites.google.com/a/hetao.name/hetao/flex-zhuan-lan/flex-fuzhizhantiedecaozuo" /><link rel="http://schemas.google.com/sites/2008#revision" type="application/atom+xml" href="http://sites.google.com/feeds/revision/hetao.name/hetao/2770456728955407059" /><link rel="self" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/2770456728955407059" /><link rel="edit" type="application/atom+xml" href="http://sites.google.com/feeds/content/hetao.name/hetao/2770456728955407059" /><author><name>何涛</name><email>hetao@hetao.name</email></author><sites:pageName>flex-fuzhizhantiedecaozuo</sites:pageName><sites:revision>3</sites:revision></entry></feed>
