# Arrays help

**URL:** <https://forum.kirupa.com/t/arrays-help/210746>\
**Category:** flash\
**Created:** [December 21, 2006, 5:29pm UTC](https://forum.kirupa.com/t/arrays-help/210746 "2006-12-21T17:29:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvnirmal](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gvnirmal](https://forum.kirupa.com/u/gvnirmal)\
**Post date:** [December 21, 2006, 5:29pm UTC](https://forum.kirupa.com/t/arrays-help/210746/1 "2006-12-21T17:29:50Z")

</div>

Hi All

I have one serious problem…  
I created an array MyArr where MyArr[0]=01-01-06 MyArr[1]=1.pkg MyArr[2]=2.pkg MyArr[3]=3.pkg MyArr[4]=4.pkg

Now I must check whether a particular element is present in the array or not…!  
So I wrote a if loop saying if(contains(“1.pkg”,MyArr)==1) display saying yes it is there…or else display saying no…

But my code is creating me problems…Can anyone tell me a simple method of solving this…??

Thanks  
Nirmal.
