# Dynamic variables... how to create?

**URL:** <https://forum.kirupa.com/t/dynamic-variables-how-to-create/282634>\
**Category:** flash\
**Created:** [February 24, 2009, 2:13pm UTC](https://forum.kirupa.com/t/dynamic-variables-how-to-create/282634 "2009-02-24T14:13:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [February 24, 2009, 2:13pm UTC](https://forum.kirupa.com/t/dynamic-variables-how-to-create/282634/1 "2009-02-24T14:13:07Z")

</div>

[FONT=Times New Roman][SIZE=3]Hi there…[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I am trying to create dynamic variables.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Lets say:[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I read a file where I have: building, restaurant and hotel.[/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman] [/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]Then, will load those values like…[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]X = building.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Y = restaurant[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Z = hotel.[/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman] [/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]Now I want to create variables like: building.\_alpha = 0; restaurant.\_alpha = 0; hotel.\_alpha =0;[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]So on…[/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman] [/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]I guess the question is how to use the value (building, restaurant, hotel) on naming or creating variables to use them later…[/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman] [/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]Thanks.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Cheers.[/SIZE][/FONT]  
[FONT=Times New Roman]Leo.[/FONT]
