LocalConnection help


Hello hello,

Here’s what i’m doing and it doesn’t seem to work, can someone tell me why please?

1st movie, a button:
on (press) {
function () {myLocalConnection = new LocalConnection();
myLocalConnection.send(“Incoming”, “onRecieve”, MyID);

where MyID is some variable

2nd movie, 1st frame:

myLocalConnection = new LocalConnection();
myLocalConnection.onRecieve = function(theID){

now that doesn’t work so i’m wondering what is wrong…

Added some files, maybe someone can help ?:smiley:

ok it seems like it works with
this.Mybutton.onPress = function (){ but not with
on(press) = function(){

i’d love an answer on that one :slight_smile: