flex读取文本并显示文本内容信息
flex读取文本并显示文本内容信息
package components{ import flash.utils.ByteArray; [Embed(source="GridDemo.mxml", mimeType="application/octet-stream")] public class foobar extends ByteArray { }}
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()"><mx:Script> <![CDATA[ import components.foobar; [Bindable] public var myText:foobar = new foobar(); public function init():void { trace(myText.toString()); } ]]></mx:Script> <mx:TextArea width="500" height="500" text="{myText.toString()}"/></mx:Application>