Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

saki

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by saki

  1. actually this is not my work but a tweenmax & tweenlte basic tutotials which i found on Vimeo Hope it is usefull for Noobs like me Thanks http://www.vimeo.com/user2329782/videos ... ort:newest
  2. menu_items.addEventListener(MouseEvent.ROLL_OVER,overHandler); menu_items.addEventListener(MouseEvent.ROLL_OUT,outHandler); menu_items.addEventListener(MouseEvent.CLICK,clickHandler ); function overHandler(e:MouseEvent):void{ TweenLite.to(e.currentTarget,1,{x:0,ease:Bounce.easeOut}); } function outHandler(e:MouseEvent):void{ TweenLite.to(e.currentTarget,1,{x:-168,ease:Bounce.easeOut}); } function clickHandler(e:MouseEvent ):void{ trace(e.currentTarget.name + " was clicked"); } i want the tween to end or stop on Click Event any Suggestions Please
  3. thanks for solving my problem here is example for it TweenMax.fromTo(mc, 1, {x:0, y:0}, {x:300, y:200,ease:Expo.easeOut,onComplete:myFunction}); function myFunction ():void { trace("Do it"); TweenMax.to(mc2, 1, {x:"65", y:"117", ease:Circ.easeInOut}); }
  4. i had to make a EventListener for TweenMax.fromTo but i am getting error var myTween:TweenMax = new TweenMax.fromTo(my_mc, 1, {x:0, y:0}, {x:300, y:200,ease:Expo.easeOut}); myTween.addEventListener(Event.COMPLETE,playIntro); function playIntro (e:TweenEvent):void { trace("MyTween Finished"); } 1048: Method cannot be used as a constructor. var myTween:TweenMax = new TweenMax.fromTo(my_mc, 1, {x:0, y:0}, {x:300, y:200,ease:Expo.easeOut}); Another Method Same Error import com.greensock.*; import com.greensock.easing.*; import fl.transitions.TweenEvent; var myTween:TweenMax = new TweenMax.fromTo(my_mc, 1, {x:0, y:0}, {x:300, y:200,ease:Expo.easeOut,onComplete:myFunction}); function myFunction (onComplete):void { trace("MyTween Finished"); } 1048: Method cannot be used as a constructor. var myTween:TweenMax = new TweenMax.fromTo(my_mc, 1, {x:0, y:0}, {x:300, y:200,ease:Expo.easeOut}); Please put on some Suggestion
  5. many many thanks tronicVota for so instant reply
  6. i have done example using :TweenMax.fromTo(mc, 1, {x:0, y:0}, {x:300, y:200}); but how i add easing to it hopeing for some tips
×