3 Replies Latest reply on Mar 26, 2008 10:11 PM by Newsgroup_User

    localconnection and allowdomain - always returning true

    dsdsdsdsd Level 1
      hello;

      I have successful communication between a .dcr and a .swf using localconnection:
      quote:


      < html >
      < object >< embed .... A.dcr />/>
      < object >< embed .... B.swf />/>
      </>





      lingo, a parent script:
      quote:


      on new me
      setCallback( pvo_lc , "allowDomain" , #psm_allow_domain , me )
      setCallback( pvo_lc , "psm_receiver" , #psm_receiver , me )
      end

      --------------------------------------
      on psm_allow_domain (me, argo_local_connection , args_sending_domain )
      my_put("allow_domain")
      return false
      end psm_allow_domain

      ---------------------------------------
      psm_receiver (me, argo_local_connection , args_message )
      my_put("receiver : " & args_message )
      end psm_receiver





      when B.swf sends a message to director,
      psm_receiver should never get called,
      because the allowdomain returns false;
      however my output is:
      quote:


      allow_domain
      receiver : blah-blah-blah


      which indicates that the 'return false' statement is getting called, but not doing any thing;


      any thoughts?

      thanks
      dsdsdsdsd


      btw, the B.swf version of 'allowDomain' is functioning appropriately when A.dcr sends to B.swf;