i need to store 5 buttons in a i guess dictionary so i can access them later.
if i store them in an array then i will have to remember which is where so i guess dictionary is more intuitive, but i dont get this:
private var _btnDict:Dictionary = new Dictionary();
_btnDict[up_mc] = { name:“up” };
_btnDict[down_mc] = { name:“down” };
_btnDict[prev_mc] = { name:“prev” };
_btnDict[next_mc] = { name:“next” };
_btnDict[close_mc] = { name:“close” };
i dont even need this name property, cause i will access each one of them by saying:
_btnDict[up_mc] for example.
so can i write this without this name property?