# Strings and Variables

**URL:** https://forum.kirupa.com/t/strings-and-variables/291151
**Category:** flash
**Created:** [June 25, 2009, 9:36am UTC](https://forum.kirupa.com/t/strings-and-variables/291151 "2009-06-25T09:36:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paulscanlon\_99](https://avatars.discourse-cdn.com/v4/letter/p/0ea827/32.png) [@paulscanlon\_99](https://forum.kirupa.com/u/paulscanlon_99)
#### Post date: [June 25, 2009, 9:36am UTC](https://forum.kirupa.com/t/strings-and-variables/291151/1 "2009-06-25T09:36:01Z")

</div>

Hopefully this wil be enough of an explaination but if not i can detail my question further.  
Okay i have some code that analyses a string and does some stuff, spliting and joining etc.

if i have this:  
var uploadString:String = new String(“160524”);  
all is cool in my world

BUT

if i have this:  
var uploadString:String = new String(\_root.myStringSmart)

then everything breaks, is it because flash doesnt know that my root variable is in fact a string and as such anything i do to i it cant understand.

hopefully that will be enough info regarding this query, if anyone out there is a string genious please help!
