Hi
I have this multidimensional array like this:
priceGrabber = new Array();
priceStructure = [[theClip],[price]]
priceGrabber.push(priceStructure);
this looks good, everything works. It looks like this when I trace it:
_level0.room_mc.cube_0,299
then I’m doing a for loop, to check if the active object is the same as the one in array.
so I do this:
for (z in _root.priceGrabber ) {
if (_root.priceGrabber [z][0] == whichOne) {
trace("found it")
}
}
whichOne and theClip are actually sharing the same info ie: _level0.room_mc.cube_0
Did I miss something here? It seems to me that the IF statement didn’t do the job, for some reasons even when q = 0 which equals to whichOne… it passed it and didn’t do the trace.
Thanks