quinta-feira, 17 de fevereiro de 2011

quizz do Nico - Ligue o som e espere que carregue

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player


1 comentário:

Unknown disse...

Scroll animado:

onClipEvent (load) {
_root.flag = 0;
_root.conta = 0;
_root.total = 0;
_root.flag2 = 0;
_root.flag3 = 0;
}

onClipEvent (enterFrame) {
trace("conta="+_root.conta);
trace("total="+_root.total);
trace("flag="+_root.flag);
trace("flag2="+_root.flag2);
trace("timer="+getTimer());
if (_root.flag2 == 1) {
if (_root.conta<1000) {
_root.mc._y = _root.mc._y+(_root.conta*0.0025);
_root.conta = getTimer()-_root.total;

trace("quero ver ------------------------------------------------ ");
} else if (_root.conta>=1000) {
_root.flag2 = 0;
}
}

if (_root.flag3 == 1) {
if (_root.conta<1000) {
_root.mc._y = _root.mc._y-(_root.conta*0.0025);
_root.conta = getTimer()-_root.total;

trace("quero ver ------------------------------------------------ ");
} else if (_root.conta>=1000) {
_root.flag3 = 0;
}
}
_root.btup.onRelease = function() {
_root.flag2 = 1;
_root.flag = 1;
if (_root.flag == 1) {
trace("ola_up");
_root.total = getTimer();
_root.flag = 0;//desliga a flag
_root.conta = 0;//limpa a contagem
}
};

_root.btdown.onRelease = function() {
_root.flag3 = 1;
_root.flag = 1;
if (_root.flag == 1) {
trace("ola_up");
_root.total = getTimer();
_root.flag = 0;//desliga a flag
_root.conta = 0;//limpa a contagem
}
};


}