var Generation = 1;// Letter amount this is used later to populate the letterspot_mc.myText.text it seems
// *** Create Random Letters
function RandomLetters(Arg) creatring a function. not sure about the (arg) part
{
var Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 "; this is the charcters that I need for random to choose from...I think?
//var Chars = "abcdefghijklmnopqrstuvwxyz0123456789 ";
var NumChar = Chars.length - 1; this is telling it that we only want one char. to be used
var RandomChar = "";
for (var s = 0; s < Arg; s++) this part makes no sense. making a var s and it is = to s less than the arg. then s++ (that part lost me)
{
RandomChar += Chars.charAt(Math.floor(Math.random() * NumChar)); this seems to be the code (method/function) to come up with a random letter(NumChar in this case) which will be used to populate letterspot
}
return RandomChar;
}
// Set the text
function SetText()
{
letterspot_mc.myText.autoSize = true; ok, cool. text needs to be sized, but will autoSize make it fill the 50x50 _mc? and do I need an _mc called myText inside my letterspot_mc
letterspot_mc.myText.text = RandomLetters(Generation); it seems like this will populate the _mc myText with the result of above function "RandomLetters"
}
// Call function
SetText(); is this a built in function of AS2?
}


questions?
what is this letterspot_mc.myText.text ? the .text property of my text which is inside letterspot_mc?

I am sorry that I am not fluent in AS. I rarely use flash but enjoy it. I tried to just copy and past the code in and testing it work with no errors but no letters either, so then I added an _mc called mytext into the letterspot_mc, still the same. I am able to follow your code ok, but can not fully understand it. I tried to break it down using green and bold after the lines of code.

thank you for your time.