- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
for(i = 0;i < 15;i++)//break_names_array.length
{
name_buttons_array[i] = new BreakenFriends(break_names_array[0]);
name_buttons_array[i].x = i * name_buttons_array[i].width;
addChild(name_buttons_array[i]);
if(i >= 12)
{
name_buttons_array[i].y = 4 * (name_buttons_array[i].height + 5);
name_buttons_array[i].x = (i - 12) * name_buttons_array[i].width;
}else
if(i >= 9)
{
name_buttons_array[i].y = 4 * (name_buttons_array[i].height + 5);
name_buttons_array[i].x = (i - 9) * name_buttons_array[i].width;
}else
if(i >= 6)
{
name_buttons_array[i].y = 3 * (name_buttons_array[i].height + 5);
name_buttons_array[i].x = (i - 6) * name_buttons_array[i].width;
}else
if(i >= 3)
{
name_buttons_array[i].y = 2 * (name_buttons_array[i].height + 5);
name_buttons_array[i].x = (i - 3) * name_buttons_array[i].width;
}
else
{
name_buttons_array[i].y = (name_buttons_array[i].height + 5);
}
}
Комментарии (0) RSS
Добавить комментарий