I have a variable in actionscript. How can I set the label text with the variable value? I have the following code:
public function setObjVal(obj1:InvPrintRRTObj):void
{
obj = obj1;
var date:String = obj.receive_Date;
var yy:String = date.substring(0,3);
var mm:String = date.substring(5,6);
var dd:String = date.substring(8,9);
}
I want to assign the yy value to a spark label. Please help. The mxml code goes here
s:Label width="35" height="25" textDecoration="none" verticalAlign="middle" text="{yy}"
sorry, i was not able to format this mxml code