方式一:mxml里面指定:
<mx:LinkButton id="lbtnFirst" label="首页" click="loadData(0)" enabled="{lbtnPrevious.enabled}" icon="@Embed('assets/default/icon/paging/page-first.gif')"/>
方式二: as里面指定:
<mx:LinkButton id="lbtnFirst" label="首页" click="loadData(0)" enabled="{lbtnPrevious.enabled}" icon="@Embed('assets/default/icon/paging/page-first.gif')"/>
方式二: as里面指定:
[Embed("assets/LinkButton.png")]
private const linkButtonIcon:Class;
private function init():void
{
linkButton.setStyle("icon", linkButtonIcon);
}