Jump to content
Search Community

codeBeast

Members
  • Posts

    1
  • Joined

  • Last visited

codeBeast's Achievements

0

Reputation

  1. 1061: Call to a possibly undefined method start through a reference with static type gs:TweenLite. Hi - I want the the button to tween larger then back to its normal state. BUT I get the error above. import gs.TweenLite; import gs.easing.*; import gs.events.TweenEvent; var myTween:TweenLite = new TweenLite(button,1,{scaleX:1.05,scaleY:1.05,onComplete:myReverseFunction}); button.addEventListener(MouseEvent.ROLL_OVER, rollOverHandler, false, 0, true); button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true); //button.addEventListener(Event.MOUSE_UP, mouseUpHandler); button.addEventListener(MouseEvent.ROLL_OUT, rollOutHandler, false, 0, true); function rollOverHandler(e:MouseEvent):void { //TweenLite.to(button, 1, {scaleX:1.05, scaleY:1.05, ease:Elastic.easeOut}); //TweenLite.to(button,1,{scaleX:1.05,scaleY:1.05,onComplete:myReverseFunction}); myTween.start(); } function myReverseFunction():void { myTween.reverse(); }
×
×
  • Create New...