On 5/4/13 11:25 AM, "Mark Kessler" <kesslerconsult...@gmail.com> wrote:

> Alex,
>    I think your missing the real loop here... the method findRowIndices
> loops through all the buttons every call.  Where as the buttonIndices only
> contains button indices that were found during the findRowIndices method.
> Having the array one call the single method would run the findRowIndices
> for every button label which to me seems very redundant.  Where as it is
> right now, it only runs findRowIndices once, and then only runs 1 count
> through the loop of the buttonIndices.  Although if someone had duplicate
> button labels, all matches would get picked up during this method.
> 
> I understand your idea of it now.  But since I'm not able to directly
> address a specific button without finding it first, makes it hard to have
> the array call the single method.  I think we both look at this problem
> from different sides... When I get back later on I'll see if I can find an
> efficient way to test your idea so everything gets a fair try.
> 
Ah, I didn't realize what was going on in findRowIndices.  You're fine as it
is.  I don't expect a lot of need for this to be totally optimized so it
probably isn't worth any more time.

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

Reply via email to