# Alpha setInterval problem

**URL:** <https://forum.kirupa.com/t/alpha-setinterval-problem/147243>\
**Category:** Uncategorized\
**Created:** [May 8, 2005, 7:50pm UTC](https://forum.kirupa.com/t/alpha-setinterval-problem/147243 "2005-05-08T19:50:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [May 8, 2005, 7:50pm UTC](https://forum.kirupa.com/t/alpha-setinterval-problem/147243/1 "2005-05-08T19:50:06Z")

</div>

I’ve got this code on frame one together with three txt fields. Everything works fine where each txt appear after 5 sec interval (lovely…). But when I add a background or anyhting else for that matter, nothings happens…no fading in…

Does anyone know why?  
here’s my code:

```auto

txtField._alpha = 0
txtField1._alpha = 0
txtField2._alpha = 0
_root.currentTextField = txtField;
_root.counter = 0;
function alphaIt()
{
		
		_root.currentTextField._alpha+=5;
		if( _root.currentTextField._alpha>=100)
		{
				_root.counter++;
				if(_root.counter < 3)
				{
					    
					 _root.currentTextField = _root["txtField"+_root.counter]
				}
				else
				{
					 trace("intervall cleared")
					 clearInterval(_global.intervalId)
				}
		}
}
_global.intervalId = setInterval(alphaIt,100);

```

Appreciate any help! :esmirk:
