0
for(var temp:int = 0;temp<recipeNum;temp++)
{
if ((temp == 1) || (temp == 2) || (temp == 6) || (temp == 9))
{
textRecipe.textColor = 0x0000FF;
}
else
{
textRecipe.textColor = 0x000000;
}
textRecipe.text += "\n" + recipe[temp];
addChild(textRecipe);
}
이 코드의 문제점은 화면의 모든 텍스트가 검은 색입니다. 임시직 1,2,6,9가 파란색이 되길 바랄뿐입니다.If 텍스트 색상을 변경하는 문