Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

xShacka

Problemas na leitura do ID

Recommended Posts

bom dia povo

 

segue o codigo:

			mc_cont.mc_forum.duplicateMovieClip("mc_forum"+h,h,{});
			/////////////
			mc_cont["mc_forum"+h]._y = mc_cont["mc_forum"+h]._y+pos;
			/////////////			
			load_imagem(galeria+sql.res["id"+cont]+".jpg",mc_cont["mc_forum"+h].foto_1.foto_dentro,mc_cont["mc_forum"+h].foto_1);
			/////////////			
			mc_cont["mc_forum"+h].foto_1.target = sql.res["id"+cont];
			mc_cont["mc_forum"+h].foto_1.onRelease = function() {
				trace(this.target);
				Lightbox(['http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'.jpg', 'http://www.servidorconcursos.com.br/galeria/'+sql.res['id'+h]+'a'+'.jpg'],['Servidor Concursos', '']);
			};
			mc_cont["mc_forum"+h].foto_1.onRollOver = function() {
				this._alpha = 50;
			};
			mc_cont["mc_forum"+h].foto_1.onRollOut = function() {
				this._alpha = 100;
			};
			
			////// FOTO 2
			++cont;
			load_imagem(galeria+sql.res["id"+cont]+".jpg",mc_cont["mc_forum"+h].foto_2.foto_dentro,mc_cont["mc_forum"+h].foto_2);
			
			mc_cont["mc_forum"+h].foto_2.target = sql.res["id"+cont];
			mc_cont["mc_forum"+h].foto_2.onRelease = function() {
				trace(this.target);
				Lightbox(['http://www.servidorconcursos.com.br/galeria/'+sql.res['id'+cont]+'.jpg', 'http://www.servidorconcursos.com.br/galeria/'+sql.res['id'+h]+'a'+'.jpg'],['Servidor Concursos', '']);
			};
			mc_cont["mc_forum"+h].foto_2.onRollOver = function() {
				this._alpha = 50;
			};
			mc_cont["mc_forum"+h].foto_2.onRollOut = function() {
				this._alpha = 100;
			};
			
			////// FOTO 3			
			++cont;
			load_imagem(galeria+sql.res["id"+cont]+".jpg",mc_cont["mc_forum"+h].foto_3.foto_dentro,mc_cont["mc_forum"+h].foto_3);

			mc_cont["mc_forum"+h].foto_3.target = sql.res["id"+cont];
			mc_cont["mc_forum"+h].foto_3.onRelease = function() {
				trace(this.target);
				Lightbox(['http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'.jpg', 'http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'a'+'.jpg'],['Servidor Concursos', '']);
			};
			mc_cont["mc_forum"+h].foto_3.onRollOver = function() {
				this._alpha = 50;
			};
			mc_cont["mc_forum"+h].foto_3.onRollOut = function() {
				this._alpha = 100;
			};
			
			////// FOTO 4			
			++cont;
			load_imagem(galeria+sql.res["id"+cont]+".jpg",mc_cont["mc_forum"+h].foto_4.foto_dentro,mc_cont["mc_forum"+h].foto_4);
			trace(galeria+sql.res["id"+cont]+".jpg");

			mc_cont["mc_forum"+h].foto_4.target = sql.res["id"+cont];
			mc_cont["mc_forum"+h].foto_4.onRelease = function() {
				Lightbox(['http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'.jpg', 'http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'a'+'.jpg'],['Servidor Concursos', '']);
			};
			mc_cont["mc_forum"+h].foto_4.onRollOver = function() {
				this._alpha = 50;
			};
			mc_cont["mc_forum"+h].foto_4.onRollOut = function() {
				this._alpha = 100;
			};
			////// FOTO 5		
			++cont;
			load_imagem(galeria+sql.res["id"+cont]+".jpg",mc_cont["mc_forum"+h].foto_5.foto_dentro,mc_cont["mc_forum"+h].foto_5);
			trace(galeria+sql.res["id"+cont]+".jpg");

			mc_cont["mc_forum"+h].foto_5.target = sql.res["id"+cont];
			mc_cont["mc_forum"+h].foto_5.onRelease = function() {
				Lightbox(['http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'.jpg', 'http://www.servidorconcursos.com.br/galeria/'+sql.res['id']+'a'+'.jpg'],['Servidor Concursos', '']);
			};
			mc_cont["mc_forum"+h].foto_5.onRollOver = function() {
				this._alpha = 50;
			};
			mc_cont["mc_forum"+h].foto_5.onRollOut = function() {
				this._alpha = 100;
			};
			++cont;
			mc_cont["mc_forum"+h].linha_dica._y = mc_cont["mc_forum"+h].foto_1._y+mc_cont["mc_forum"+h].foto_1._height+7;
			pos = pos+mc_cont["mc_forum"+h].linha_dica._y;
		}

bom o problema esta no ligthbox q quando abre no browser ele nao muda o id certo so abre 1 id ele nao altera para outro id :S

qual seria o problema alguem pode me ajudar, oproblema esta aqui creio eu '+sql.res['id']+'.jpg'

 

Grato

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tenta colocar assim:

 

 

 mc_cont["mc_forum"+h].foto_1.imagem = sql.res['id']+'.jpg';
 mc_cont["mc_forum"+h].foto_1.imagem2 = sql.res['id'+h]+'a'+'.jpg';
 mc_cont["mc_forum"+h].foto_1.onRelease = function() {
                                trace(this.target);
                                Lightbox(['http://www.servidorconcursos.com.br/galeria/'+ this.imagem, 'http://www.servidorconcursos.com.br/galeria/'+ this.imagem2],['Servidor Concursos', '']);
                        };



Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.