First at all - thank you for your prompt answer!

It brought me forward insofar, as i didn't know that i can use a system
function with the sendmessage() command. But there seems to be something
wrong which i can't solve:

Sending a message from the serverscript to connected movies does work.
Sending a system command from within the serverscript does work (great!) -
the command gets performed, but:
Sending a system command should cause response from the server. The
MUS-documentation says, that providing "system.script.subject" as the
subject in sendmessage() makes the server reply to the serverscript. In my
script it does not. There is no reply, neither to the serverscript nor to
any connected movie, when i send a systemcommand from the serverscript.

it looks like this:

on UserLogon  ( me, movie, group, user )
  put user.name
  put movie.name
  movie.SendMessage ("system.dbplayer.getattribute",
"system.script.anysubject", [#userid: "zeiti", #application:
"MyApplication", #attribute: #points])
end

i just want to get the value of this attribute passed to the
incomingmessage() handler of the serverscript.

i've tried everything - please help!

thanx

-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im
Auftrag von Terry R. Schussler
Gesendet: Freitag, 22. Juni 2001 16:45
An: [EMAIL PROTECTED]
Betreff: Re: <lingo-l> Serverscript?


At 4:16 PM +0200 6/22/01, Andreas Zeitler wrote:
>Hi!
>
>I have got a little problem. How can I manage to access lets say the
user-db
>from server-side script? From a movie I just send a netmessage with the
>appropriate subject and so on. But this makes no sense in server-side
>script.

Sure it does.  There is a server-side Lingo command specifically for
sending messages:

sendMessage()

Syntax
whichServerMovie.sendMessage( string/listRecipient, \
"system.script.subject", messageContents {, errorCode \
{, protocolFlag {, stringSenderID}}} )
whichServerGroup.sendMessage( string/listRecipient, \
"system.script.subject", messageContents {, errorCode \
{, protocolFlag {, stringSenderID}}} )
whichServerUser.sendMessage( "system.script.subject", \
messageContents {, errorCode {, protocolFlag {, stringSenderID}}})

If you want to use system functions, simply address "System.OBJECT.command"
with your message.
--

...---===|  Terry R. Schussler  |===---...
...---===|  Chief Investigator  |===---...

on visitWebsite yourSelection
 coolSites = [ \
   #advancedSeminars : "http://www.macromediaSEMINARS.com/";, \
   #directorUniversity: "http://www.directorU.com";, \
   #multiuserUniversity: "http://www.multiuserU.com";, \
   #flashUniversity: "http://www.flash5U.com";, \
   #freeBehaviors : "http://www.behaviors.com/";]
 gotoNetPage coolSites[yourSelection]
end visitWebsite


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to