xmlns:s=”library://ns.adobe.com/flex/spark”
xmlns:mx=”library://ns.adobe.com/flex/mx”
width=”100%” height=”100%”
autoDrawBackground=”false”
creationComplete=”mxitemrenderer1_creationCompleteHandler(event)”
>
import mx.collections.ArrayCollection;
import mx.controls.Text;
import mx.events.FlexEvent;
protected function mxitemrenderer1_creationCompleteHandler(event:FlexEvent):void
{
var txt1:String=lbl.text.split(“,”)[0];
var txt2:String=lbl.text.split(“,”)[1];
lbl1.text=txt1;
lbl2.text=txt2;
}
]]>
© 版权声明
文章版权归作者所有,未经允许请勿转载。