Jump to content
Fórum Script Brasil
  • 0

Localconnection.allowdomain


babaloricha
 Share

Question

e ai galera beleza?

então meu problema e o seguinte , preciso que um botao.swf ao ser ativado execute uma acao no no cabecario.swf, mas anbos estao em frames diferentes. no meu pc funciona assim o:

codigo do cabecario

count=1;
var recebe_lc:LocalConnection = new LocalConnection();
recebe_lc.methodToExecute = function(){
    stopAllSounds();
    _root.figsom.gotoAndPlay(2);
};
recebe_lc.connect("lc");
var my_sound:Sound = new Sound();
my_sound.attachSound("F1");
my_sound.start();
figsom.onRelease = function(){
    if(count==1){
        trace("sound stopped");
         stopAllSounds();
         count--;
         _root.figsom.gotoAndStop(2);
    }
    else{
        trace("sound started");
        my_sound.start();
        count++;
         _root.figsom.gotoAndStop(1);
    }
}
codigo do botao:
on(release){
    var envia_lc:LocalConnection = new LocalConnection();
    envia_lc.send("lc","methodToExecute");
    getURL("http://www.truffiblindados.com.br/aniblindagem.html");
}

mas no site não funciona creio que o uso do allowDomain e a solucao pro meu problema mas não cosigo nem "compilar"

alguém me da um help aee

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.9k
    • Total Posts
      648.8k
×
×
  • Create New...