Hi List,

I have written a script, here is piece of some method:

private function resetState( e:Event )
                {
                        switch(e.target.buttonType)
                        {
                         case 0 :
                          var clip = e.target as MenuButtonMain;
                          var buttons:Array = _menuButtons;
                          break;
                         case 1 :
                          var clip = e.target as MenuButtonSub;
                          var buttons:Array = _subMenuButtons;  
                          break;
                        }

                        for (var i:uint = 0; i< buttons.length; i++)
                        {
                                if( buttons[i] != clip )
                                {
                                        buttons[i].enable();
                                } else buttons[i].disable();
                        }



The script works as want it to but I keep getting a 3596 - duplicate variable definition warning, when I run the script. Should I be woried about this warning message? What is wrong in my code?

Thanks

Pavel


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to