|
Home > Archive > Macromedia Flash Server > March 2006 > Ser-side SharedObject.send();
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Ser-side SharedObject.send();
|
|
| Bill Sanders 2006-03-21, 2:48 am |
| Hello all,
I have not been able to get even a simple SharedObject.send() to
work. The docs example doesn't work either. I looked in Brian's book
w/ no luck (and that's where most problems are solved). Does someone
know of a working code for this? Here's the test I used:
SERVER-SIDE CODE
application.onAppStart = function() {
trace(this.name+" is reloaded");
};
application.onConnect = function(currentClient) {
this.acceptConnection(currentClient);
Client.prototype.showStream = function() {
this.xxx_so = SharedObject.get("test_so", false);
this.xxx_so.send("streamSend", "From Server");
trace("contact");
};
};
CLIENT-SIDE CODE
var nc:NetConnection = new NetConnection();
nc.onStatus = function(info) {
if (info.code == "NetConnection.Connect.Success") {
conectLight_mc.gotoAndStop(2);
}
};
nc.connect("rtmp://192.168.0.11/serSOsend/");
var test_so:SharedObject = new SharedObject.getRemote("test_so",
nc.uri, false);
test_so.connect(nc);
test_so.streamSend = function(b) {
output_txt.text = b;
};
xx_btn.onPress = function() {
nc.call("showStream");
};
---------------
I'm getting the trace from the server-side showing that it's firing
the code, but after several combinations, I've had no luck. Any ideas?
TIA,
Bill
PS: Where's everyone?
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
|
| Bill,
I believe the problem is n the way you have scripted the Server code.
By using the argument this.xxx_so, you have made the declared RSO a property
of the connecting instance of the Client class. I think that your code would
work if you had application.xxx_so or var xxx_so (rather than "this"). I
believe it will correct the scope and make it accessible to the CS event
handler.
Not a tested theory though - so it may be bollocks
[a /]
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Bill Sanders
Sent: 19 March 2006 19:05
To: FlashComm Mailing List
Subject: [FlashComm] Ser-side SharedObject.send();
Hello all,
I have not been able to get even a simple SharedObject.send() to
work. The docs example doesn't work either. I looked in Brian's book
w/ no luck (and that's where most problems are solved). Does someone
know of a working code for this? Here's the test I used:
SERVER-SIDE CODE
application.onAppStart = function() {
trace(this.name+" is reloaded");
};
application.onConnect = function(currentClient) {
this.acceptConnection(currentClient);
Client.prototype.showStream = function() {
this.xxx_so = SharedObject.get("test_so", false);
this.xxx_so.send("streamSend", "From Server");
trace("contact");
};
};
CLIENT-SIDE CODE
var nc:NetConnection = new NetConnection();
nc.onStatus = function(info) {
if (info.code == "NetConnection.Connect.Success") {
conectLight_mc.gotoAndStop(2);
}
};
nc.connect("rtmp://192.168.0.11/serSOsend/");
var test_so:SharedObject = new SharedObject.getRemote("test_so",
nc.uri, false);
test_so.connect(nc);
test_so.streamSend = function(b) {
output_txt.text = b;
};
xx_btn.onPress = function() {
nc.call("showStream");
};
---------------
I'm getting the trace from the server-side showing that it's firing
the code, but after several combinations, I've had no luck. Any ideas?
TIA,
Bill
PS: Where's everyone?
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Beto A 2006-03-21, 2:48 am |
| Bill,
did you resolve this? I Have actually duplicated it and it has worked for=
me.
Am I missing something?
cheers
Beto
Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: Hello all,
I have not been able to get even a simple SharedObject.send() to =20
work. The docs example doesn't work either. I looked in Brian's book =20
w/ no luck (and that's where most problems are solved). Does someone =20
know of a working code for this? Here's the test I used:
SERVER-SIDE CODE
application.onAppStart =3D function() {
trace(this.name+" is reloaded");
};
application.onConnect =3D function(currentClient) {
this.acceptConnection(currentClient);
Client.prototype.showStream =3D function() {
this.xxx_so =3D SharedObject.get("test_so", false);
this.xxx_so.send("streamSend", "From Server");
trace("contact");
};
};
CLIENT-SIDE CODE
var nc:NetConnection =3D new NetConnection();
nc.onStatus =3D function(info) {
if (info.code =3D=3D "NetConnection.Connect.Success") {
conectLight_mc.gotoAndStop(2);
}
};
nc.connect("rtmp://192.168.0.11/serSOsend/");
var test_so:SharedObject =3D new SharedObject.getRemote("test_so", =20
nc.uri, false);
test_so.connect(nc);
test_so.streamSend =3D function(b) {
output_txt.text =3D b;
};
xx_btn.onPress =3D function() {
nc.call("showStream");
};
---------------
I'm getting the trace from the server-side showing that it's firing =20
the code, but after several combinations, I've had no luck. Any ideas?
TIA,
Bill
PS: Where's everyone?
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=09
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
=09
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.=20
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Bill Sanders 2006-03-21, 2:48 am |
| Hi Beto,
It doesn't look like you're missing anything, but something's wrong
somewhere with what I've been doing. You were able to see the message
"From Server" in the text output? Maybe it was something dumb like
having the wrong color or instance name, on my part. Let me check and
finally get this thing resolved.
Thanks a million!
Bill
On Mar 20, 2006, at 8:37 AM, Beto A wrote:
> Bill,
> did you resolve this? I Have actually duplicated it and it has
> worked for me.
>
> Am I missing something?
>
> cheers
> Beto
>
>
>
> Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: Hello all,
>
> I have not been able to get even a simple SharedObject.send() to
> work. The docs example doesn't work either. I looked in Brian's book
> w/ no luck (and that's where most problems are solved). Does someone
> know of a working code for this? Here's the test I used:
>
> SERVER-SIDE CODE
>
> application.onAppStart = function() {
> trace(this.name+" is reloaded");
> };
> application.onConnect = function(currentClient) {
> this.acceptConnection(currentClient);
> Client.prototype.showStream = function() {
> this.xxx_so = SharedObject.get("test_so", false);
> this.xxx_so.send("streamSend", "From Server");
> trace("contact");
> };
> };
>
> CLIENT-SIDE CODE
>
> var nc:NetConnection = new NetConnection();
> nc.onStatus = function(info) {
> if (info.code == "NetConnection.Connect.Success") {
> conectLight_mc.gotoAndStop(2);
> }
> };
> nc.connect("rtmp://192.168.0.11/serSOsend/");
> var test_so:SharedObject = new SharedObject.getRemote("test_so",
> nc.uri, false);
> test_so.connect(nc);
> test_so.streamSend = function(b) {
> output_txt.text = b;
> };
> xx_btn.onPress = function() {
> nc.call("showStream");
> };
> ---------------
> I'm getting the trace from the server-side showing that it's firing
> the code, but after several combinations, I've had no luck. Any ideas?
>
> TIA,
> Bill
>
> PS: Where's everyone?
>
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
> ---------------------------------
> Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
>
> ---------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail makes sharing a breeze.
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Beto A 2006-03-21, 2:48 am |
| actually I just traced out "From Server" - Let me know if you need the fi=
les. You may need to get some shut eye first.;P
cheers
Beto
Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: Hi Beto,
It doesn't look like you're missing anything, but something's wrong =20
somewhere with what I've been doing. You were able to see the message =20
"From Server" in the text output? Maybe it was something dumb like =20
having the wrong color or instance name, on my part. Let me check and =20
finally get this thing resolved.
Thanks a million!
Bill
On Mar 20, 2006, at 8:37 AM, Beto A wrote:
> Bill,
> did you resolve this? I Have actually duplicated it and it has =20
> worked for me.
>
> Am I missing something?
>
> cheers
> Beto
>
>
>
> Bill Sanders wrote: Hello all,
>
> I have not been able to get even a simple SharedObject.send() to
> work. The docs example doesn't work either. I looked in Brian's book
> w/ no luck (and that's where most problems are solved). Does someone
> know of a working code for this? Here's the test I used:
>
> SERVER-SIDE CODE
>
> application.onAppStart =3D function() {
> trace(this.name+" is reloaded");
> };
> application.onConnect =3D function(currentClient) {
> this.acceptConnection(currentClient);
> Client.prototype.showStream =3D function() {
> this.xxx_so =3D SharedObject.get("test_so", false);
> this.xxx_so.send("streamSend", "From Server");
> trace("contact");
> };
> };
>
> CLIENT-SIDE CODE
>
> var nc:NetConnection =3D new NetConnection();
> nc.onStatus =3D function(info) {
> if (info.code =3D=3D "NetConnection.Connect.Success") {
> conectLight_mc.gotoAndStop(2);
> }
> };
> nc.connect("rtmp://192.168.0.11/serSOsend/");
> var test_so:SharedObject =3D new SharedObject.getRemote("test_so",
> nc.uri, false);
> test_so.connect(nc);
> test_so.streamSend =3D function(b) {
> output_txt.text =3D b;
> };
> xx_btn.onPress =3D function() {
> nc.call("showStream");
> };
> ---------------
> I'm getting the trace from the server-side showing that it's firing
> the code, but after several combinations, I've had no luck. Any ideas?
>
> TIA,
> Bill
>
> PS: Where's everyone?
>
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
> =20
> ---------------------------------
> Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
> =20
> ---------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail makes sharing a breeze.
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
=09
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
| |
| Bill Sanders 2006-03-21, 2:48 am |
| Beto,
Yes, I would like to see the files. Tracing out from server on the CS
would be fine. I tried some more tests, and even with my own code I
can't get it!
Thanks,
Bill
On Mar 20, 2006, at 8:56 AM, Beto A wrote:
> actually I just traced out "From Server" - Let me know if you need
> the files. You may need to get some shut eye first.;P
>
> cheers
> Beto
>
> Bill Sanders <wdsanders-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: Hi Beto,
>
> It doesn't look like you're missing anything, but something's wrong
> somewhere with what I've been doing. You were able to see the message
> "From Server" in the text output? Maybe it was something dumb like
> having the wrong color or instance name, on my part. Let me check and
> finally get this thing resolved.
>
> Thanks a million!
> Bill
>
> On Mar 20, 2006, at 8:37 AM, Beto A wrote:
>
>
> bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
>
>
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
> ---------------------------------
> Yahoo! Mail
> Use Photomail to share photos without annoying attachments.
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
|
|
|
|
|