F-gos 0 Denunciar post Postado Setembro 4, 2009 Pessoal estou criano u aplicação com flash - php e xml e esta com uma pane na acentuação dos textos. o xml esta dessa forma: <?xml version="1.0" encoding="ISO-8859-1" ?> - <Gallery>- <Foto> <photo urlimage="http://www.destramotores.com.br/administrativo/wrappers/6_promocao.jpg" urlimagegrande="http://www.destramotores.com.br/administrativo/wrappers/6_promocao.jpg" desc="Manutenção de servomotores AC (corrente alternada): -Revisão (manutenção completa) -Rebobinamento -Magnetização -Ajustes de resolver / encoder -Assistência técnica no cliente" titulo="Servomotor" /> <photo urlimage="http://www.destramotores.com.br/administrativo/wrappers/7_promocao.jpg" urlimagegrande="http://www.destramotores.com.br/administrativo/wrappers/7_promocao.jpg" desc="Confira nossa linha de Servomotores. Em breve estaremos atualizando mais detalhes sobre nossos Produtos!" titulo="Servomotor" /> <photo urlimage="http://www.destramotores.com.br/administrativo/wrappers/8_promocao.jpg" urlimagegrande="http://www.destramotores.com.br/administrativo/wrappers/8_promocao.jpg" desc="Confira nossa linha de Servomotores. Em breve estaremos atualizando mais detalhes sobre nossos Produtos!" titulo="Servomotor" /> </Foto> </Gallery> mas quado chamo no flash para exibir as informações, não aparece os acentos. Quando uso a função system.usecodepage = true; aparece apenas o acento" á ". Não aparece os Ç^~. alguem sabe como resolver?? segue action: /** Classe XML per bottegartemetalli.com Versione 0.1 16/10/2006 Copyright [url="http://tarodesign.t35.com/"]http://tarodesign.t35.com/[/url] */ System.useCodepage = true; focuspro._visible = false; colonne = 4; dati = new Array(); filexml = new XML(); filexml.ignoreWhite = true; //filexml.useCodepage = true; filexml.onLoad = function(loaded) { if (success) { trace("Error loading XML."); } else { trace("xml carregado com sucesso..."); } // end else if my_mc.cat._visible = 0; dati = filexml.firstChild.childNodes[categoriasito].childNodes; for (i=0; i<dati.length; i++) { my_mc.cat.duplicateMovieClip("cat"+i, i*1+5000); my_mc["cat"+i].loader.loadMovie(dati[i].attributes.urlimage); my_mc["cat"+i].input_txt.text = dati[i].attributes.desc; my_mc["cat"+i].input_txt.text = dati[i].attributes.titulo; if (i<colonne) { my_mc["cat"+i]._y = 0; my_mc["cat"+i]._x = 175*i+20; } else { my_mc["cat"+i]._y = Number(my_mc["cat"+(i-colonne)]._y)+160; my_mc["cat"+i]._x = my_mc["cat"+(i-colonne)]._x; } // end else if my_mc["cat"+i].ttip = dati[i].attributes.desc; my_mc["cat"+i].fade._alpha = 100; my_mc["cat"+i].onRollOver = function() { this.fade.alphaTo(0, 1); this.mover.ySlideTo(19, 5.000000E-001); this.input_txt.colorTo("#333333", 1); trace("Sei sopra "+this._name); }; my_mc["cat"+i].onRollOut = function() { this.fade.alphaTo(100, 2); this.mover.ySlideTo(0, 5.000000E-001); this.input_txt.colorTo("#333333", 2); trace("Hai abborrato "+this._name); }; my_mc["cat"+i].link = dati[i].attributes.url; my_mc["cat"+i].pdf = dati[i].attributes.pdf; my_mc["cat"+i].urlimagegrande = dati[i].attributes.urlimagegrande; my_mc["cat"+i].testo = dati[i].attributes.testo; my_mc["cat"+i].ttitlod = dati[i].attributes.desc; my_mc["cat"+i].ttitlof = dati[i].attributes.titulo; my_mc["cat"+i].onRelease = function() { _global.linkPdf=this.pdf; _global.linkPagina=this.link; focuspro._visible = true; focuspro.alphaTo(100, 1, "linear"); focuspro.tween("_x", 0, 1.5); my_mc.alphaTo(0, 1, "linear", 0, function () { this._visible = false; }); meuScroll.alphaTo(0, 1, "linear", 0, function () { this._visible = false; }); focuspro.descri.text = this.testo; focuspro.titoloe.text = this.ttitlod; focuspro.titoloa.text = this.ttitlof; focuspro.fotogrande.loadMovie(this.urlimagegrande); }; focuspro.onRelease = function() { my_mc._visible = true; my_mc.alphaTo(100, 1, "linear"); meuScroll._visible = true; meuScroll.alphaTo(100, 2, "linear"); focuspro.tween("_x", 822, 1.5); focuspro.alphaTo(0, 1, "linear", 0, function () { this._visible = false; }); trace("Hai cliccato: "+this._name); }; focuspro.link_1.onRelease = function() { //suonoclick.start(); getURL(_global.link1, "_blank"); trace("Hai cliccato: "+this._name); }; focuspro.link_2.onRelease = function() { suonoclick.start(); getURL(_global.link2, "_blank"); trace("Hai cliccato: "+this._name); }; } }; filexml.load("[url="http://www.destramotores.com.br/administrativo/xml/foto.xml.php"]http://www.destramotores.com.br/administrativo/xml/foto.xml.php[/url]"); Compartilhar este post Link para o post Compartilhar em outros sites
saulus 0 Denunciar post Postado Setembro 5, 2009 Eu tive esse mesmo problema, e para consegui resolver eu fiz o seguinte: Abra o arquivo .flash Clique no Dynamic Text (Onde o texto exibido) Em propriedades clique em "Embed" Na janela que se abre procure a opção "Latin I", clique nela e clique em Ok" Pronto Faça agora um teste e veja se resolve. Obs.: Isso faz com que seu arquivo swf aumente um pouco de tamanho, más não é significativo. Obs2.: não retire System.useCodepage = true; Abraço Compartilhar este post Link para o post Compartilhar em outros sites
F-gos 0 Denunciar post Postado Setembro 8, 2009 Saulus... boa tarde amigo! Realmente... entrei na Embed do dynamic text e resolvei.... obrigado pela dica... foi muito util. obrigado. T+ Compartilhar este post Link para o post Compartilhar em outros sites