Help needed in creating dynamic objects

Hi,
this is a wierd problem I am facing in flash .

I need to create a dynamic global variable where the variable’s name is stored in another variable…

say I need to create a global variable , _global.fam , but “fam” is stored in a variable temp=“fam”;

now how can I declare the global variable ‘fam’ using the variable temp.

But the loophole here is that after creating the global variable I should be able to access the variable as

_global.fam itself…!!!

Any Idea