bump

On Thu, Jul 30, 2009 at 12:49 PM, fotis.chatzinikos <
fotis.chatzini...@gmail.com> wrote:

>
>
> override protected function hiliteSelectedNavItem(index:int):void
> {
> var child:Button;
>
> // Un-hilite the current selection.
> if (selectedIndex != -1 && selectedIndex < numChildren)
> {
> child = Button(getChildAt(selectedIndex));
> child.enabled = true;
> }
>
> // Set new index.
> super.selectedIndex = index;
>
> // Hilite the new selection.
> child = Button(getChildAt(selectedIndex));
> child.enabled = false;
> }
>
> Should not the last two lines be inside a conditional != -1? There is not
> button @ -1 :
>
> if (selectedIndex != -1)
> {
> child = Button(getChildAt(selectedIndex));
> child.enabled = false;
> }
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,

Reply via email to