Weverton N 0 Denunciar post Postado Março 21, 2008 Galera.. to em duvida num lance em AS 3 aqui. O seguinte código´: import flash.geom.ColorTransform; var cor:String=this.root.loaderInfo.parameters.cor_fundo; cor=cor.slice(1,7); cor="0x"+cor; // Get access to the ColorTransform instance associated with square. //var colorInfo:ColorTransform = square.transform.colorTransform; var colorInfo:ColorTransform = barra_principal.fundoBarra.fundo.transform.colorTransform; var colorInfo2:ColorTransform = mc_bt_playzao.fundo.fundo.transform.colorTransform; var colorInfo3:ColorTransform = mc_embbed.fundoEmbed.fundo.transform.colorTransform; mc_embbed // Set the color of the ColorTransform object. colorInfo.color = cor; colorInfo2.color = cor; colorInfo3.color = cor; // apply the change to the display object barra_principal.fundoBarra.fundo.transform.colorTransform = colorInfo; mc_bt_playzao.fundo.fundo.transform.colorTransform = colorInfo2; mc_embbed.fundoEmbed.fundo.transform.colorTransform = colorInfo3; Ta dando o seguinte erro: TypeError: Error #1010: A term is undefined and has no properties. at player_externo_novo_fla::MainTimeline/player_externo_novo_fla::frame1() Alguém sabe o que tá rolando? Compartilhar este post Link para o post Compartilhar em outros sites
Eder Fortunato 15 Denunciar post Postado Março 22, 2008 esse é um erro maltido do AS3!!, ele acontece quando você faz referencia a um movieClip que não existe, o problema é que ele não fala o nome desse movieClip! então ou o nome do seu movieClip esta errado, ou você tem que fazer referencia a ele assim: mc_bt_playzao.getChildByName("fundo").getChildByName("fundo").transform.colorTransform = colorInfo2; []´s Compartilhar este post Link para o post Compartilhar em outros sites
Weverton N 0 Denunciar post Postado Março 22, 2008 Achei qual era o movieclip. Vlw Eder! Compartilhar este post Link para o post Compartilhar em outros sites