Jump to content
Search Community

dirty30

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by dirty30

  1. What am I doing wrong. AS2

     

    The mc wont move, but it does change alpha.

     

    import com.greensock.*;
    import com.greensock.easing.*;
    
    my_mc_big._alpha = 0;
    my_mc_big._y = 400;
    TweenLite.to(my_mc_big, 1, {_x:200, ease:Expo.easeOut, delay:0});
    TweenLite.to(my_mc_big, 1, {_y:0, ease:Expo.easeOut, delay:0});
    TweenLite.to(my_mc_big, .35, {_alpha:100, ease:Linear.easeNone, delay:0});

     

    If you see a problem, let me know...!

  2. I have a button which takes the move to previous frame in a tweened animation.

     

    arrowleft_btn.addEventListener(MouseEvent.CLICK, goleftbtn);
    function goleftbtn(evt:MouseEvent):void {
    MovieClip(root).gotoAndStop(currentFrame - 1);
    }

     

    How can I have this button stop any active tweens, then go to the previous frame?

     

    Thanks!

  3. Yes, that part is working. Big thanks!

     

    Im now trying to figure out how to get the syntax right at the end of my timeline where I have the last frame tell it:

     

    TweenLite.to(this,  {delay:6 ,onComplete:gotoAndPlay, onCompleteParams:["start"]});

     

    So, I have to kill the "this" and rethink the syntax of the rest.

     

    Love to have your input, since this is my last error. ;-)

  4. TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at com.greensock::TweenLite/init()

    at com.greensock::TweenLite/renderTime()

    at com.greensock.core::SimpleTimeline/renderTime()

    at com.greensock::TweenLite$/updateAll()

     

    I have the AS3 com folder relative to the fla.

    In my timeline I have this in first frame:

     

    import com.greensock.*;

    import com.greensock.easing.*;

     

    What do I need to do to get rid of the Error #1009?

     

    Thanks!

×
×
  • Create New...