How could I set up a class for associating a dictionary with an object

I am trying to make a grapchical tool that will map out a scenario, creating an XML file which would control the choice to result functions for the scenario.

Anyway, what I have now is that the user can drag new files onto the stage, name them and decide how many questions to have in that file. Then when the user draws a line from one question (inside a certain file) to one of the other files on stage I need to capture the name of the choice and its corresponding file. (So “choice1” of “file2” takes the student to the part of the scenario contained in “file7” for instance).

So I need to somehow associate dictionaries with these files. Each dictionary containing the information for “choice(x)” goes to “file(z)”.

What is the best way to do this? A class that extends movieclips, movieclips being the files on stage?

I am in need of some serious help here. I have been struggling with this for over a week. Thanks in advance.