# Accessing a Class, through classname:String

**URL:** <https://forum.kirupa.com/t/accessing-a-class-through-classname-string/177145>\
**Category:** flash\
**Created:** [January 30, 2006, 5:20pm UTC](https://forum.kirupa.com/t/accessing-a-class-through-classname-string/177145 "2006-01-30T17:20:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [January 30, 2006, 5:20pm UTC](https://forum.kirupa.com/t/accessing-a-class-through-classname-string/177145/1 "2006-01-30T17:20:27Z")

</div>

Hi Everyone,

quick question. I have a string called “picLoader.as”

But that is just a string. I actually want to have access to that class, as follows:

picLoader.getFile();  
picLoader.setFile();

and so on.

But I have a string only. So from that string, how can I read picLoader.as ?

Thanks!
