Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Olá pessoal...paz e bem e feliz natal p todos!
Seguinte...tenho um "joguinho" onde o user irá arrastar as "peças" para encaixar nos devidos lugares. Até ai, tudo bem, consegui fazer sem problemas!
Acontece que estou querendo colocar um "aviso" para aparecer ao final de todas as peças encaixadas e ao mesmo tempo, habilitar um botao de "proxima tela".
O cod que estou usando para arrastar as "peças":
/////////////////////// 1º item_menu e alvo
target1.onPress = function()
{
this.startDrag(true);
}
target1.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 29; //cordenada y do ponto inicial
this._x = 74,5; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target2.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 60,4; //cordenada y do ponto inicial
this._x = 86,2; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target3.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 91,8; //cordenada y do ponto inicial
this._x = 66,2; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target4.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 123,2; //cordenada y do ponto inicial
this._x = 76,9; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target5.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 154,6; //cordenada y do ponto inicial
this._x = 64,2; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target6.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 186,0; //cordenada y do ponto inicial
this._x = 67,3; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target7.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 217,4; //cordenada y do ponto inicial
this._x = 72,3; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target8.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 248,8; //cordenada y do ponto inicial
this._x = 64,3; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target9.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 280,2; //cordenada y do ponto inicial
this._x = 76,8; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target10.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 311,6; //cordenada y do ponto inicial
this._x = 76,5; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target11.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 343,0; //cordenada y do ponto inicial
this._x = 73,9; //cordenada x do ponto inicial
}
} this.startDrag(true);
}
target12.onRelease = function() this.stopDrag();
}
else
{
this.stopDrag();
this._y = 374,4; //cordenada y do ponto inicial
this._x = 86,9; //cordenada x do ponto inicial
}
}Acho que consegui me expressar legal né....aguardo ajuda!!!
Carregando comentários...