You got it! :)
You can mix and match with a Dictionary, as well. You can use strings
as keys or objects.
Patrick Matte | BLITZ wrote:
Thanks Steven, I never really understood what a dictionary was myself, so
dictionary would be useful for something like this ?
dictionary = new Dictionary();
button1 = new Button()
dictionary[button1] = "http://www.google.com";
button2 = new Button()
dictionary[button2] = "http://www.yahoo.com";
function onButtonClick(event:MouseEvent){
trace(dictionary[event.target]);
}
BLITZ | Patrick Matte - 310-551-0200 x214
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders