/ Published in: ActionScript 3
Expand |
Embed | Plain Text
import flash.utils.Timer; this.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); var myTimer:Timer = new Timer(1000,1); myTimer.addEventListener("timer", function() { //Do what ever you want. Like tween away a movie control using tweenmax. TweenMax.to(control, 1, { alpha:0, ease:Linear.easeNone } ); }); myTimer.start(); private function onMouseMove(e:Event):void { control.alpha = 1; myTimer.reset(); myTimer.start(); }
Comments
Subscribe to comments
You need to login to post a comment.

add a semicolon, after myTimer.start();
Done ;)