;

PDA

Click to See Complete Forum and Search --> : change class to use TweenMax


mgason
01-18-2009, 07:11 PM
I have scroller class file that used tweener
I want to change it to use TweenMax as I am already using that.

I thought it looked easy, but does not work.
The only tween references are these 2 lines

the scroller class has

import caurina.transitions.*;//on line 14

Tweener.addTween(target, {y:-sPos, time:timing, transition:trans});//on line 169

//I changed it to
import gs.TweenMax;//on line 14
TweenMax.addTween(target, {y:-sPos, time:timing, transition:trans});//on line 169



The scroller.as is in the same directory as the movie fla
below that is the caurina folder, I placed the gs folder with tweenMax in the same location.

I get these 2 errors
Srollbar.as Line 14 - 1172: Definition gs.TweenMax could not be found.
Srollbar.as Line 169 - 1120: Access of undefined property Tweener.

If I am completely off track, I am just guessing, I am no expert, let me know
I have uploaded the scroller.as file if anyone wants to take a look
thanks
mark

neznein9
01-18-2009, 08:02 PM
The parameters are slightly different between the two - your tween call should look like this:

TweenMax.to(target, timing, {y:target.y-sPos, ease:trans});

mgason
01-18-2009, 09:34 PM
Thanks for the reply,
I am sure that will save some headaches, but I am not getting that far yet!

I am still getting these two errors
I get these 2 errors.....
Srollbar.as Line 14 - 1172: Definition gs.TweenMax could not be found.
Srollbar.as Line 169 - 1120: Access of undefined property TweenMax.

I have the gs folder with TweenMax in it, in the folder that contains scrollbar.as and my movie.

yet it seems scrollbar.as is not finding TweenMax???

neznein9
01-18-2009, 10:47 PM
The compiler isn't finding gs.TweenMax (gs/TweenMax.as) - make sure the directories are all in the correct place. The gs folder should be in the same place as your fla.