Hi,
I am working on a small project. It’s a Rollover , Rollout project. There is an image1 on roll over of that image1 another image2 appears. The image2 should hold 6 second’s on rollout of mouse from image1.And if within 6 sec we again rollover on image1 then the image 2 should hold its position else after 6 sec if there is no rollover on image1 within 6 sec then image2 should go to its original position.
The code is -----------------
btn_01.onRelease = function(){
getURL(“http://www.yahoo.co.in”,_blank);
}
btn_01.onRollOver = function(){
Flag1 = 0;
Timer1 = 0;
//trace(Flag1);
gotoAndStop(“main”);
}
btn_01.onRollOut = function(){
Flag1 = 1;
Timer1 = 0;
//trace(Flag1);
checkCounter();
}
function checkCounter(){
trace(Timer1);
if(Flag1==1)
{
if(Timer1 < 6)
{
Timer1 = Timer1+1;
//checkCounter();
var my_timedProcess:Number = setTimeout(checkCounter, 1000, true);
}
else
{
Flag1 = 0;
trace(“Flag”+Flag1)
Timer1 = 0;
trace(“Timer1”+Timer1)
gotoAndPlay(“out1”);
break;
}
}
else
{
Flag1 = 0;
trace(“Flag----”+Flag1)
Timer1 = 0;
trace(“Timer1----”+Timer1)
break;
}
}
thanks and Regards
Satyendra …
please help me…