# TweenLite How To

**URL:** <https://forum.kirupa.com/t/tweenlite-how-to/256230>\
**Category:** Uncategorized\
**Created:** [April 1, 2008, 3:15am UTC](https://forum.kirupa.com/t/tweenlite-how-to/256230 "2008-04-01T03:15:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jensou](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jensou](https://forum.kirupa.com/u/jensou)\
**Post date:** [April 1, 2008, 3:15am UTC](https://forum.kirupa.com/t/tweenlite-how-to/256230/1 "2008-04-01T03:15:09Z")

</div>

I’ve been trying to figure out how to use TweenLite. Does the x position have to be a number? Can it be an expression or variable?

This is what I have:  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000] **function** [/COLOR] nextImgCOLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#000000] **var** [/COLOR] x\_To:[COLOR=#0000FF]Number[/COLOR] = imageHolder[COLOR=#000000][[/COLOR][COLOR=#FF0000]“imageBox”[/COLOR]+p[COLOR=#000000]][/COLOR].[COLOR=#0000FF]\_x[/COLOR]+COLOR=#000000[/COLOR];  
TweenLite.[COLOR=#000080]To[/COLOR][COLOR=#000000]([/COLOR]imageHolder, [COLOR=#000080]0[/COLOR].[COLOR=#000080]75[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#0000FF]\_x[/COLOR]:COLOR=#000000[/COLOR]-x\_To; onStart:currentImg[COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

I get an error though saying, “}” or “,” expected and I can’t figure out where.

Thanks for the help 🙂
