# Couple of clickable textfield questions

**URL:** <https://forum.kirupa.com/t/couple-of-clickable-textfield-questions/325853>\
**Category:** flash\
**Created:** [November 8, 2011, 5:35pm UTC](https://forum.kirupa.com/t/couple-of-clickable-textfield-questions/325853 "2011-11-08T17:35:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LilTad](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@LilTad](https://forum.kirupa.com/u/LilTad)\
**Post date:** [November 8, 2011, 5:35pm UTC](https://forum.kirupa.com/t/couple-of-clickable-textfield-questions/325853/1 "2011-11-08T17:35:12Z")

</div>

So I’m trying to make something that will take a string, break it into words or letters and then add everything as a individual clickable texfields. What I have right now is this and it’s breaking the string just right. However, I was wondering about how it would be best to make it so the textfields are aligned correctly. Basically, I want to line them up as if they were a normal sentence or paragraph and then turn the .clickable boolean on for everything so they can be clicked after a certain event. I figured looping through the array and turning those to true would be easy but I’m not sure about how I could add them in the order I want without having to hard code it. Any ideas or suggestions? Should I just scrap and rework what I have?

```auto
var list:String = "Hello World";
var words:Array = list.split(" ");
        

for(var i:int = 0; i < words.length; i++)
{
    var letters:Array = words*.split("");
    trace(words*);
    trace(letters);
    
    
    for(var j:int = 0; j < letters.length; j++)
    {
        if(letters[j] == "a")
        {
            
        }
    }
}

```
