var displayarray:Array=new Array(11);
displayarray[0]=box0txt;
displayarray[1]=box1txt;
displayarray[2]=box2txt;
displayarray[3]=box3txt;
displayarray[4]=box4txt;
displayarray[5]=box5txt;
displayarray[6]=box6txt;
displayarray[7]=box7txt;
displayarray[8]=box8txt;
displayarray[9]=box9txt;
displayarray[10]=box10txt;
var wordarray:Array=new Array(11);
var pickwords:uint=0;
pickwords=Math.floor(Math.random() * 3;
if(pickwords==0) {word1="word";}
if(pickwords==1) {word1 = "apple";}
if(pickwords==2) {word1 = "something";}
wordarray=word1.split("");
for(var p:uint=0;p<wordarray.length;p++)
{
displayarray
.text=wordarray
);
}

I want to do it like this.The word that will come to be at the middle boxes allways.Somehow to calculate how letters the word1 has and place them in the middle elements of array.Is there any way to do this?
It was tempting to rewrite all of your code but doing that would leave you with nothing fun to solve...
When you reassign the wordarray you do not keep any of it...
var wordarray:Array=new Array(11); // an aray of length 11
wordarray=word1.split(""); // an array of length of word1
You can determine the length of the word either using the String.length or Array.length property. Take half of 11 minus that length and assign that to the wordarray
var wordarray = new Array(int((11-word1.length)/2))
Then push the word1 contents onto the wordarray