Jump to content
Search Community

raivispurins

Members
  • Posts

    3
  • Joined

  • Last visited

raivispurins's Achievements

0

Reputation

  1. I still don`t get it, It should work as you said to me, but not this time. the code: map_b.addEventListener(Event.ENTER_FRAME, glow); function glow(evt:Event): void{ TweenMax.to(map_b, 1.75, {glowFilter:{color:0x990000, alpha:1, blurX:30, blurY:30, strength:2.5, quality:3, repeat:10, yoyo:true}}); } It glows only once and nothing happens. Even if I use the tween without enterframe event, it only work once.
  2. I tried to use a greensock tweening class, for creating a pulsing object. The pulsing means, that it`s glow to 40 to 40 px blur, but after it goes back to 0px position. The code i use is something like this: function glow(evt:Event):void{ for (var i:Number = 0; i < 2; i++) { } if (i>2){ i--; } } TweenMax.to(map_b, 1.5, {dropShadowFilter:{color:0xff0000, alpha:i, blurX:60, blurY:60, strength:10, angle:0, distance:0}}); But something is`n working, or maybe my code is wrong, or you can`t point me how to create looping with tween. Thank you in advance!
×
×
  • Create New...