搞了一下HTML组件,用起来挺方便的,不过我在家里打开utf-8编码的网页中文出现乱码,可奇怪的是白天在单位里用Adobe提供的samples中的HTML实例却没有出现乱码,在家里不论是用我自己写的还是samples中的都是乱码 :[confused]:
难道是Apollo火候还没到,还是偶rpwt…..
[xml]
private function fixURL(str:String):String ]]>
{
if(str.substr(0, 7) != "http://") return "http://"+str;
else return str;
}
enter="{html.location = fixURL(urlTxt.text)}" />
locationChange="{urlTxt.text = html.location}" />
[/xml]

0 Responses to “装好Apollo后写的第一个东西…”