Jump to content


Photo

Load Images Naum Funciona .! Resolvido


  • Faça o login para participar
1 reply to this topic

#1 rianx

rianx

    Novato no fórum

  • Usuários
  • 6 posts
  • Sexo:Não informado

Posted 07/10/2004, 18:24

Fiz um load images através de action script baseado no modelo fornecido
junto com o falsh mx pela macromedia ... e naum consigo fazer as imagens
carregar ... o que pode haver de errado ?

O arquivo esta nessa pagina --->> http://www.connectiv....com.br/jamail/

O código do action é esse abaixo:

//initialize variables and properties
square._alpha = 0;
whichPic = 1;
//initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<5 && !fadeIn && !fadeOut) {
  fadeOut = true;
  whichpic++;
  input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
  fadeOut = true;
  whichpic--;
  input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
  square._alpha -= 10;
}
if (square._alpha<10) {
  loadMovie("../images/image"+whichPic+".jpg", "square");
  fadeOut = false;
  fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
  square._alpha += 10;
} else {
  fadeIn = false;
}
// limit input field
if (input>5) {
  input = 5;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
  fadeOut = true;
  whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed,
change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};


Help-me Please

Ricardo

Edição feita por: rianx, 08/10/2004, 11:49.


#2 Hes Vital

Hes Vital

    Doutor

  • Usuários
  • 796 posts
  • Sexo:Não informado
  • Localidade:Leste - Santa Catarina
  • Interesses: * Programação - Sempre é bom criar algo.<br> - PHP<br> - Action Script<br> * Jogos - Nunca se é velho demais pra jogar.<br> - RPG<br> - Ação<br> - Outros

Posted 08/10/2004, 11:59

As imagens são aquelas das ofertas? Aqui tá tudo normal.
Quantos programadores são necessários para trocar uma lâmpada?
Só um, mas a casa cai!

Posted Image




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq