Ir para conteúdo
Fórum Script Brasil
  • 0

Zoom Com Problema


gu_lt

Pergunta

Bem galera eu fiz um AS p/ zoom(http://www.gu_lt.ubbi.com.br/zoom_automatico_3.htm) e movimentar uma foto e está dando os seguintes erros:

1 - Não estou conseguindo delimitar as fotos;

2 - Quando aumento o zoom e depois eu quero diminuir a foto sai do centro caso eu tenha movido elas de lado;

Alguém podee me dar um help?

valeu

Gustavo

Link para o comentário
Compartilhar em outros sites

7 respostass a esta questão

Posts Recomendados

  • 0

como você está tentando delimitar o zoom e o movimento?

Link para o comentário
Compartilhar em outros sites

  • 0

??????? não entendi...poderia explicar o que se passa? você conseguiu fazer? se conseguiu, posta aí como fez

Link para o comentário
Compartilhar em outros sites

  • 0

posta aí o modo que você tentou fazer pragente tentar te ajudar.....

Link para o comentário
Compartilhar em outros sites

  • 0

O código de movimento é esse:

//--------Mover para cima---------------------------------------

funfacim.onRollOver = function() {

_root.onEnterFrame = function() {

  if (meu_mc._xscale == 100) {

   stop();

  } else {

   meu_mc._y<1000 ? meu_mc._y -= 10 : null;

  }

};

};

funfacim.onRelease = function() {

delete _root.onEnterFrame;

};

funfacim.onRollOut = function() {

_root.onEnterFrame = function() {

  stop();

};

};

funfacim.onRelease = function() {

delete _root.onEnterFrame;

};

//--------Mover para baixo---------------------------------------

funfabai.onRollOver = function() {

_root.onEnterFrame = function() {

  if (meu_mc._xscale == 100) {

   stop();

  } else {

   meu_mc._y<1000 ? meu_mc._y += 10 : null;

  }

};

};

funfabai.onRelease = function() {

delete _root.onEnterFrame;

};

funfabai.onRollOut = function() {

_root.onEnterFrame = function() {

  stop();

};

};

funfabai.onRelease = function() {

delete _root.onEnterFrame;

};

//--------Mover para direito-------------------------

funfadir.onRollOver = function() {

_root.onEnterFrame = function() {

  if (meu_mc._xscale == 100) {

   stop();

  } else {

   meu_mc._x<490 ? meu_mc._x += 10 : null;

  }

};

};

funfadir.onRelease = function() {

delete _root.onEnterFrame;

};

funfadir.onRollOut = function() {

_root.onEnterFrame = function() {

  stop();

};

};

funfadir.onRelease = function() {

delete _root.onEnterFrame;

};

//--------Mover para esquerdo-------------------------

funfaesq.onRollOver = function() {

_root.onEnterFrame = function() {

  if (meu_mc._xscale == 100) {

   stop();

  } else {

   meu_mc._x<500 ? meu_mc._x -= 10 : null;

  }

};

};

funfaesq.onRelease = function() {

delete _root.onEnterFrame;

};

funfaesq.onRollOut = function() {

_root.onEnterFrame = function() {

  stop();

};

};

funfaesq.onRelease = function() {

delete _root.onEnterFrame;

};

O código do zoom é esse:

//-----Aumentar

funciona.onRollOver = function() {

_root.onEnterFrame = function() {

  meu_mc._xscale<200 ? meu_mc._xscale += 10 : null;

  meu_mc._yscale<200 ? meu_mc._yscale += 10 : null;

};

};

funciona.onRelease = function() {

delete _root.onEnterFrame;

};

funciona.onRollOut = function() {

_root.onEnterFrame = function() {

  stop(); 

};

};

funciona.onRelease = function() {

delete _root.onEnterFrame;

};

//-------Diminuir

funfa2.onRollOver = function() {

_root.onEnterFrame = function() {

  if (meu_mc._xscale == 100) {

   stop();

  } else {

   meu_mc._xscale>100 ? meu_mc._xscale -= 10 : null;

   meu_mc._yscale>100 ? meu_mc._yscale -= 10 : null;

  }

};

};

funfa2.onRelease = function() {

delete _root.onEnterFrame;

};

funfa2.onRollOut = function() {

_root.onEnterFrame = function() {

  stop();

};

};

funfa2.onRelease = function() {

delete _root.onEnterFrame;

};

Gustavo

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,4k
    • Posts
      652,1k
×
×
  • Criar Novo...