刚刚学习Flex,请教一个导入图片的问题
最近开始学习Flex,想在TextArea中导入一个图片,但是只有我在写绝对路径的时候可以显示图片,相对路径应该怎么设置呢?
这是我的文件路径:
这里该怎么设置呢??
[解决办法]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void{
txt.htmlText="<img src='a.PNG'>";
}
]]>
</mx:Script>
<mx:TextArea x="148" y="51" id="txt" width="443" height="230"/>
</mx:Application>