xavrim 0 Denunciar post Postado Maio 8, 2008 Outra dúvida.. Tenho um movie chamado esteira, eu queria que ele fosse até o final é voltasse.. Tenho este código no meu movie clip onClipEvent (load) { speed = 3/10; distancia = 15; posInicial = 0; _global.largura = esteira._height; } onClipEvent(enterFrame) { _y -= (distancia*speed); if (_y>posInicial) { _y = -_global.largura; } if (_y>= Stage.height) { _y = _y-posInicial; } } Outra dúvida, espero que alguem ajude. Compartilhar este post Link para o post Compartilhar em outros sites
xavrim 0 Denunciar post Postado Maio 8, 2008 Agora fiz isso onClipEvent (load) { speed = 5/10; distancia = 15; posInicial = 0; _global.largura = esteira._height; } onClipEvent(enterFrame) { if(this._y<=-985.85){ this._y += (distancia*speed); } else{ this._y -= (distancia*speed); } } So que não rola a animação de volta Compartilhar este post Link para o post Compartilhar em outros sites