Higor M 0 Denunciar post Postado Junho 2, 2010 Ae galera, preciso fazer um sistema de noticia (AS + PHP) que o cliente possa atualizar, sem ter que editar o arquivo .fla . Tipo um formulário, em que ele iria digitar o titulo e a noticia, e que no swf já atualiza-se. Alguém manja? Abraços Compartilhar este post Link para o post Compartilhar em outros sites
RenanMonteiro 0 Denunciar post Postado Junho 2, 2010 hm, também to atras de um sistema desses ): Compartilhar este post Link para o post Compartilhar em outros sites
Matheus Brito 12 Denunciar post Postado Junho 2, 2010 Devo mover pra área correta, que eh de ofertas para freelancer? Se vocês querem alguma coisa pronto irei mover, senão mostrem o que já tentaram e dividam as dúvidas em partes ate solucionarem como um todo. Abs Compartilhar este post Link para o post Compartilhar em outros sites
Higor M 0 Denunciar post Postado Junho 2, 2010 Ok. No tuto que achei tinha o arquivo grava.php e o exclui.php; GRAVA.PHP <style type="text/css"> <!-- body { background-color: #6699FF; } .style1 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; } #Layer1 { position:absolute; left:400px; top:40px; width:258px; height:125px; z-index:1; } #Layer2 { position:absolute; left:458px; top:223px; width:105px; height:34px; z-index:2; } --> </style> <div id="Layer1"> <form id="msg" name="msg" method="post" action=""> <label></label> <label></label> <label></label> <table width="245" border="0"> <tr> <td colspan="2" nowrap="nowrap"><div align="center" class="style1">Gerenciador de Noticias </div></td> </tr> <tr> <td colspan="2"><textarea name="msg" cols="40" rows="6" id="msg"></textarea></td> </tr> <tr> <td width="64"> </td> <td width="186"><label> <input type="submit" name="Submit" value="Cadastrar Notícia" /> </label></td> </tr> </table> </form> </div> <?php $msg =@$_POST["msg"];//Mensagem Postada pela caixa de texto $msg .=file_get_contents("noticias.txt");//Variavel msg pea o conteudo do noticias.txt $abrir_arquivo=fopen("noticias.txt","w");//Abre para gravar o conteudo dentro do noticias.txt $escreve4=fwrite($abrir_arquivo,"\n");//Insere quebra de linha $escreve3=fwrite($abrir_arquivo," - - - - ");//Insere espaçamento entre notícias. $escreve2=fwrite($abrir_arquivo,"\n");//Insere quebra de linha $escreve1=fwrite($abrir_arquivo,$msg);//Grava a conteudo. fclose($abrir_arquivo);//Fecha a varivel ?> EXCLUI.PHP <style type="text/css"> <!-- body { background-color: #6699FF; } .style1 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: #2F2F00; } --> </style> <form id="msg" name="msg" method="post" action=""> <label></label> <label></label> <label></label> <?php $abrir_arquivo=fopen("noticias.txt","w");//Abre o arquivo noticias.txt $excluir=fwrite($abrir_arquivo," ");//Limpa o arquivo, "Uma gambiarra" fclose($abrir_arquivo);//Fecha o noticias.txt ?> <label></label> <label></label> <input type="submit" name="Submit" value="Excluir todas as Notícias" /> </form> No Flash, a AS ta lendo o arquivo noticias.txt, mas ao invés de ler esse arquivo, quero que o cliente preencha um formulário (pode ser numa pagina HTML mesmo) e ao enviar ja atualize no flash. AS No botão INCLUIR on(release){ getURL("grava.php","_blank");//Ira chamar a pagina de cadastramento de notícias. } No botão EXCLUIR on(release){ getURL("exclui.php","_blank");//Ira chamar a pagina de exclusão das notícias. } E no dynamic text onde as notícias vão aparecer.. System.useCodepage= true;//Para habilitar o uso de outros caracteres. var leitor = new LoadVars();//Criando a variável leitor leitor.onData = function(txt){// Abrindo função com o leitor usando a função criada txt noticias_txt.text = txt; } leitor.load("cadastro.html");//Carregando o .txt para dentro do dynamic text Compartilhar este post Link para o post Compartilhar em outros sites