• flickr
  • linkedin
  • twitter
  • rss

Tech

TweenMax tween curves

TweenMax tween curves

import com.greensock.TweenMax; import com.greensock.plugins.BezierPlugin; import com.greensock.plugins.BezierThroughPlugin; TweenMax.to(sp,5,{bezierThrough:[{x:250,y:100},{x:50,y:200},{x:500,y:200}]}); Man TweenLite/TweenMax is awesome.
Call AS3 functions from javascript and vice versa

Call AS3 functions from javascript and vice versa

To communicate between JavaScript and Actionscript it isn't so hard. FLASH: import flash.external.ExternalInterface; ExternalInterface.addCallback("sendTextToFlash", getTextFromJavaScript); function getTextFromJavaScript(str):void { trace(str); }…
Turning a clip to a point AS3

Turning a clip to a point AS3

Use Math.atan2. So handy but forgetable. var targetAngle:Number = Math.atan2(mouseY - this.y, mouseX - this.x); var angle:Number = targetAngle *…
5 of 11
123456789