# Help Please

**URL:** <https://forum.kirupa.com/t/help-please/54506>\
**Category:** Uncategorized\
**Created:** [June 15, 2004, 10:47am UTC](https://forum.kirupa.com/t/help-please/54506 "2004-06-15T10:47:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael21](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Michael21](https://forum.kirupa.com/u/Michael21)\
**Post date:** [June 15, 2004, 10:47am UTC](https://forum.kirupa.com/t/help-please/54506/1 "2004-06-15T10:47:49Z")

</div>

helo my name is Michael and i have problem with flash arrays  
i need to place in the array letters from InputTextField  
to count every one of them.  
i need this fo Huffman algorithm i know that user put string like this  
wwwwwwwwwaaaaaaaaaaaaaweeeeeeeeerrrrrrrr

and i need broke this string a part nad place every letter in array  
but main problem is that when my\_array = new Array(w,w,w,w)  
i can’t take for dynamicTextField myDynamic\_txt.text=my\_array[0]  
i get #undefine. I know that letters need to be in ’ ’ but i don’t know how tu put them in ‘’ ???  
i know that trace(my\_array[0]) works why?

\_root.onEnterFrame=function()  
{

```
input_str=myInput_txt.text;
my_str = input_str.split(""); // to split string ","
//w,w,w,w,w,w,w,w,w,w,w,e,e,e,e,e,e,e it works

my_array = new Array(input_str.length);

my_array.push="'"+my_str+"'"; // it doesn't work ;(
	
for(i=0;i&lt;my_array.length;i++)
{
myDynamic_txt.text=my_array*; // it doesn't work too // ;(
}

```

}
