7 Replies Latest reply on Dec 15, 2009 5:51 AM by Wiouou

    Array beginner problem!

    erthy

       private var lokalizace:Array = new Array;
                    lokalizace["cs"] = new Array;
                                  lokalizace["cs"]["dog"] = "pes";
                                        lokalizace["cs"]["snake"] = "had";
                    lokalizace["en"] = new Array;
                                        lokalizace["en"]["dog"] = "dog";
                                        lokalizace["en"]["snake"] = "snake";
       private var jazykLokalizace:Array = lokalizace["en"];
       
       private function zmenaLokalizace():void 
       {
            jazykLokalizace = lokalizace["cs"];     
       }
      

      The above code yells errors on lines 3 through 8, saying "lokalizace" is an "undefined property". Why? What should I do about it?

       

      Thanks!