Jump to content


::: Mr.Crowley :::

Member Since 30/07/2003
Offline Last Active 28/10/2009, 09:43
-----

Topics I've Started

Problema Estranho Com Actionscript

27/10/2009, 13:16

galera, por gentileza, acessem este site http://arqinove.chidaweb.com.br
este é um site de um cliente meu, estou fazendo os testes finais do site, porém, estou tendo um sério problema, que está me deixando maluco.

bom, na parte de Atelier, tem 6 sublinks, bom, kd sublink, chama 1 arquivo .swf diferente.
porém, kd swf, a única coisa que muda entre eles é o arquivo XML que é chamado, e o nome do mesmo, é claro.
mas, cada sublink esta dando um problema diferente.
Ja mudei os nomes no XML, fiz várias coisas a respeito da parte de HTML, e nada muda.
Ja vi e revi o código AS, mas todos são iguais, e eu não entendo por que cada um está com um problema diferente.

assim:
- na parte Atelier -> Residencial, uns linsk funcionam, mas uns quando clica, trava o navegador, como se o script repetisse infinitas vezes, tornando-o longo d+, travando o navegador.
- na parte Atelier -> Comercial, todos os links funcionam perfeitamente, porém, quando clico nas miniaturas, nada acontece, em todos os links.
- na parte Atelier -> Arquitetonicos, o link "Res. Village das Nações", as imagens que aparecem após clicar na miniatura, aparecem de outro projeto.
esses são alguns dos problemas...
mas é só nessa área que estão bugando, ta cheio de bugs, e não estou entendendo, é o porque, que cada um está com um problema diferente, sendo que não muda nada no seu código AS.

Código AS:
stop();this._lockroot = true;//------ VARs MovieClip Projetos -----------var projetos:MovieClip = _root.projetos;var bt_sobe:MovieClip = projetos.bt_sobe;var bt_desce:MovieClip = projetos.bt_desce;var mask_lista:MovieClip = projetos.mask_lista;var lista:MovieClip = projetos.lista;var back_lista:MovieClip = lista.back_lista;var bt_lista:MovieClip = lista.bt_lista;//-------------------------------------------// INÍCIOmask_lista._alpha = 0;bt_lista._alpha = 0;back_lista._alpha = 0;import flash.filters.GlowFilter;var glow:GlowFilter = new GlowFilter(0x666666, 100, 2.5, 2.5, 1.5, 3, false, false);var glowArray:Array = new Array();glowArray.push(glow);System.useCodepage = false;var GaleriaXML:XML = new XML();GaleriaXML.load("residencial.xml?nocache="+getTimer());GaleriaXML.ignoreWhite = true;GaleriaXML.onLoad = function(){	Projetos = GaleriaXML.firstChild;	NoProjetos = Projetos.childNodes.length;	txtPosX = 20;	txtPosY = 40;	for(i=0; i<NoProjetos; i++){		Projeto = Projetos.childNodes[i];		IDProjeto = Projeto.nodeName;		NomeProjeto = Projeto.attributes.nome;		LocalProjeto = Projeto.attributes.local;		AnoProjeto = Projeto.attributes.ano;		txtPosY += 20;		hDepth = lista.getNextHighestDepth()+1;		var myTF:TextField = lista.createTextField("nome["+i+"]", hDepth, txtPosX, txtPosY, 600, 20);		myTF.selectable = false;		myTF.html = true;		myTF.textColor = 0x666666;		myTF.type = "static";		myTF.htmlText = "<font face=\"Verdana\" size=\"11px\"><b>Projeto:</b> "+NomeProjeto+" / <b>Local:</b> "+LocalProjeto+" / <b>Ano:</b> "+AnoProjeto+"</font>";		lista.setMask(mask_lista);		butMC("bt"+i,txtPosX,txtPosY,IDProjeto);	}	bts_lista();}function butMC(nomeBT,posx,posy,id){	var nomeBT:MovieClip = bt_lista.duplicateMovieClip(nomeBT, lista.getNextHighestDepth());	nomeBT._alpha = 0;	nomeBT._x = posx;	nomeBT._y = posy;		nomeBT.onRelease = function(){		var idP:String = id;		callFotos(idP);	}		nomeBT.onRollOver = function(){		back_lista._alpha = 100;		back_lista._x = posx;		back_lista._y = posy;	}		nomeBT.onRollOut = function(){		back_lista._alpha = 0;	}}function bts_lista(){	bt_sobe.onRollOver = function(){		tamLISTA = lista._height;		if(tamLISTA > 270){			sobra = tamLISTA - 270;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_y = lista._y;					if(pos_y != 0){						lista._y += 5;					}				}				l += 5;			}		}	}	bt_desce.onRollOver = function(){		tamLISTA = lista._height;		if(tamLISTA > 270){			sobra = tamLISTA - 270;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_y = lista._y;					if(pos_y >= -sobra){						lista._y -= 5;					}				}				l += 5;			}		}	}	bt_sobe.onRollOut = function(){		onEnterFrame = function(){			lista._y;		}	}	bt_desce.onRollOut = function(){		onEnterFrame = function(){			lista._y;		}	}}//------ VARs MovieClip Fotos -----------var fotos:MovieClip = _root.fotos;var bt_direita:MovieClip =  fotos.bt_direita;var bt_esquerda:MovieClip =  fotos.bt_esquerda;var bt_voltar:MovieClip =  fotos.bt_voltar;//----------------------------------------// INÍCIOfotos._alpha = 0;fotos._x = 690;	function callFotos(id){	fotos._x = 0;	a = 0;	onEnterFrame = function(){		if(a <= 100){			projetos._alpha -= 10;			fotos._alpha += 10;			if(a == 100){				projetos._x = 690;			}		}		a += 10;	}	//------------------------------------------------------	criaCampos();	btsFotos();	for(i=0; i<NoProjetos; i++){		Projeto = Projetos.childNodes[i];		NomeProjeto = Projeto.nodeName;		NoFotos = Projeto.childNodes.length;		if(id == NomeProjeto){			var nPro:String = Projeto.attributes.nome;			var lPro:String = Projeto.attributes.local;			var aPro:String = Projeto.attributes.ano;			var cPro:String = Projeto.attributes.comentario;			var video:String = Projeto.attributes.linkVideo;			_root.fotos.createEmptyMovieClip('vid', _root.fotos.getNextHighestDepth());			_root.fotos.vid.beginFill(0x000000, 0);			_root.fotos.vid.lineTo(0,0);			_root.fotos.vid.lineTo(0,59);			_root.fotos.vid.lineTo(70,59);			_root.fotos.vid.lineTo(70,0);			_root.fotos.vid.endFill();			_root.fotos.vid._x = 57;			_root.fotos.vid._y = 227;			if(video != undefined){				_root.fotos.vid.onRelease = function(){					getURL(video, "_blank");				}			}			callTexts(nPro,lPro,aPro,cPro);			for(n=0;n<NoFotos;n++){				callMinis();				maskMini();			}		}	}}function criaCampos(){	var anoPro:TextField = fotos.createTextField("ano_projeto", fotos.getNextHighestDepth()+100000, 53, 76, 65, 17);	anoPro.selectable = false;	anoPro.html = true;	anoPro.textColor = 0x666666;	anoPro.type = "static";	var nomPro:TextField = fotos.createTextField("nome_projeto", fotos.getNextHighestDepth()+100001, 6, 32, 210, 17);	nomPro.selectable = false;	nomPro.html = true;	nomPro.textColor = 0x666666;	nomPro.type = "static";	var locPro:TextField = fotos.createTextField("local_projeto", fotos.getNextHighestDepth()+100002, 59, 58, 157, 17);	locPro.selectable = false;	locPro.html = true;	locPro.textColor = 0x666666;	locPro.type = "static";	var comPro:TextField = fotos.createTextField("comentarios", fotos.getNextHighestDepth()+100003, 17, 94, 190, 68);	comPro.selectable = false;	comPro.html = true;	comPro.textColor = 0x666666;	comPro.type = "static";	comPro.wordWrap = true;}function callTexts(nome,local,ano,coment){	fotos.nome_projeto.htmlText = "<p align='center'><font face='Verdana' size='11'><b>"+nome.toUpperCase()+"</b></font></p>";	fotos.local_projeto.htmlText = "<font face='Verdana' size='11'>"+local+"</font>";	fotos.ano_projeto.htmlText = "<font face='Verdana' size='11'>"+ano+"</font>";	fotos.comentarios.htmlText = "<font face='Verdana' size='11'><b>Comentário:</b> "+coment+"</font>";}function callMinis(){	var miniaturas:MovieClip = fotos.createEmptyMovieClip("miniaturas", fotos.getNextHighestDepth());	miniaturas._x = 225;	miniaturas._y = 265;		var MCL:MovieClipLoader = new MovieClipLoader();	var listener:Object = new Object();	MCL.addListener(listener);	miniW = 0;	for (i=0; i<NoFotos; i++) {		miniFoto = Projeto.childNodes[i].attributes.mini;		miniWidth = Projeto.childNodes[i].attributes.miniW;		miniHeight = Projeto.childNodes[i].attributes.miniH;				var miniMc:MovieClip = miniaturas.createEmptyMovieClip(i, miniaturas.getNextHighestDepth());		var w:Number = parseInt(miniWidth)+8;		miniMc._x = miniW;		miniW += parseInt(miniWidth) +8;		miniMc.filters = glowArray;		MCL.loadClip(miniFoto,miniMc);				listener.onLoadComplete=function(miniMc:MovieClip){			miniMc.onRelease=function(){				callFullImage(miniMc._name);			}		}	}}function callFullImage(n) {	fotoFull = Projeto.childNodes[n].attributes.med;	fotoW = parseInt(Projeto.childNodes[n].attributes.medW);	fotoH = parseInt(Projeto.childNodes[n].attributes.medH);	fotoLeg = Projeto.childNodes[n].attributes.leg;	fotoOrg = Projeto.childNodes[n].attributes.org;	var fullImage_mc:MovieClip = fotos.createEmptyMovieClip("fullImage_mc",fotos.getNextHighestDepth());	fullImage_mc._x = 221;	fullImage_mc._y = 11;	fullImage_mc.filters = glowArray;	var mcLeg:MovieClip = fotos.createEmptyMovieClip('mcLeg', fotos.getNextHighestDepth());	var Leg:TextField = mcLeg.createTextField('legenda', fotos.getNextHighestDepth(), 0, 0, 200, 20);	Leg.autoSize = true;	Leg.backgroundColor = 0xCCCCCC;	Leg.textColor = 0x333333;	Leg.selectable = false;	Leg.html = true;	Leg.border = true;	Leg.borderColor = 0xCCCCCC;		var fullClipLoader:MovieClipLoader = new MovieClipLoader();	var fullListener:Object = new Object();	fullClipLoader.loadClip(fotoFull,fullImage_mc);	fullClipLoader.addListener(fullListener);	fullListener.onLoadComplete = function(fullImage_mc:MovieClip){		fullImage_mc.onRelease = function(){			Lightbox([fotoOrg],[fotoLeg]);		}		fullImage_mc.onRollOver = function(){			if(fotoLeg != undefined){				onEnterFrame = function(){					mcLeg._x = _root._xmouse+15;					mcLeg._y = _root._ymouse+20;				}				Leg.htmlText = "<font face='Tahoma' size='9'><b>"+fotoLeg+"</b></font>";				Leg.background = true;			}		}		fullImage_mc.onRollOut = function(){			onEnterFrame = function(){				Leg.background = false;				Leg.border = false;				Leg.htmlText = "";			}		}	}	fullListener.onLoadInit = function(fullImage_mc:MovieClip){				fullImage_mc._x = (420 - fotoW)/2+221;			fullImage_mc._y = (235 - fotoH)/2+11;	}}function maskMini(){	var miniMASK:MovieClip = _root.fotos.createEmptyMovieClip("miniMASK", miniaturas.getDepth()+100000)	miniMASK.beginFill(0x666666, 100);	miniMASK.lineTo(0,0);	miniMASK.lineTo(0,54);	miniMASK.lineTo(415,54);	miniMASK.lineTo(415,0);	miniMASK.endFill();	miniMASK._x = 222;	miniMASK._y = 263;	_root.fotos.miniaturas.setMask(miniMASK);}function btsFotos(){	bt_esquerda.onRollOver = function(){		tamFOTOS = _root.fotos.miniaturas._width;		if(tamFOTOS > 415){			sobra = tamFOTOS - 415;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_x =_root.fotos. miniaturas._x;					if(pos_x != 225 or pos_x < 225){						_root.fotos.miniaturas._x += 5;					}				}				l += 5;			}		}	}	bt_direita.onRollOver = function(){		tamFOTOS = _root.fotos.miniaturas._width;		if(tamFOTOS > 415){			sobra = tamFOTOS - 415;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_x = _root.fotos.miniaturas._x;					if(pos_x >= (sobra-222)*-1){						_root.fotos.miniaturas._x -= 5;					}				}				l += 5;			}		}	}	bt_esquerda.onRollOut = function(){		onEnterFrame = function(){			stop();		}	}	bt_direita.onRollOut = function(){		onEnterFrame = function(){			stop();		}	}	bt_voltar.onRelease = function(){		projetos._x = 0;		i = 0;		onEnterFrame = function(){			if(i <= 100){				projetos._alpha += 10;				fotos._alpha -= 10;				if(i == 100){					fotos._x = 690;					_root.fotos.fullImage_mc.unloadMovie();					_root.fotos.miniaturas.removeMovieClip();					_root.fotos.miniMASK.removeMovieClip();					_root.fotos.mcLeg.removeMovieClip();				}			}			i += 10;		}	}}function Lightbox(src, title){    function addSlashes(str)    {        return ("\'" + escape(str) + "\'");    } // End of the function    if (typeof(src) == "string")    {        src = [src];    } // end if    if (typeof(title) == "string")    {        title = [title];    } // end if    if (typeof(title) == "undefined")    {        title = [];    } // end if    if (flash.external.ExternalInterface && flash.external.ExternalInterface.available)    {        flash.external.ExternalInterface.call("Lightbox.start", src, title);    }    else    {        for (var _loc1 = 0; _loc1 < src.length; ++_loc1)        {            src[_loc1] = addSlashes(src[_loc1]);        } // end of for        for (var _loc1 = 0; _loc1 < title.length; ++_loc1)        {            title[_loc1] = addSlashes(title[_loc1]);        } // end of for        getURL("java script:Lightbox.start([" + src.join(",") + "],[" + title.join(",") + "]);void(0);", "");    } // end else if} // End of the function

Exemplo de um dos XMLs:
<comercial>	<i0 nome="Loja de motos" local="Camboriu - SC" ano="2009" linkVideo="" comentario="">		<foto0 org='./imagens/projetos/474cbd73ceff2c42bd682a6e6701bdf8.jpg' mini='./imagens/projetos/mini/474cbd73ceff2c42bd682a6e6701bdf8.jpg' med='./imagens/projetos/med/474cbd73ceff2c42bd682a6e6701bdf8.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto0>		<foto1 org='./imagens/projetos/2b957273d9b0272ca5cc96c953984326.jpg' mini='./imagens/projetos/mini/2b957273d9b0272ca5cc96c953984326.jpg' med='./imagens/projetos/med/2b957273d9b0272ca5cc96c953984326.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto1>		<foto2 org='./imagens/projetos/f49804f58d59e5983cf730fdb15f094f.jpg' mini='./imagens/projetos/mini/f49804f58d59e5983cf730fdb15f094f.jpg' med='./imagens/projetos/med/f49804f58d59e5983cf730fdb15f094f.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto2>		<foto3 org='./imagens/projetos/8cc620a820acc2455d3475fbd98b9d71.jpg' mini='./imagens/projetos/mini/8cc620a820acc2455d3475fbd98b9d71.jpg' med='./imagens/projetos/med/8cc620a820acc2455d3475fbd98b9d71.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto3>	</i0>	<i1 nome="Loja de lingerie" local="Tijucas - SC" ano="2009" linkVideo="" comentario="">		<foto0 org='./imagens/projetos/55c47d4e567ad39b68a37fb8755d1418.jpg' mini='./imagens/projetos/mini/55c47d4e567ad39b68a37fb8755d1418.jpg' med='./imagens/projetos/med/55c47d4e567ad39b68a37fb8755d1418.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto0>		<foto1 org='./imagens/projetos/9945e0f8d11415384f9341ac88ed8129.jpg' mini='./imagens/projetos/mini/9945e0f8d11415384f9341ac88ed8129.jpg' med='./imagens/projetos/med/9945e0f8d11415384f9341ac88ed8129.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto1>	</i1>	<i2 nome="Imobiliaria" local="Picarras - SC" ano="2009" linkVideo="" comentario="">		<foto0 org='./imagens/projetos/9b4a7f80f75fca12a8b00305011e30cb.jpg' mini='./imagens/projetos/mini/9b4a7f80f75fca12a8b00305011e30cb.jpg' med='./imagens/projetos/med/9b4a7f80f75fca12a8b00305011e30cb.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto0>		<foto1 org='./imagens/projetos/0ee41fa870ad45efdaf6c0cb0991c177.jpg' mini='./imagens/projetos/mini/0ee41fa870ad45efdaf6c0cb0991c177.jpg' med='./imagens/projetos/med/0ee41fa870ad45efdaf6c0cb0991c177.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto1>		<foto2 org='./imagens/projetos/f9b36e1d7480fe8f30a8f179f2730cb3.jpg' mini='./imagens/projetos/mini/f9b36e1d7480fe8f30a8f179f2730cb3.jpg' med='./imagens/projetos/med/f9b36e1d7480fe8f30a8f179f2730cb3.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto2>	</i2>	<i3 nome="Izas coiffeurs" local="Balneario Camboriu - SC" ano="2009" linkVideo="" comentario="">		<foto0 org='./imagens/projetos/e189a690ca773c9fc9f13cd2d4f3a54d.jpg' mini='./imagens/projetos/mini/e189a690ca773c9fc9f13cd2d4f3a54d.jpg' med='./imagens/projetos/med/e189a690ca773c9fc9f13cd2d4f3a54d.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto0>		<foto1 org='./imagens/projetos/9a5018da6302d14944234fab99370f44.jpg' mini='./imagens/projetos/mini/9a5018da6302d14944234fab99370f44.jpg' med='./imagens/projetos/med/9a5018da6302d14944234fab99370f44.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto1>		<foto2 org='./imagens/projetos/d23b0ff02a9df953dd95a9cedcfeb3bb.jpg' mini='./imagens/projetos/mini/d23b0ff02a9df953dd95a9cedcfeb3bb.jpg' med='./imagens/projetos/med/d23b0ff02a9df953dd95a9cedcfeb3bb.jpg' miniW='75' miniH='39' medW='420' medH='221' leg=""></foto2>		<foto3 org='./imagens/projetos/0d58f93bca4a3bd243c1d5dec56d52a2.jpg' mini='./imagens/projetos/mini/0d58f93bca4a3bd243c1d5dec56d52a2.jpg' med='./imagens/projetos/med/0d58f93bca4a3bd243c1d5dec56d52a2.jpg' miniW='71' miniH='48' medW='346' medH='235' leg=""></foto3>	</i3>	<i4 nome="acsc" local="iohoih" ano="123" linkVideo="" comentario="">	</i4>	<i5 nome="hfyjgukhuk" local="guhkhi" ano="6765" linkVideo="" comentario="">	</i5></interiores>

desde já, agradeço!

Onrelease Não Funciona

05/10/2009, 20:17

Bom galera, estou tendo problemas com o onRelease, o estranho é que algumas linhas acima ele funciona normalmente.
segue a linha que está dando problemas é a 185.
Dêem uma olhada por favor. Obrigado!

stop();import flash.filters.GlowFilter;this._lockroot = true;System.useCodepage = false;var GaleriaXML:XML = new XML();GaleriaXML.load("tabela.xml");GaleriaXML.ignoreWhite = true;lista._alpha = 100;projeto._alpha = 0;projeto._x = 690;aP = _root.projeto.createTextField("ano_projeto", _root.projeto.getNextHighestDepth(), 53, 76, 65, 17);aP.selectable = false;aP.html = true;aP.textColor = 0x666666;aP.type = "static";nP = _root.projeto.createTextField("nome_projeto", _root.projeto.getNextHighestDepth(), 6, 32, 210, 17);nP.selectable = false;nP.html = true;nP.textColor = 0x666666;nP.type = "static";lP = _root.projeto.createTextField("local_projeto", _root.projeto.getNextHighestDepth(), 59, 58, 157, 17);lP.selectable = false;lP.html = true;lP.textColor = 0x666666;lP.type = "static";var projeto:MovieClip;GaleriaXML.onLoad = function(){	Projetos = GaleriaXML.firstChild;	NoProjetos = GaleriaXML.firstChild.childNodes.length;	txtPosX = 20;	txtPosY = 40;	txtMC = _root.lista.createEmptyMovieClip("vLista", _root.lista.getNextHighestDepth());	for(i=0; i<NoProjetos; i++){		Projeto = Projetos.childNodes[i];		IDProjeto = Projeto.nodeName;		NoFotos = Projeto.childNodes.length;		NomeProjeto = Projeto.attributes.nome;		LocalProjeto = Projeto.attributes.local;		AnoProjeto = Projeto.attributes.ano;		txtPosY += 20;		hDepth = _root.lista.vLista.getNextHighestDepth()+1;		myTF = _root.lista.vLista.createTextField("nome["+i+"]", hDepth, txtPosX, txtPosY, 600, 20);		myTF.selectable = false;		myTF.html = true;		myTF.textColor = 0x666666;		myTF.type = "static";		myTF.htmlText = "<font face=\"Verdana\" size=\"11px\"><b>Projeto:</b> "+NomeProjeto+" / <b>Local:</b> "+LocalProjeto+" / <b>Ano:</b> "+AnoProjeto+"</font>";		butMC("bt"+i,txtPosX,txtPosY,IDProjeto);	}	backMC();	maskLISTA();	botoes();}function butMC(nomeBT,posx,posy,id){	nomeBT = _root.lista.vLista.createEmptyMovieClip(nomeBT, _root.lista.vLista.getNextHighestDepth());	nomeBT.beginFill(0xFFFE65, 0);	nomeBT.lineStyle(1, 0x000000, 0);	nomeBT.moveTo(posx, posy);	nomeBT.lineTo(posx, posy);	nomeBT.lineTo(posx, posy+20);	nomeBT.lineTo(posx+600, posy+20);	nomeBT.lineTo(posx+600, posy);	nomeBT.endFill();		nomeBT.onRelease = function(){		idP = id;		a = 0;		onEnterFrame = function(){			_root.projeto._x = 0;			if(a <= 100){				_root.lista._alpha -= 10;				_root.projeto._alpha += 10;				if(a == 100){					_root.lista._x = -690;				}			}			a += 10;		}		Projetos = GaleriaXML.firstChild;		NoProjetos = GaleriaXML.firstChild.childNodes.length;		for(i=0; i<NoProjetos; i++){			Projeto = Projetos.childNodes[i];			NomeProjeto = Projeto.nodeName;			if(NomeProjeto == idP){				_root.projeto.ano_projeto.htmlText = "<font face='Verdana' size='11'>"+Projeto.attributes.ano+"</font>";				_root.projeto.nome_projeto.htmlText = "<p align='center'><font face='Verdana' size='11'><b>"+Projeto.attributes.nome.toUpperCase()+"</b></font></p>";				_root.projeto.local_projeto.htmlText = "<font face='Verdana' size='11'>"+Projeto.attributes.local+"</font>";				var nFotos:Number = Projeto.childNodes.length;				var mini:Array = new Array();				var miniA:Array = new Array();				var miniL:Array = new Array();				var med:Array = new Array();				var medA:Array = new Array();				var medL:Array = new Array();								for(n=0; n<nFotos;n++){					mini[n] = Projeto.childNodes[n].attributes.mini;					med[n] = Projeto.childNodes[n].attributes.med;					medA[n] = Projeto.childNodes[n].attributes.medA;					medL[n] = Projeto.childNodes[n].attributes.medL;					miniA[n] = Projeto.childNodes[n].attributes.miniA;					miniL[n] = Projeto.childNodes[n].attributes.miniL;				}				var listener:Object = new Object();				var mcl:MovieClipLoader = new MovieClipLoader();				var priFoto:MovieClip = _root.projeto.createEmptyMovieClip("prifoto", _root.projeto.getNextHighestDepth());				var glow:GlowFilter = new GlowFilter(0x666666, 300, 2.5, 2.5, 1, 3, false, false);				var glowArray:Array = new Array();				glowArray.push(glow);				priFoto.filters = glowArray;				priFoto.beginFill(0x000000, 100);				priFoto.lineTo(0, 0);				priFoto.lineTo(0, 215);				priFoto.lineTo(400, 215);				priFoto.lineTo(400, 0);				priFoto.endFill();				mcl.loadClip(med[0],priFoto);				listener.onLoadInit = function(){					tamWorg = priFoto._width;					tamHorg = priFoto._height;					if(tamWorg >= 400 or tamHorg >= 215){						if(tamWorg == tamHorg){							novoW = 215;							novoH = 215;						}else if(tamWorg > 400){							novoW = 400;							novoH = Math.round((tamHorg * novoW) / tamWorg);							if(novoH >= 215){								novoW = Math.round((400 * 215) / novoH);								novoH = 215;							}						}else if(tamHorg > 215){							novoH = 215;							novoW = Math.round((tamWorg * novoH) / tamHorg);						}					}else{						novoW = tamWorg;						novoH = tamHorg;					}					priFposx = priFoto._x = (((novoW - 400)/2)*-1)+221;					priFposy = priFoto._y = (((novoH - 215)/2)*-1)+11;					priFoto._width = novoW;					priFoto._height = novoH;					if(tamWorg > 400 or tamHorg > 215){						priFoto.onRelease = function(){													}					}					var listener2:Object = new Object();					var mcl2:MovieClipLoader = new MovieClipLoader();					var minis:MovieClip = _root.projeto.createEmptyMovieClip("minis", _root.projeto.getNextHighestDepth())					minis.beginFill(0x666666, 0);					minis.lineTo(0,0);					minis.lineTo(0,50);					minis.lineTo(425,50);					minis.lineTo(425,0);					minis.endFill();					minis._x = 208;					minis._y = 248;					var miniMASK:MovieClip = _root.projeto.createEmptyMovieClip("miniMASK", _root.projeto.getNextHighestDepth())					miniMASK.beginFill(0x666666, 0);					miniMASK.lineTo(0,0);					miniMASK.lineTo(0,50);					miniMASK.lineTo(425,50);					miniMASK.lineTo(425,0);					miniMASK.endFill();					miniMASK._x = 208;					miniMASK._y = 248;					minis.setMask(miniMASK);					for(m = 0;m < nFotos; m++){						var miniF:MovieClip = minis.createEmptyMovieClip("miniF"+m, minis.getNextHighestDepth());						miniF.beginFill(0x666666, 0);						miniF.lineTo(0,0);						miniF.lineTo(0,1);						miniF.lineTo(1,1);						miniF.lineTo(1,0);						miniF.endFill();						miniF.filters = glowArray;						mcl2.loadClip(mini[m],miniF);						miniF._x = (85 * m) + 5;						miniF._y = 1;						miniF.onRelease = function(){													}						listener.onLoadInit;					}				}				mcl.addListener(listener);				mcl2.addListener(listener);			}		}	}		nomeBT.onRollOver = function(){		back._alpha = 100;		back._x = posx;		back._y = posy;	}		nomeBT.onRollOut = function(){		back._alph = 0;	}}function backMC(){	back = _root.lista.vLista.createEmptyMovieClip("back", -99999);	back.beginFill(0xFFFE65, 100);	back.lineStyle(1, 0x000000, 0);	back.moveTo(0, 0);	back.lineTo(0, 0);	back.lineTo(0, 20);	back.lineTo(600, 20);	back.lineTo(600, 0);	back.endFill();	back._alpha = 0;}function maskLISTA(){	maskMC = _root.lista.createEmptyMovieClip("mask", _root.lista.getNextHighestDepth());	maskMC.beginFill(0x000000, 100);	maskMC.lineTo(0,0);	maskMC.lineTo(0,260);	maskMC.lineTo(605,260);	maskMC.lineTo(605,0);	maskMC._x = 17;	maskMC._y = 55;	maskMC.endFill();	_root.lista.vLista.setMask(maskMC);}function botoes(){	_root.lista.bt_up.onRollOver = function(){		tamLISTA = _root.lista.vLista._height;		if(tamLISTA > 260){			sobra = tamLISTA - 260;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_y = _root.lista.vLista._y;					if(pos_y != 0){						_root.lista.vLista._y += 5;					}				}				l += 5;			}		}	}	_root.lista.bt_down.onRollOver = function(){		tamLISTA = _root.lista.vLista._height;		if(tamLISTA > 260){			sobra = tamLISTA - 260;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_y = _root.lista.vLista._y;					if(pos_y >= -sobra){						_root.lista.vLista._y -= 5;					}				}				l += 5;			}		}	}	_root.lista.bt_up.onRollOut = function(){		onEnterFrame = function(){			_root.lista.vLista._y;		}	}	_root.lista.bt_down.onRollOut = function(){		onEnterFrame = function(){			_root.lista.vLista._y;		}	}	_root.projeto.bt_back.onRollOver = function(){		tamMINIS = _root.projeto.minis._width;		if(tamMINIS > 425){			sobra = tamMINIS - 425;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_x = _root.projeto.minis._x;					if(pos_x != 208 or pos_x < 208){						_root.projeto.minis._x += 5;					}				}				l += 5;			}		}	}	_root.projeto.bt_go.onRollOver = function(){		tamMINIS = _root.projeto.minis._width;		if(tamMINIS > 425){			sobra = tamMINIS - 425;			l = 0;			onEnterFrame = function(){				if(sobra >= l){					pos_x = _root.projeto.minis._x;					if(pos_x >= (sobra-208)*-1){						_root.projeto.minis._x -= 5;					}				}				l += 5;			}		}	}	_root.projeto.bt_back.onRollOut = function(){		onEnterFrame = function(){		_root.projeto.minis._x;		}	}	_root.projeto.bt_go.onRollOut = function(){		onEnterFrame = function(){			_root.projeto.minis._x;		}	}	_root.projeto.bt_voltar.onRelease = function(){		_root.lista._x = 0;		i = 0;		onEnterFrame = function(){			if(i <= 100){				_root.lista._alpha += 10;				_root.projeto._alpha -= 10;				if(i == 100){					_root.projeto._x = 690;					_root.projeto.prifoto.removeMovieClip();					_root.projeto.prifoto.unloadMovie();					_root.projeto.minis.removeMovieClip();					_root.projeto.minis.unloadMovie();					_root.projeto.miniMASK.removeMovieClip();					_root.projeto.miniMASK.unloadMovie();				}			}			i += 10;		}	}}//--------------------------FIM "ACTION FRAME" 1---------------------------

consegui arrumar TKS! pode dar Close aki!

segue a resolução da linha:


listener.onLoadInit = function(miniF:MovieClip){
miniF.onRelease = function(){

}
}

Problemas Com Apache 2.2(x64) [resolvido]

18/08/2009, 04:12

galera seguinte, eu configuro aqui o server x86 talz, tudo certinho, aqueles pacote que ja instala tudo sozinho talz...
dai to tentando usar um server x64 e o apache ta reiniciando quando eu tento entrar em algum arquivo .php
não testei todos é óbvio, mas pra ter uma idéia, um arquivo só com o phpinfo(); funciona, agora um site que eu fiz aqui ja não entra
dai ele reinicia o server e da o seguinte erro no log

[Tue Aug 18 04:18:57 2009] [notice] Parent: child process exited with status 255 -- Restarting.
[Tue Aug 18 04:18:57 2009] [notice] Apache/2.2.13 (Win64) PHP/5.2.5 (x64) configured -- resuming normal operations
[Tue Aug 18 04:18:57 2009] [notice] Server built: Aug 12 2009 19:58:08
[Tue Aug 18 04:18:57 2009] [notice] Parent: Created child process 2400
[Tue Aug 18 04:18:57 2009] [notice] Child 2400: Child process is running
[Tue Aug 18 04:18:57 2009] [notice] Child 2400: Acquired the start mutex.
[Tue Aug 18 04:18:57 2009] [notice] Child 2400: Starting 64 worker threads.
[Tue Aug 18 04:18:57 2009] [notice] Child 2400: Starting thread to listen on port 80.


alguem entende alguam coisa ai???
detalhe: estou usando Windows 7 64-bits

VLW!!

EDIT: RESOLVIDO.
O problema estava com o arquivo "libmysql.dll" que eu havia substituido o que veio com o php pelo que veio no MySQL, apenas restaurei o libmysql.dll original que vem junto com o php e tudo funcionou corretamente.

IPB Skin By Virteq