# How i can access instance of class variable dynamically as text..? +example

**URL:** <https://forum.kirupa.com/t/how-i-can-access-instance-of-class-variable-dynamically-as-text-example/326711>\
**Category:** Uncategorized\
**Created:** [January 6, 2012, 2:50pm UTC](https://forum.kirupa.com/t/how-i-can-access-instance-of-class-variable-dynamically-as-text-example/326711 "2012-01-06T14:50:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oc\_o](https://avatars.discourse-cdn.com/v4/letter/o/5f9b8f/32.png) [@oc\_o](https://forum.kirupa.com/u/oc_o)\
**Post date:** [January 6, 2012, 2:50pm UTC](https://forum.kirupa.com/t/how-i-can-access-instance-of-class-variable-dynamically-as-text-example/326711/1 "2012-01-06T14:50:13Z")

</div>

i also write this question in as2 forum, but i need it also for as3  
[COLOR=#333333][FONT=Segoe UI]i have instance of class “[/FONT][/COLOR][COLOR=#333333][FONT=Segoe UI]HelloClass”[/FONT][/COLOR][COLOR=#333333][FONT=Segoe UI] on my main movie :[/FONT][/COLOR]  
[COLOR=#333333][FONT=Segoe UI]\_root.mc.HelloClass.variable1.fullurl[/FONT][/COLOR]  
[COLOR=#333333][FONT=Segoe UI]so my HelloClass exteds movieclip and has var named Variable1 that also class with var fullurl[/FONT][/COLOR]

[COLOR=#333333][FONT=Segoe UI]i want to access fullurl string value dynamically , somthing like:[/FONT][/COLOR]  
[COLOR=#333333][FONT=Segoe UI]\_root.[“mc”].[“HelloClass”].[“variable1”].[“fullurl”][/FONT][/COLOR]  
[COLOR=#333333][FONT=Segoe UI]so i can access every var from external swf[/FONT][/COLOR]

[COLOR=#333333][FONT=Segoe UI]thank you !![/FONT][/COLOR]
