Hello,
What would be a better loop solution? Its some flickering thing, 40 fps.
I cant tell the difference, or benefits..
This:
Or this:Code:import flash.filters.*; import com.greensock.*; rm.addEventListener(Event.ENTER_FRAME, ram); function ram(e:Event):void{ if (this.currentFrame == 1) { for (var i:int=1; i<=40; i++) var br1 = (Math.floor(Math.random() * .85 + .65)) ; TweenMax.to(rm, .6, {colorMatrixFilter:{index:1, brightness:.3 + br1, contrast:.55 + br1}}); } }
ThanksCode:import flash.filters.*; import com.greensock.*; rm.addEventListener(Event.ENTER_FRAME, ram); function ram(e:Event):void{ if (this.currentFrame == 1) { var br1 = (Math.floor(Math.random() * .85 + .65)) ; TweenMax.to(rm, .6, {colorMatrixFilter:{index:1, brightness:.3 + br1, contrast:.55 + br1}, onComplete:ram}); } }




Reply With Quote