..:: MX Studio Fóruns ::..: Me ajudem a finalizar esse botão deslizante - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Me ajudem a finalizar esse botão deslizante Botão iniciar sozinho

#1 User is offline   farv 

  • Group: Membros
  • Posts: 35
  • Joined: 22-December 06

  Posted 11 January 2007 - 02:39 PM

Olá a todos, gostaria de uma ajuda
consegui um botao deslizante que se move junto com a animação...
o unico problema.. é q preciso q ele inicie sozinho com a animação
os comandos dele fazem q ele só acompanhem a animação depois que eu clico em cima dele
se alguem souber como fazer para ele inicar automaticamente ca animação, ficarei grato
obrigado..

aqui esta o codigo

QUOTE
createEmptyMovieClip("barra", getNextHighestDepth());
createEmptyMovieClip("arras", getNextHighestDepth());
var ScrollSize:Number = 112;
with (barra) {
lineStyle(2, 0xCC0000, 100);
lineTo(ScrollSize, 0);
}
with (arras) {
beginFill(0x666666, 100);
moveTo(-2, -5);
lineTo(2, -5);
lineTo(2, 5);
lineTo(-2, 5);
lineTo(-2, -5);
endFill();
}
var DragTotal:Number = _parent._totalframes;
arras.onPress = function() {
this.startDrag(false, 0, 0, 112, 0);
delete onEnterFrame;
onEnterFrame = EF1;
};
arras.onRelease = arras.onReleaseOutside =function () {
this.stopDrag();
_parent.play();
delete onEnterFrame;
onEnterFrame = EF2;
};
function EF1() {
_parent.gotoAndStop(Math.floor((arras._x/112)*DragTotal));
}
function EF2() {
arras._x = Math.floor((_parent._currentframe/DragTotal)*ScrollSize);
}


0

#2 User is offline   Natan 

  • Group: Moderador Global
  • Posts: 7350
  • Joined: 28-February 04

Posted 11 January 2007 - 07:46 PM

Veja se assim funciona:

CODE
createEmptyMovieClip("barra", getNextHighestDepth());
createEmptyMovieClip("arras", getNextHighestDepth());
var ScrollSize:Number = 112;
with (barra) {
lineStyle(2, 0xCC0000, 100);
lineTo(ScrollSize, 0);
}
with (arras) {
beginFill(0x666666, 100);
moveTo(-2, -5);
lineTo(2, -5);
lineTo(2, 5);
lineTo(-2, 5);
lineTo(-2, -5);
endFill();
}
var DragTotal:Number = _parent._totalframes;
arras.onPress = function() {
this.startDrag(false, 0, 0, 112, 0);
delete onEnterFrame;
onEnterFrame = EF1;
};
arras.onRelease = arras.onReleaseOutside =function () {
this.stopDrag();
_parent.play();
delete onEnterFrame;
onEnterFrame = EF2;
};
function EF1() {
_parent.gotoAndStop(Math.floor((arras._x/112)*DragTotal));
}
function EF2() {
arras._x = Math.floor((_parent._currentframe/DragTotal)*ScrollSize);
}
EF1();


Qualquer coisa é só falar.

Falow
0

#3 User is offline   farv 

  • Group: Membros
  • Posts: 35
  • Joined: 22-December 06

Posted 12 January 2007 - 09:04 AM

putzz...
naum deu cara,,,,,
ele continua parado....
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


Similar Topics Collapse

  Topic Forum Started By Stats Last Post Info
New Replies Layout no fireworks
tem como fazer esses layouts?
Fireworks Gisa Iagami 
  • 4 Replies
  • 5289 Views
New Replies Onde tem esse tutorial
Janela popup
Dreamweaver Jaidelson 
  • 1 Reply
  • 602 Views
New Replies me ajudem, plzzzz =( Dreamweaver Thompson 
  • 3 Replies
  • 855 Views
New Replies Sugestão para a maratona de botões e menus
Sugira um menu ou botão!
Tutoriais e Artigos TiagoPeres 
  • 6 Replies
  • 5551 Views
New Replies Barra de rolagem
Ajudem Plz
Dreamweaver Nickp 
  • 5 Replies
  • 1190 Views
New Replies Cortinas deslizantes
Efeito em flash para botão deslisante
Tutoriais e Artigos anonymattos 
  • 1 Reply
  • 3275 Views
New Replies [DUVIDA]Skin p/ o Live Messenger Dúvidas Gerais zehzaum 
  • 0 Replies
  • 824 Views
New Replies Botao com get URL do FLASH no Director.
Não funcionou, tem que colocar qual cod?
Director WEBTON 
  • 1 Reply
  • 3583 Views

Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)