I’ve been working on this code where txt boxes appear after a set interval. This works fine, but I’m trying to control the txt’s appearance on mouse click but I’m not sure what to do. Does anybody know?
This is the code I’m using:
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);
wB