This is challening job to hardcore MXML component in Actionscript. In this example i am passing variable in runtime to actionscript code. It will be easy to design in MXML and code will be with in
10 lines but Actionscipt it will takes almost 280 lines