# Text Format in array HELP PLEASE!

**URL:** <https://forum.kirupa.com/t/text-format-in-array-help-please/168051>\
**Category:** flash\
**Created:** [November 3, 2005, 3:19pm UTC](https://forum.kirupa.com/t/text-format-in-array-help-please/168051 "2005-11-03T15:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![101\_North](https://avatars.discourse-cdn.com/v4/letter/1/58956e/32.png) [@101\_North](https://forum.kirupa.com/u/101_North)\
**Post date:** [November 3, 2005, 3:19pm UTC](https://forum.kirupa.com/t/text-format-in-array-help-please/168051/1 "2005-11-03T15:19:01Z")

</div>

Folks,

I have created an array with the instance names of all my textFields as below:

myText = [quesText,op1Text,op2Text,op3Text,op4Text,op5Text,ansText];

I have also created a new textStyle as below:  
var questionFormat = new TextFormat()  
questionFormat.color = 0x000000;  
questionFormat.font = “Verdana”;  
questionFormat.bold = true;  
questionFormat.size = 12;

I don’t want to have to apply this format to all the text fields separately.

How can I apply the text format to all the items in the array at the same time?

Many thanks in advance

101
