Código :
Código:
function mover(mc, destinoX, destinoY, velxy, alfa, velAlfa) {
mc.onEnterFrame = function() {
mc._x += ((destinoX-mc._x)/velxy);
mc._y += ((destinoY-mc._y)/velxy);
mc._alpha += ((alfa-mc._alpha)/velAlfa);
if (mc._x == destinoX) {
delete mc.onEnterFrame;
}
};
}
//
function moviendo(mc, destinoX, destinoY, escalaX, escalaY) {
new mx.transitions.Tween(mc, "_x", mx.transitions.easing.Strong.easeOut, mc._x, destinoX, 8, true);
var myTween2:Tween = new Tween(mc, "_y", mx.transitions.easing.Strong.easeOut, mc._y, destinoY, 8, true);
myTween2.onMotionFinished = function() {
new mx.transitions.Tween(mc, "_xscale", mx.transitions.easing.Strong.easeOut, mc._xscale, escalaX, 2, true);
new mx.transitions.Tween(mc, "_yscale", mx.transitions.easing.Strong.easeOut, mc._yscale, escalaY, 2, true);
};
}
function cargaSub() {
//loadMovie(mc, "mcOpcion");
mover(_parent._parent._parent.mcEspacio.mcCargaMusic.mcSu.mcSubmenu, -19, 632, 5, 100, 5);
//mcBuho.mcCuerpo.txt.text = "* "+arTitulos[indice-1];
//mcBuho.mcCuerpo.mcIndice._visible = true;//Marco
_parent._parent._parent.mcEspacio.entraBuho();
_parent._parent._parent.mcEspacio.mcLogo._visible = true;
clearInterval(car);
}
mcAstro.bt.onRelease = function() {
acciones();
wait = setInterval(function () {
moviendo(_parent._parent._parent.mcEspacio.mcFondo, _parent._parent._parent.mcEspacio.mcFondo._x-350, _parent._parent._parent.mcEspacio.mcFondo._y-1800, 100, 100);
car=setInterval(cargaSub() ,10000) // aqui es donde cargo o visualizo todo le calcule 10 segundos pero no me lo hace
clearInterval(wait);
}, 3000);
};
