Hi,
I am facing a little problem while dealing with arrays some hellp will be really appreciated.
I have two arrays in AS3
var F1array:Array = new Array("İbrahim YILMAZ", "Yetmiş Dokuz (79)", "Emekli Işçi","Dedem / Babamın babası","Giresun");
var F2array:Array = new Array("Fatma YILMAZ", "Seksen (80)", "Ev Hanımı","Babaannem / Babamı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:
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 as 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