# Declaring strings and numbers in a variable

**URL:** https://forum.kirupa.com/t/declaring-strings-and-numbers-in-a-variable/291183
**Category:** Uncategorized
**Created:** [June 25, 2009, 8:56pm UTC](https://forum.kirupa.com/t/declaring-strings-and-numbers-in-a-variable/291183 "2009-06-25T20:56:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)
#### Post date: [June 25, 2009, 8:56pm UTC](https://forum.kirupa.com/t/declaring-strings-and-numbers-in-a-variable/291183/1 "2009-06-25T20:56:54Z")

</div>

Hi There … Im using a tween engine, and its syntax for use is as follows::

```auto
myMc.tween("_x",100,1,"easeout",0,callback);

```

Now, I want to send a pre-set var inside my tween command… Which is contained inside an Array  
so I write::

```auto

var myRandomString:array = new Array(doThis);
var doThis:String = "_x",100,1,"easeout",0,callback;
myMc.tween(myRandomString[0]);

```

Of course … ‘doThis’ gets an error!  
How can I write **“\_x”,100,1,“easeout”,0,callback** as a string?? I have tried to put “these” around the text.  
The problem seems to be that “\_x” and “easeout” which are effectively strings inside the string! – but for the tween engine to work - I need to declare that.

Any Advice out there! ???  
Thanks in advance … cos it could produce some cool effects…
