Tuesday 29 September 2009

[Flex] dynamic parameter

a.strTel_1 = "1111";
a.strTel_2 = "2222";
a.strTel_3 = "3333";
a.strTel_4 = "4444";
a.strTel_5= "5555";
a.strTel_6 = "6666";
a.strTel_7 = "7777";
a.strTel_8 = "8888";

for (x=1; x <= 8; x++)
{
textDisplay.text += a["strTel_"+x.toString()]+"\n";
}

No comments: