# Dynamic Arrays in FMS

**URL:** https://forum.kirupa.com/t/dynamic-arrays-in-fms/220190
**Category:** flash
**Created:** [March 23, 2007, 3:19pm UTC](https://forum.kirupa.com/t/dynamic-arrays-in-fms/220190 "2007-03-23T15:19:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![arunforce](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@arunforce](https://forum.kirupa.com/u/arunforce)
#### Post date: [March 23, 2007, 3:19pm UTC](https://forum.kirupa.com/t/dynamic-arrays-in-fms/220190/1 "2007-03-23T15:19:53Z")

</div>

Ok, I have a problem, a not so big problem, but a problem. 😕

I have this array that is dynamic for FMS.  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000][[/COLOR]Client.[COLOR=#0000FF]name[/COLOR] + [COLOR=#FF0000]“Idea”[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Array[/COLOR]COLOR=#000000[/COLOR];  
[/LEFT]  
[/FONT]

Except, for some reason, it won’t work unless i put a this infront of it so it becomes this:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]this[/COLOR][COLOR=#000000][[/COLOR]Client.[COLOR=#0000FF]name[/COLOR] + [COLOR=#FF0000]"Idea"[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Array[/COLOR][COLOR=#000000]([/COLOR]idea1,idea2,idea3[COLOR=#000000])[/COLOR];

```

[/LEFT]  
[/FONT]

It works fine for everything, except I have a separate function that needs to update the first string, eg:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#000000][[/COLOR]username + [COLOR=#FF0000]"Idea"[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR] = newIdea;

```

[/LEFT]  
[/FONT]

but as you can imagine, it gives me errors if I don’t put the this infront of it:

```
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]this[/COLOR][COLOR=#000000][[/COLOR]username + [COLOR=#FF0000]"Idea"[/COLOR][COLOR=#000000]][/COLOR][COLOR=#000000][[/COLOR][COLOR=#000080]0[/COLOR][COLOR=#000000]][/COLOR] = newIdea;

```

[/LEFT]  
[/FONT]

But, then it doesn’t update. Why? I’m not so sure, but probably because the array level is different (one is in the root, and one is in function), and I have tried using \_parent, \_global, and \_root to access it, but anything with \_ in it gives me not defined errors.

Does anyone have an idea what I could do. :yoshi:
