# Problem with setInterval(). Help! please

**URL:** <https://forum.kirupa.com/t/problem-with-setinterval-help-please/54855>\
**Category:** Uncategorized\
**Created:** [June 18, 2004, 6:53am UTC](https://forum.kirupa.com/t/problem-with-setinterval-help-please/54855 "2004-06-18T06:53:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mx\_guest2004](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@mx\_guest2004](https://forum.kirupa.com/u/mx_guest2004)\
**Post date:** [June 18, 2004, 6:53am UTC](https://forum.kirupa.com/t/problem-with-setinterval-help-please/54855/1 "2004-06-18T06:53:56Z")

</div>

Hi!  
I have this code to load an external swf and changing it’s \_alpha.  
Problem is that the function doesn’t works on the clip.  
mx-guest2004  
[AS]  
\_root.createEmptyMovieClip(“butt”,21);  
loadMovie(“photobutton.swf”, “butt”);  
setProperty(“butt”, \_alpha, 0);  
function reAlpha(clip, targ, speed) {  
if (clip.\_alpha\<targ) {  
clip.\_alpha += speed;  
} else {  
clearInterval(reAlphaInt);  
}  
}  
reAlphaInt = setInterval(reAlpha, 20, butt, 100, 5);  
[/AS]
