|
-
change class to use TweenMax
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
Code:
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
Last edited by mgason; 01-18-2009 at 08:16 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});
-
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???
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|