# Unexplanable Y/Height Issues

**URL:** <https://forum.kirupa.com/t/unexplanable-y-height-issues/322970>\
**Category:** flash\
**Created:** [June 11, 2011, 2:36am UTC](https://forum.kirupa.com/t/unexplanable-y-height-issues/322970 "2011-06-11T02:36:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_Remex](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Post date:** [June 11, 2011, 2:36am UTC](https://forum.kirupa.com/t/unexplanable-y-height-issues/322970/1 "2011-06-11T02:36:07Z")

</div>

Hey Folks - I am desperate at this point… I have code that makes an object for search results and stacks within a scroll pane. The code works correctly when the user searches for a state, but when the user searches for what we call a partner the sub sections (called a metro below) y alignment go way out of whack, while the states still stack correctly.

Here’s the code… I know it’s out of context, but please help me if you can… I’m totally lost:

\*\*SOLUTION: \*\* I figured out that when accessing a Vector, my counter wasn’t incrementing because it wasn’t looping in that specific instance. The solution was to access the element like this:

someVector[someVector.length-1].y = 40

instead of like this:

someVector[counter].y = 40

Thanks everyone!
