Okay .. snap niet wat ik fout doe.
Heb 2 swf'jes. 1 die zend een tekst en een andere die ontvangt
de voorbeeld staat op
http://www.leihitu.nl/downloads/local_connections/
en de fla op
http://www.leihitu.nl/downloads/local_connections.zip
Kan iemand zien WAT ik fout doe?
Actionscript code op test_send.fla :
en de actionscript in test_recieve.fla
_root.test. is trouwens een textblok
Het lijkt wel of de ontvangende kant niet reageert ofzo
HELP ?
Heb 2 swf'jes. 1 die zend een tekst en een andere die ontvangt
de voorbeeld staat op
http://www.leihitu.nl/downloads/local_connections/
en de fla op
http://www.leihitu.nl/downloads/local_connections.zip
Kan iemand zien WAT ik fout doe?
Actionscript code op test_send.fla :
code:
1
2
3
4
5
6
7
8
9
| stop();
inputLC = new LocalConnection();
inputLC.send("samePageLC", "receiverMethod","some text to send");
inputLC.onStatus = function(infoObject)
{
_root.test.text=infoObject.level;
} |
en de actionscript in test_recieve.fla
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| stop();
_root.test.text="";
outputLC = new LocalConnection();
outputLC.receiverMethod = function(param1) {
_root.test.text=param1;
}
outputLC.onStatus = function(infoObject)
{
_root.test.text=infoObject.level;
}
outputLC.connect("samePageLC"); |
_root.test. is trouwens een textblok
Het lijkt wel of de ontvangende kant niet reageert ofzo
HELP ?