<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel id="panel" width="800" height="600">
<mx:VBox width="100%">
<mx:HBox width="100%" backgroundColor="#ddfadd" height="30" verticalAlign="middle">
<mx:Spacer width="100%" />
<mx:TextInput id="txtURL" width="400" x="{(panel.width - txtURL.width) / 2" />
<mx:Button id="btnTo" label="转到" click="gotoURL()"/>
<mx:Spacer width="100%" />
</mx:HBox>
<mx:HTML id="thml" width="800" height="600" location="http://www.google.com" />
</mx:VBox>
</mx:Panel>
<mx:Script>
<![CDATA[
private function gotoURL():void{
}
]]>
</mx:Script>
</mx:Application>
报错信息:
1046: 找不到类型,或者它不是编译时常数: HTML。
本人是个新手 望各位多多指点