targetBtn.onRollOver = function()
{
if (lastBtn == _level0.btn1)
{
TweenLite.to(this.txt,.4,{_alpha:0, _xscale:50, _yscale:50});
;
TweenGroup.allTo(photoArray_show,.4,{_alpha:100});
switch (targetBtn)
{
case _level0.btn2 :
TweenLite.to(titleTxt2,.4,{_alpha:100});
break;
I am using this code for my menu button rollovers.
It’s working, but I don’t want the rollovers to be active until this function is complete:
function show()
{
TweenGroup.allTo([box_mc, txtArray],.4,{_alpha:100});
var i:Number = 0;
incrementText = setInterval(changeText, 166);
function changeText()
{
if (i <= 47)
{
box_mc.sadieTxt.text = txtArray*;
i++;
} else
{
clearInterval(incrementText);
}
}
}
Any ideas of how I can do this?
Thanks!