Código ActionScript :
on (press, keyPress "1")
{
//_parent
tellTarget("gameboard/bat")
{
setProperty("", _x, -80);
setProperty("", _y, -75);
gotoAndPlay(2);
tellTarget("")
{
if (getProperty("/gameBoard/imp1", _currentframe) > 4 && ("/gameBoard/imp1", _currentframe) <= 18)
{
tellTarget("gameBoard/imp1")
{
gotoAndPlay("hit");
tellTarget("")
{
whackScore = whackScore + 1;
}
}
}
}
}
}Desde ya muchas gracias!!
Saludos!
