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 