# Help me with pulse effect code

**URL:** <https://forum.kirupa.com/t/help-me-with-pulse-effect-code/223837>\
**Category:** Uncategorized\
**Created:** [April 26, 2007, 4:47am UTC](https://forum.kirupa.com/t/help-me-with-pulse-effect-code/223837 "2007-04-26T04:47:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnPopes](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JohnPopes](https://forum.kirupa.com/u/JohnPopes)\
**Post date:** [April 26, 2007, 4:47am UTC](https://forum.kirupa.com/t/help-me-with-pulse-effect-code/223837/1 "2007-04-26T04:47:28Z")

</div>

hey i need a piece of code to animate a blurred star. it needs to simulate the fast pulse of a star… i thought using a bit of code i developed to animate another thing i had but i guess theres something better.  
i i have is this:

```auto
 
this.onEnterFrame = function() {
 resError.warn._alpha = ((1+Math.cos(counter2/3)*100)/5)+40;
};

```

help plz?
