# Help needed in creating dynamic objects

**URL:** <https://forum.kirupa.com/t/help-needed-in-creating-dynamic-objects/106219>\
**Category:** Uncategorized\
**Created:** [April 3, 2004, 10:02am UTC](https://forum.kirupa.com/t/help-needed-in-creating-dynamic-objects/106219 "2004-04-03T10:02:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harikj](https://avatars.discourse-cdn.com/v4/letter/h/9e8a1a/32.png) [@Harikj](https://forum.kirupa.com/u/Harikj)\
**Post date:** [April 3, 2004, 10:02am UTC](https://forum.kirupa.com/t/help-needed-in-creating-dynamic-objects/106219/1 "2004-04-03T10:02:54Z")

</div>

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
