# Question Regarding Arrays

**URL:** <https://forum.kirupa.com/t/question-regarding-arrays/316046>\
**Category:** flash\
**Created:** [November 11, 2010, 9:54am UTC](https://forum.kirupa.com/t/question-regarding-arrays/316046 "2010-11-11T09:54:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leeda111](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@leeda111](https://forum.kirupa.com/u/leeda111)\
**Post date:** [November 11, 2010, 9:54am UTC](https://forum.kirupa.com/t/question-regarding-arrays/316046/1 "2010-11-11T09:54:23Z")

</div>

Hi,

I am facing a little problem while dealing with arrays some hellp will be really appreciated.

I have two arrays in AS3

```auto
var F1array:Array = new Array("&#304;brahim YILMAZ", "Yetmi&#351; Dokuz (79)", "Emekli I&#351;çi","Dedem / Babam&#305;n babas&#305;","Giresun");
var F2array:Array = new Array("Fatma YILMAZ", "Seksen (80)", "Ev Han&#305;m&#305;","Babaannem / Babam&#305;n annesi","Giresun");

```

Now I have two buttons on the Stage named F1 and F2

When any of the two button are clicked an openiframe function is called which is:

```auto
function openiframe(e:MouseEvent):void {
	
	memberName=e.target.name + "array";
	trace(memberName); /////// gives me either F1array or F2array
	
}
	

```

Now how will we fetch something from the array a**s memberName[0] obviously wont work.** I tried doing them a few other ways but wasn’t successful. How will we tackle this problem?

Once again it might be a simple problem but I cant figure it out. Any help will be really appreciated. Thanks in advance

Best Regards,  
Adeel Abbas
