localConnection layers


I’m using localConnection and when I test my movie it works - I test the sending and receiving swf files in flash and they talk to each other fine.

I put the 2 movies into 2 different layers on a webpage and they dont communicate.

how can this be?