Jump to content
Search Community

MetaFurionX

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by MetaFurionX

  1. If I may, I'd like to contribute to this old topic with an alternate solution for the record. It's actually more like "the other way around" of GreenSock's solution. I think you guys might find it interesting. function blurToX(mc:MovieClip, amount:Number):Function { return function(event:MouseEvent):void { TweenMax.to(mc, 1, {blurFilter:{blurX:amount}}); }; } var overHandler:Function = blurToX(myClip, 100); myButton.addEventListener(MouseEvent.ROLL_OVER, overHandler); //myButton.removeEventListener(MouseEvent.ROLL_OVER, overHandler); And on the second case: function movBar(pos:Number, wid:Number):Function { return function(event:MouseEvent):void { TweenLite.to(orangeBar, .5, {x:pos, width:wid}); }; } btn_about.addEventListener(MouseEvent.ROLL_OVER, movBar(39, 51.5)); btn_portfolio.addEventListener(MouseEvent.ROLL_OVER, movBar(140.5, 81.5)); btn_approach.addEventListener(MouseEvent.ROLL_OVER, movBar(255.5, 81)); btn_blog.addEventListener(MouseEvent.ROLL_OVER, movBar(350.5, 9)); btn_contact.addEventListener(MouseEvent.ROLL_OVER, movBar(440, 71));
×
×
  • Create New...