Jump to content
Search Community

chbH

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by chbH

  1. Hi guys, I need help. I might be missing something that I'm too stupid to see. I'm trying to use glowfilter on a movie clip rollover and rollout function. The problem is, it always starts with the glow on. I want it to start without it so that when the mouse is over it, it glows and reverses when i roll out.

     

    Here's my code.

    import com.greensock.*;
    import com.greensock.easing.*;
    import com.greensock.plugins.*;
    TweenPlugin.activate([GlowFilterPlugin]);
    
    
    var glow:TweenMax = TweenMax.to(start_btn, .3, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30, paused:true}});
    
    start_btn.addEventListener(MouseEvent.ROLL_OVER, startrollover);
    start_btn.addEventListener(MouseEvent.ROLL_OUT, startrollout);
    
    
    function startrollover(e:MouseEvent):void{
    glow.restart();
    
    }
    
    function startrollout(e:MouseEvent):void{
    glow.reverse();
    }
    

    I'm new to as3 by the way. Maybe it's something with the way I wrote the code?..

  2. I'm very sorry. I think I made a stupid mistake. It's not for tweenlite, it's for TimelineMax. I think the code I'm using is from your tutorial on making a 3d card flip effect. 

     

    This code:

     

    var tl:TimelineMax = new TimelineMax({paused:true});
     
    tl.append(TweenMax.to(flipper.front, flipSpeed, {rotationY:90, visible:false, ease:Linear.easeNone}))
    tl.append(TweenMax.to(flipper.back, 0, {alpha:1, immediateRender:false}))
    tl.append(TweenMax.to(flipper.back, flipSpeed, {rotationY:0, ease:Linear.easeNone}))
     
    and THANK YOU so much for responding and for the code^-^
    I had to say that in all caps.. = )
  3. Can anyone help me? How do I skip a tween using a button function. I want to skip to the end of a tween with a button click.

     

    Example if I click on button1 the mc will tween, but when I click button2 the mc will skip the tween. I'm totally new in using AS3 and I have no idea how to get this to work. Help me please.

×
×
  • Create New...