# HELP object arrays: how to pass values for selecting only some objects

**URL:** <https://forum.kirupa.com/t/help-object-arrays-how-to-pass-values-for-selecting-only-some-objects/313539>\
**Category:** flash\
**Created:** [September 2, 2010, 8:05am UTC](https://forum.kirupa.com/t/help-object-arrays-how-to-pass-values-for-selecting-only-some-objects/313539 "2010-09-02T08:05:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![elliria](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@elliria](https://forum.kirupa.com/u/elliria)\
**Post date:** [September 2, 2010, 8:05am UTC](https://forum.kirupa.com/t/help-object-arrays-how-to-pass-values-for-selecting-only-some-objects/313539/1 "2010-09-02T08:05:37Z")

</div>

hello everyone,  
i’m at the very first try with AS3 and Flash and seriously need help.  
What i’m trying to do is creating an array of objects, little squares that are positioned in a grid with coordinates and when i click on the coordinates i need to select only the elements which fit with the value.  
So, what i’m trying to do now is to pass a value to each element of the array  
but it doesn’t work:

var quiqua:Array = [rosa, blu, viola, giallo];  
//these are instances of the same object and are on the stage  
var saturaz = uint;  
quiqua[0].saturaz:40;  
quiqua[1].saturaz:50;  
quiqua[2].saturaz:20;  
quiqua[3].saturaz:20;

Flash returns this: "1078: Label must be a simple identifier.
