A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: change class to use TweenMax

Threaded View

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Location
    Minneapolis
    Posts
    2,127

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center