formalivre 0 Denunciar post Postado Julho 30, 2007 tenho essa AC que está puxando um texto dinâmico para um swf chamado apresentacao.swf. //Declarando a variável var txtinfo //Buscando o texto contido no arquivo info.txt System.useCodepage = true; var texto:LoadVars = new LoadVars(); texto.load("apresentacao.txt"); texto.onLoad = function(){ txtinfo = _root.texto.txtinfo; } este swf esté sendo incluído em outro swf via loadMovie. quando visualizo o swf apresentacao o texto aparece normalmente. quando visualizo o swf que contém o swf apresentacao via loadMovie o texto não aparece. o alvo que puxa o swf apresentacao é "apresentacao" alguém pode me ajudar? Compartilhar este post Link para o post Compartilhar em outros sites
Eder Fortunato 15 Denunciar post Postado Julho 30, 2007 testa assim //Declarando a variávelvar txtinfothis.lockroot = true//Buscando o texto contido no arquivo info.txtSystem.useCodepage = true;var texto:LoadVars = new LoadVars();texto.load("apresentacao.txt");texto.onLoad = function(){ txtinfo = _root.texto.txtinfo;} Compartilhar este post Link para o post Compartilhar em outros sites
formalivre 0 Denunciar post Postado Julho 30, 2007 oi Eder. obrigado pela atenção. mas não funcionou também. //Declarando a variávelvar txtinfothis.lockroot = true//Buscando o texto contido no arquivo info.txtSystem.useCodepage = true;var texto:LoadVars = new LoadVars();texto.load("apresentacao.txt");texto.onLoad = function(){ txtinfo = texto.txtinfo;} Compartilhar este post Link para o post Compartilhar em outros sites
Eder Fortunato 15 Denunciar post Postado Julho 30, 2007 esse código esta na time-line principal? Compartilhar este post Link para o post Compartilhar em outros sites
formalivre 0 Denunciar post Postado Julho 30, 2007 na time-line principal do swf apresentacao onde carrego o TXT. Compartilhar este post Link para o post Compartilhar em outros sites
Eder Fortunato 15 Denunciar post Postado Julho 30, 2007 mais um teste var txtinfothis.lockroot = true//Buscando o texto contido no arquivo info.txtSystem.useCodepage = true;var path =thisvar texto:LoadVars = new LoadVars();texto.load("apresentacao.txt");texto.onLoad = function(){path.txtinfo = texto.txtinfo;} Compartilhar este post Link para o post Compartilhar em outros sites
formalivre 0 Denunciar post Postado Julho 30, 2007 oi Eder. coloquei assim: var txtinfothis.lockroot = true//Buscando o texto contido no arquivo info.txtSystem.useCodepage = true;var path =thisvar texto:LoadVars = new LoadVars();texto.load("info.txt");texto.onLoad = function(){path.txtinfo = texto.txtinfo;}também não funcionou. no swf apresentacao o texto aparece. no swf com LoadMovie não.no swf pai eu tenho isso:loadMovie("apresentacao.swf?"+getTimer(), "apresentacao"); Compartilhar este post Link para o post Compartilhar em outros sites
Eder Fortunato 15 Denunciar post Postado Julho 30, 2007 você tem certeza que ele esta carregando o apresentacao.swf??? Compartilhar este post Link para o post Compartilhar em outros sites