LocalConnection help

Edited

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:
[AS]
on (press) {
function () {myLocalConnection = new LocalConnection();
myLocalConnection.send(“Incoming”, “onRecieve”, MyID);
myLocalConnection.close();};
[/AS]

where MyID is some variable

2nd movie, 1st frame:

[AS]
myLocalConnection = new LocalConnection();
myLocalConnection.onRecieve = function(theID){
_root.test.gotoAndPlay(theID);}
myLocalConnection.connect(“Incoming”);
[/AS]

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: