PDA

View Full Version : LocalConnection help



Uli
February 18th, 2004, 05:06 PM
*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:

on (press) {
function () {myLocalConnection = new LocalConnection();
myLocalConnection.send("Incoming", "onRecieve", MyID);
myLocalConnection.close();};


where MyID is some variable

2nd movie, 1st frame:


myLocalConnection = new LocalConnection();
myLocalConnection.onRecieve = function(theID){
_root.test.gotoAndPlay(theID);}
myLocalConnection.connect("Incoming");


now that doesn't work so i'm wondering what is wrong...

Uli
February 18th, 2004, 10:21 PM
Added some files, maybe someone can help ?:D

Uli
February 18th, 2004, 11:51 PM
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 :)