# Help with my Array

**URL:** <https://forum.kirupa.com/t/help-with-my-array/249194>\
**Category:** flash\
**Created:** [January 16, 2008, 12:41pm UTC](https://forum.kirupa.com/t/help-with-my-array/249194 "2008-01-16T12:41:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![studio01](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@studio01](https://forum.kirupa.com/u/studio01)\
**Post date:** [January 16, 2008, 12:41pm UTC](https://forum.kirupa.com/t/help-with-my-array/249194/1 "2008-01-16T12:41:13Z")

</div>

Hi peeps i am haveing a problem with my Array it doesnt seem to work maybe because i don’t clearly under stand of it works, anyway this Array is for my Univercity assignment which unfortunatly has to handed in in a few days ☹

here is the script.

////// Products Search /////////  
stop();  
search.text = “”;  
feed.text = “”;  
products\_array =new Array(“cushion”, “robe”, “spa”);  
var cushion\_array =new Array (“we have 10 hand stitched chair cushions in stock”);  
var robe\_array=new Array(“we have 8 luxury bathroom robes in stock”);  
var spa\_array=new Array(“we have 20 hotel spa treatment sets in stock”);  
search\_btn.onRelease = function() {  
trans = question.text.toLowerCase();  
if (trans == “products”) {  
feed.text = products\_array[0];  
} else if (trans == “we have 10 hand stitched chair cushions in stock”) {  
feed.text = cushion\_array[0];  
} else if (trans == “we have 8 luxury bathroom robes in stock”) {  
feed.text = robe\_array[0];  
} else if (trans == “we have 20 hotel spa treatment sets in stock”) {  
feed.text = spa\_array[0];  
}  
};  
/////////////////////////////////////////////////

and the fla please if anyone can spot the problem im haveing i would be much appriciated 🙂
