# Passing a sting into a class

**URL:** <https://forum.kirupa.com/t/passing-a-sting-into-a-class/303046>\
**Category:** Uncategorized\
**Created:** [January 12, 2010, 10:15pm UTC](https://forum.kirupa.com/t/passing-a-sting-into-a-class/303046 "2010-01-12T22:15:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![almondo](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@almondo](https://forum.kirupa.com/u/almondo)\
**Post date:** [January 12, 2010, 10:15pm UTC](https://forum.kirupa.com/t/passing-a-sting-into-a-class/303046/1 "2010-01-12T22:15:01Z")

</div>

OK…  
I’m trying to pass a string from the main timeline into a variable within a class (public \_myVar:String;)  
does anyone know how i can acces the public variable within my class and populate it??  
thanks
