Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list : List;
- var bday : Object = {day: 30, month: 04, year: 1990};
- public function diff_viewer_main()
- {
- list = new List;
- list.add("nome", "Rafael");
- list.add("idade", 21);
- list.add("nascimento", bday);
- trace(list.item("nome")); // Rafael
- trace(list.item("idade")); // 21
- trace(list.item("nascimento").year); // 1990
- trace(list.match(bday)); // true
- trace(list.match("nome")); // true
- trace(list.match("Rafael")); // true
- trace(list.match("testing")); // false
- trace(list.match(21)); // true
- list.remove("idade");
- trace(list.item("idade")); // null
- }
Add Comment
Please, Sign In to add comment