ToeJam 0 Denunciar post Postado Abril 13, 2003 Fiz que nem no edittorial do imasters e naun deu certo... this.meu_btn.onRelease=function(){endereco = "http://members.lycos.co.uk/orgiapontocom/index.htm";localAbre = "Domine";largura = 200;altura = 200;barra = 1;// o valor um significa verdadeiro e o valor 0 significa falsolocalizacao = 0;diretorio = 0;status = 0;menu = 0;rolagem =01;redimensao = 0;abreCentro(endereco, localAbre, largura, altura, barra, localizacao, diretorio, status, menu, rolagem, redimensao);}Movieclip.prototype.abreCentro = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL ("javascript:var minhaJanela; if(!minhaJanela || minhaJanela.closed){minhaJanela = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + 9",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{minhaJanela.focus();};void(0);");}Aparece o seguinte:Scene=Scene 1, Layer=Layer 3, Frame=191: Line 1: Statement must appear within onClipEvent handler this.meu_btn.onRelease=function(){Scene=Scene 1, Layer=Layer 3, Frame=191: Line 16: ')' or ',' expected getURL ("java script:var minhaJanela; if(!minhaJanela || minhaJanela.closed){minhaJanela = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + 9",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{minhaJanela.focus();};void(0);");Scene=Scene 1, Layer=Layer 3, Frame=191: Line 15: Statement must appear within onClipEvent handler Movieclip.prototype.abreCentro = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { Scene=Scene 1, Layer=Layer 3, Frame=191: Line 17: Unexpected '}' encountered }Preciso disto urgente Compartilhar este post Link para o post Compartilhar em outros sites
hinom 5 Denunciar post Postado Abril 14, 2003 a própria mensagem de erro já diz: "Statement must appear within onClipEvent handler" você deve usar isso num botão: on (release) { this.meu_btn.onRelease=function(){endereco = "http://members.lycos.co.uk/orgiapontocom/index.htm";localAbre = "Domine";largura = 200;altura = 200;barra = 1;// o valor um significa verdadeiro e o valor 0 significa falsolocalizacao = 0;diretorio = 0;status = 0;menu = 0;rolagem =01;redimensao = 0;abreCentro(endereco, localAbre, largura, altura, barra, localizacao, diretorio, status, menu, rolagem, redimensao);}Movieclip.prototype.abreCentro = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) { getURL ("javascript:var minhaJanela; if(!minhaJanela || minhaJanela.closed){minhaJanela = window.open('" + url + "','" + winName + "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + 9",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "')}else{minhaJanela.focus();};void(0);");}} Compartilhar este post Link para o post Compartilhar em outros sites