11 Replies Latest reply on Sep 14, 2007 10:28 PM by kglad

    indexOf associative array?

    cayennecode Level 1
      var arr:Array = new Array( {food:'Hamburger', soda:'Rootbeer'}, {food:'Pizza', soda:'7up'} );

      trace(arr.indexOf(food:'Hamburger'));

      ?? I know that doesn't work, but is there syntax to make it work, or does one have to write their own class to handle this?